diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-06-06 13:12:37 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-06-06 13:12:37 -0700 |
commit | 45bf4cf396ddfdfde356159d03e887ffea705eaa (patch) | |
tree | 4dcc6d510c1aab68ca950737911a33ebe4aa2171 /drivers/atmodem/gprs.c | |
parent | 197d2c08bde4c7ac6c9ca39cd073028bc2ba1caf (diff) | |
download | ofono-45bf4cf396ddfdfde356159d03e887ffea705eaa.tar.bz2 |
Add support for handling CNTI=0 request with Novatel devices
Diffstat (limited to 'drivers/atmodem/gprs.c')
-rw-r--r-- | drivers/atmodem/gprs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/atmodem/gprs.c b/drivers/atmodem/gprs.c index 052417a5..bf82d066 100644 --- a/drivers/atmodem/gprs.c +++ b/drivers/atmodem/gprs.c @@ -120,6 +120,17 @@ static void at_gprs_registration_status(struct ofono_gprs *gprs, cbd->user = gd; + switch (gd->vendor) { + case OFONO_VENDOR_NOVATEL: + /* + * Send $CNTI=0 to find out the current tech, it will be + * intercepted in nw_cnti_notify in network registration + */ + g_at_chat_send(gd->chat, "AT$CNTI=0", none_prefix, + NULL, NULL, NULL); + break; + } + if (g_at_chat_send(gd->chat, "AT+CGREG?", cgreg_prefix, at_cgreg_cb, cbd, g_free) > 0) return; |