mirror of git://git.sysmocom.de/ofono
ublox: enable ubloxmodem driver when possible
Where possible means Toby L2 in high speed mode. The bridge mode is set before enabling the modem because the driver requires this.
This commit is contained in:
parent
82fb20d707
commit
50133ac0f4
|
@ -141,6 +141,11 @@ static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
return;
|
||||
}
|
||||
|
||||
if (data->model_id == TOBYL2_HIGH_THROUGHPUT_MODE)
|
||||
/* use bridged mode until routed mode support is added */
|
||||
g_at_chat_send(data->aux, "AT+UBMCONF=2", none_prefix,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
ofono_modem_set_powered(modem, TRUE);
|
||||
}
|
||||
|
||||
|
@ -288,13 +293,19 @@ static void ublox_post_sim(struct ofono_modem *modem)
|
|||
struct ublox_data *data = ofono_modem_get_data(modem);
|
||||
struct ofono_gprs *gprs;
|
||||
struct ofono_gprs_context *gc;
|
||||
GAtChat *chat = data->modem ? data->modem : data->aux;
|
||||
|
||||
DBG("%p", modem);
|
||||
|
||||
gprs = ofono_gprs_create(modem, data->vendor_family, "atmodem",
|
||||
data->aux);
|
||||
gc = ofono_gprs_context_create(modem, data->vendor_family, "atmodem",
|
||||
data->modem ? data->modem : data->aux);
|
||||
if (data->model_id == TOBYL2_HIGH_THROUGHPUT_MODE)
|
||||
gc = ofono_gprs_context_create(modem, data->vendor_family,
|
||||
"ubloxmodem", chat);
|
||||
|
||||
else
|
||||
gc = ofono_gprs_context_create(modem, data->vendor_family,
|
||||
"atmodem", chat);
|
||||
|
||||
if (gprs && gc)
|
||||
ofono_gprs_add_context(gprs, gc);
|
||||
|
|
Loading…
Reference in New Issue