From 1a80f85994aa59c6acdc41613a6beb098b68d507 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sat, 24 Oct 2009 12:19:12 -0500 Subject: [PATCH] Fix: ENAP=0 is the only way to use this --- drivers/mbmmodem/gprs-context.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mbmmodem/gprs-context.c b/drivers/mbmmodem/gprs-context.c index 3acaccf..0b01a31 100644 --- a/drivers/mbmmodem/gprs-context.c +++ b/drivers/mbmmodem/gprs-context.c @@ -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; -- 2.7.4