From e4b09b30129be6b15aba86ad4ebda04e9ffcf4cf Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 23 Oct 2010 12:57:42 +0200 Subject: ifx: Use PPP based GPRS context if M-RAW_IP is not available --- plugins/ifx.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/ifx.c b/plugins/ifx.c index af0dae25..9aa8b0bf 100644 --- a/plugins/ifx.c +++ b/plugins/ifx.c @@ -691,13 +691,20 @@ static void ifx_post_online(struct ofono_modem *modem) if (!gprs) return; - gc1 = ofono_gprs_context_create(modem, 0, + if (data->mux_ldisc < 0) { + gc1 = ofono_gprs_context_create(modem, 0, + "atmodem", data->dlcs[GPRS1_DLC]); + gc2 = ofono_gprs_context_create(modem, 0, + "atmodem", data->dlcs[GPRS2_DLC]); + } else { + gc1 = ofono_gprs_context_create(modem, 0, "ifxmodem", data->dlcs[GPRS1_DLC]); + gc2 = ofono_gprs_context_create(modem, 0, + "ifxmodem", data->dlcs[GPRS2_DLC]); + } + if (gc1) ofono_gprs_add_context(gprs, gc1); - - gc2 = ofono_gprs_context_create(modem, 0, - "ifxmodem", data->dlcs[GPRS2_DLC]); if (gc2) ofono_gprs_add_context(gprs, gc2); } -- cgit v1.2.3