summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/gprs-context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/atmodem/gprs-context.c b/drivers/atmodem/gprs-context.c
index 3694c27d..2217097a 100644
--- a/drivers/atmodem/gprs-context.c
+++ b/drivers/atmodem/gprs-context.c
@@ -208,7 +208,11 @@ static void at_cgdcont_cb(gboolean ok, GAtResult *result, gpointer user_data)
return;
}
- sprintf(buf, "AT+CGDATA=\"PPP\",%u", gcd->active_context);
+ if (gcd->vendor == OFONO_VENDOR_SIMCOM_SIM900)
+ sprintf(buf, "ATD*99***%u#", gcd->active_context);
+ else
+ sprintf(buf, "AT+CGDATA=\"PPP\",%u", gcd->active_context);
+
if (g_at_chat_send(gcd->chat, buf, none_prefix,
at_cgdata_cb, gc, NULL) > 0)
return;