mirror of git://git.sysmocom.de/ofono
ublox: create only 1 gprs context
Some uBlox modems support multiple, simultaneously active contexts. These contexts are either bridged to the network interface or handled transparently by the modem acting like a router. The problem with this approach is that ofono and ofono clients (e.g. mmsd) expect a dedicated _local_ network interface for each context. As such, it doesn't make sense for ofono to set up the multiple gprs contexts.
This commit is contained in:
parent
5b1d6f4e13
commit
353b7bc3e9
|
@ -357,8 +357,6 @@ static void ublox_post_sim(struct ofono_modem *modem)
|
|||
struct ofono_gprs_context *gc;
|
||||
GAtChat *chat = data->modem ? data->modem : data->aux;
|
||||
const char *driver;
|
||||
/* Toby L2: Create same number of contexts as supported PDP contexts. */
|
||||
int ncontexts = data->flags & UBLOX_DEVICE_F_HIGH_THROUGHPUT_MODE ? 8 : 1;
|
||||
const char *iface;
|
||||
int variant;
|
||||
|
||||
|
@ -376,14 +374,9 @@ static void ublox_post_sim(struct ofono_modem *modem)
|
|||
variant = OFONO_VENDOR_UBLOX;
|
||||
}
|
||||
|
||||
while (ncontexts) {
|
||||
gc = ofono_gprs_context_create(modem, variant, driver, chat);
|
||||
|
||||
if (gprs && gc)
|
||||
ofono_gprs_add_context(gprs, gc);
|
||||
|
||||
--ncontexts;
|
||||
}
|
||||
gc = ofono_gprs_context_create(modem, variant, driver, chat);
|
||||
if (gprs && gc)
|
||||
ofono_gprs_add_context(gprs, gc);
|
||||
|
||||
ofono_lte_create(modem,
|
||||
ublox_model_to_id(data->model), "ubloxmodem", data->aux);
|
||||
|
|
Loading…
Reference in New Issue