mirror of git://git.sysmocom.de/ofono
ublox: Do not leave vendor_family unset
In a recent patch vendor family was only set if the device did not support USBCONF, but that resulted in drivers being registered the "generic" vendor. That caused for instance netreg to use incorrect cmer mode and fail on TOBY-L210.
This commit is contained in:
parent
c5cb6f7a3c
commit
4d64235f27
|
@ -227,6 +227,8 @@ static void query_model_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("Model: %s", data->model->name);
|
||||
|
||||
data->vendor_family = OFONO_VENDOR_UBLOX;
|
||||
|
||||
if (data->model->flags & UBLOX_F_HAVE_USBCONF) {
|
||||
if (g_at_chat_send(data->aux, "AT+UUSBCONF?", uusbconf_prefix,
|
||||
query_usbconf_cb, modem, NULL))
|
||||
|
@ -234,8 +236,6 @@ static void query_model_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
ofono_error("Unable to query USB configuration");
|
||||
goto fail;
|
||||
} else {
|
||||
data->vendor_family = OFONO_VENDOR_UBLOX;
|
||||
}
|
||||
|
||||
if (g_at_chat_send(data->aux, "AT+CFUN=4", none_prefix,
|
||||
|
|
Loading…
Reference in New Issue