mirror of git://git.sysmocom.de/ofono
ifx: Add two GPRS contexts since the modem should support it
This commit is contained in:
parent
f6b92bd2d9
commit
2c06348356
|
@ -663,7 +663,7 @@ static void ifx_post_online(struct ofono_modem *modem)
|
||||||
struct ifx_data *data = ofono_modem_get_data(modem);
|
struct ifx_data *data = ofono_modem_get_data(modem);
|
||||||
struct ofono_message_waiting *mw;
|
struct ofono_message_waiting *mw;
|
||||||
struct ofono_gprs *gprs;
|
struct ofono_gprs *gprs;
|
||||||
struct ofono_gprs_context *gc;
|
struct ofono_gprs_context *gc1, *gc2;
|
||||||
|
|
||||||
DBG("%p", modem);
|
DBG("%p", modem);
|
||||||
|
|
||||||
|
@ -688,11 +688,18 @@ static void ifx_post_online(struct ofono_modem *modem)
|
||||||
ofono_message_waiting_register(mw);
|
ofono_message_waiting_register(mw);
|
||||||
|
|
||||||
gprs = ofono_gprs_create(modem, 0, "atmodem", data->dlcs[NETREG_DLC]);
|
gprs = ofono_gprs_create(modem, 0, "atmodem", data->dlcs[NETREG_DLC]);
|
||||||
gc = ofono_gprs_context_create(modem, 0,
|
if (!gprs)
|
||||||
"ifxmodem", data->dlcs[GPRS1_DLC]);
|
return;
|
||||||
|
|
||||||
if (gprs && gc)
|
gc1 = ofono_gprs_context_create(modem, 0,
|
||||||
ofono_gprs_add_context(gprs, gc);
|
"ifxmodem", data->dlcs[GPRS1_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);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ofono_modem_driver ifx_driver = {
|
static struct ofono_modem_driver ifx_driver = {
|
||||||
|
|
Loading…
Reference in New Issue