Skip to contentSkip to conversation

ublox: Do not leave vendor_family unset

PATCH Applied [email protected] 3 participants 3 messages Mar 31, 2019 – Apr 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ublox: Do not leave vendor_family unset

From: Richard Röjfors <[email protected]>

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.

---
 plugins/ublox.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
plugins/ublox.c +2 -2
index dc001765..355bdf9e 100644
@@ -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,
Signature · 1 line
2.19.1
#1 lore raw

Hi Richard,

Quoted 7 lines · richard.rojfors(a)gmail.com

From: Richard Röjfors <[email protected]>

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 patch is correct. Please apply it, Denis.

Thanks for testing and reporting, Richard.

/Jonas

Quoted 27 lines
---
  plugins/ublox.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
plugins/ublox.c +2 -2
index dc001765..355bdf9e 100644
@@ -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,
#2 lore raw
In reply to [email protected]

Hi Richard,

Quoted 11 lines · richard.rojfors(a)gmail.com

From: Richard Röjfors <[email protected]>

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.

---
  plugins/ublox.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Regards,
-Denis