mirror of git://git.sysmocom.de/ofono
ifx: Use PPP based GPRS context if M-RAW_IP is not available
This commit is contained in:
parent
4de6f31c78
commit
e4b09b3012
|
@ -691,13 +691,20 @@ static void ifx_post_online(struct ofono_modem *modem)
|
||||||
if (!gprs)
|
if (!gprs)
|
||||||
return;
|
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]);
|
"ifxmodem", data->dlcs[GPRS1_DLC]);
|
||||||
|
gc2 = ofono_gprs_context_create(modem, 0,
|
||||||
|
"ifxmodem", data->dlcs[GPRS2_DLC]);
|
||||||
|
}
|
||||||
|
|
||||||
if (gc1)
|
if (gc1)
|
||||||
ofono_gprs_add_context(gprs, gc1);
|
ofono_gprs_add_context(gprs, gc1);
|
||||||
|
|
||||||
gc2 = ofono_gprs_context_create(modem, 0,
|
|
||||||
"ifxmodem", data->dlcs[GPRS2_DLC]);
|
|
||||||
if (gc2)
|
if (gc2)
|
||||||
ofono_gprs_add_context(gprs, gc2);
|
ofono_gprs_add_context(gprs, gc2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue