diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-10-23 12:57:42 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-10-23 12:57:42 +0200 |
commit | e4b09b30129be6b15aba86ad4ebda04e9ffcf4cf (patch) | |
tree | 710bdf24fcca49636dffb47c7fb7a9f24fd0b40e | |
parent | 4de6f31c789033685f03a82e5b9837ce7da8bfd8 (diff) | |
download | ofono-e4b09b30129be6b15aba86ad4ebda04e9ffcf4cf.tar.bz2 |
ifx: Use PPP based GPRS context if M-RAW_IP is not available
-rw-r--r-- | plugins/ifx.c | 15 |
1 files 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); } |