ublox: drop vendor type for Toby L2 model

This commit is contained in:
Jonas Bonn 2019-03-12 12:09:56 +01:00 committed by Denis Kenzior
parent a5adf39aa1
commit 4f5ce95d41
1 changed files with 3 additions and 4 deletions

View File

@ -169,13 +169,12 @@ static int ublox_enable(struct ofono_modem *modem)
*/
data->model_id = atoi(model_str);
data->vendor_family = OFONO_VENDOR_UBLOX;
switch (data->model_id) {
case SARA_G270:
data->vendor_family = OFONO_VENDOR_UBLOX;
break;
case TOBYL2_COMPATIBLE_MODE:
case TOBYL2_HIGH_THROUGHPUT_MODE:
data->vendor_family = OFONO_VENDOR_UBLOX_TOBY_L2;
break;
case TOBYL2_MEDIUM_THROUGHPUT_MODE:
DBG("low/medium throughtput profile unsupported");
@ -189,7 +188,7 @@ static int ublox_enable(struct ofono_modem *modem)
if (data->aux == NULL)
return -EINVAL;
if (data->vendor_family == OFONO_VENDOR_UBLOX) {
if (data->model_id == SARA_G270) {
data->modem = open_device(modem, "Modem", "Modem: ");
if (data->modem == NULL) {
g_at_chat_unref(data->aux);