Fix: ENAP=0 is the only way to use this
authorDenis Kenzior <denis.kenzior@intel.com>
Sat, 24 Oct 2009 17:19:12 +0000 (12:19 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Sat, 24 Oct 2009 17:39:31 +0000 (12:39 -0500)
drivers/mbmmodem/gprs-context.c

index 3acaccf..0b01a31 100644 (file)
@@ -155,16 +155,13 @@ static void mbm_gprs_deactivate_primary(struct ofono_gprs_context *gc,
 {
        struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc);
        struct cb_data *cbd = cb_data_new(cb, data);
-       char buf[64];
 
        if (!cbd)
                goto error;
 
        cbd->user = gc;
 
-       sprintf(buf, "AT*ENAP=0,%u", cid);
-
-       if (g_at_chat_send(gcd->chat, buf, none_prefix,
+       if (g_at_chat_send(gcd->chat, "AT*ENAP=0", none_prefix,
                                at_enap_down_cb, cbd, g_free) > 0)
                return;