diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-06-03 01:21:44 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-06-03 01:21:44 -0700 |
commit | 6df182c5dbd855ad694f80275f1343c364400360 (patch) | |
tree | 20f53898c202b472cfd8df30cf481821a4bfe7c3 /plugins/novatel.c | |
parent | 22d0cc7df20f2288d6c466ff1d27839ed6b287d1 (diff) | |
download | ofono-6df182c5dbd855ad694f80275f1343c364400360.tar.bz2 |
Use new Novatel quirk for network registration
Diffstat (limited to 'plugins/novatel.c')
-rw-r--r-- | plugins/novatel.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/novatel.c b/plugins/novatel.c index 5e15449a..a1c3e51f 100644 --- a/plugins/novatel.c +++ b/plugins/novatel.c @@ -37,7 +37,6 @@ #include <ofono/devinfo.h> #include <ofono/netreg.h> #include <ofono/sim.h> -#include <ofono/sms.h> #include <ofono/gprs.h> #include <ofono/gprs-context.h> #include <ofono/log.h> @@ -162,7 +161,7 @@ static int novatel_enable(struct ofono_modem *modem) if (!channel) return -EIO; - syntax = g_at_syntax_new_gsmv1(); + syntax = g_at_syntax_new_gsm_permissive(); data->chat = g_at_chat_new(channel, syntax); g_at_syntax_unref(syntax); g_io_channel_unref(channel); @@ -220,7 +219,7 @@ static int novatel_disable(struct ofono_modem *modem) g_at_chat_send(data->chat, "AT$NWDMAT=0", nwdmat_prefix, NULL, NULL, NULL); - g_at_chat_send(data->chat, "AT+CFUN=0", NULL, + g_at_chat_send(data->chat, "AT+CFUN=0", none_prefix, cfun_disable, modem, NULL); return -EINPROGRESS; @@ -266,7 +265,7 @@ static void novatel_post_sim(struct ofono_modem *modem) DBG("%p", modem); - netreg = ofono_netreg_create(modem, OFONO_VENDOR_HUAWEI, "atmodem", + netreg = ofono_netreg_create(modem, OFONO_VENDOR_NOVATEL, "atmodem", data->chat); if (data->dmat_mode != 1) @@ -280,7 +279,7 @@ static void novatel_post_sim(struct ofono_modem *modem) if (!channel) return; - syntax = g_at_syntax_new_gsmv1(); + syntax = g_at_syntax_new_gsm_permissive(); data->gprs = g_at_chat_new(channel, syntax); g_at_syntax_unref(syntax); g_io_channel_unref(channel); |