mirror of git://git.sysmocom.de/ofono
Use new Novatel quirk for network registration
This commit is contained in:
parent
22d0cc7df2
commit
6df182c5db
|
@ -37,7 +37,6 @@
|
||||||
#include <ofono/devinfo.h>
|
#include <ofono/devinfo.h>
|
||||||
#include <ofono/netreg.h>
|
#include <ofono/netreg.h>
|
||||||
#include <ofono/sim.h>
|
#include <ofono/sim.h>
|
||||||
#include <ofono/sms.h>
|
|
||||||
#include <ofono/gprs.h>
|
#include <ofono/gprs.h>
|
||||||
#include <ofono/gprs-context.h>
|
#include <ofono/gprs-context.h>
|
||||||
#include <ofono/log.h>
|
#include <ofono/log.h>
|
||||||
|
@ -162,7 +161,7 @@ static int novatel_enable(struct ofono_modem *modem)
|
||||||
if (!channel)
|
if (!channel)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
syntax = g_at_syntax_new_gsmv1();
|
syntax = g_at_syntax_new_gsm_permissive();
|
||||||
data->chat = g_at_chat_new(channel, syntax);
|
data->chat = g_at_chat_new(channel, syntax);
|
||||||
g_at_syntax_unref(syntax);
|
g_at_syntax_unref(syntax);
|
||||||
g_io_channel_unref(channel);
|
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,
|
g_at_chat_send(data->chat, "AT$NWDMAT=0", nwdmat_prefix,
|
||||||
NULL, NULL, NULL);
|
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);
|
cfun_disable, modem, NULL);
|
||||||
|
|
||||||
return -EINPROGRESS;
|
return -EINPROGRESS;
|
||||||
|
@ -266,7 +265,7 @@ static void novatel_post_sim(struct ofono_modem *modem)
|
||||||
|
|
||||||
DBG("%p", modem);
|
DBG("%p", modem);
|
||||||
|
|
||||||
netreg = ofono_netreg_create(modem, OFONO_VENDOR_HUAWEI, "atmodem",
|
netreg = ofono_netreg_create(modem, OFONO_VENDOR_NOVATEL, "atmodem",
|
||||||
data->chat);
|
data->chat);
|
||||||
|
|
||||||
if (data->dmat_mode != 1)
|
if (data->dmat_mode != 1)
|
||||||
|
@ -280,7 +279,7 @@ static void novatel_post_sim(struct ofono_modem *modem)
|
||||||
if (!channel)
|
if (!channel)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
syntax = g_at_syntax_new_gsmv1();
|
syntax = g_at_syntax_new_gsm_permissive();
|
||||||
data->gprs = g_at_chat_new(channel, syntax);
|
data->gprs = g_at_chat_new(channel, syntax);
|
||||||
g_at_syntax_unref(syntax);
|
g_at_syntax_unref(syntax);
|
||||||
g_io_channel_unref(channel);
|
g_io_channel_unref(channel);
|
||||||
|
|
Loading…
Reference in New Issue