broadband-modem-qmi: don't warn on invalid ESN/MEIDs reported
The MC7304, which is a 3GPP only device, reports a ESN with value 0 in "DMS Get IDs": ModemManager[10121]: [/dev/cdc-wdm0] Received message (translated)... >>>>>> QMUX: >>>>>> length = 45 >>>>>> flags = 0x80 >>>>>> service = "dms" >>>>>> client = 2 >>>>>> QMI: >>>>>> flags = "response" >>>>>> transaction = 6 >>>>>> tlv_length = 33 >>>>>> message = "Get IDs" (0x0025) >>>>>> TLV: >>>>>> type = "Result" (0x02) >>>>>> length = 4 >>>>>> value = 00:00:00:00 >>>>>> translated = SUCCESS >>>>>> TLV: >>>>>> type = 0x13 >>>>>> length = 1 >>>>>> value = 42 >>>>>> TLV: >>>>>> type = "Esn" (0x10) >>>>>> length = 1 >>>>>> value = 30 >>>>>> translated = 0 >>>>>> TLV: >>>>>> type = "Imei" (0x11) >>>>>> length = 15 >>>>>> value = <hidden> >>>>>> translated = <hidden>
This commit is contained in:
@@ -1237,7 +1237,7 @@ dms_get_ids_ready (QmiClientDms *client,
|
||||
else if (len == 8)
|
||||
ctx->self->priv->esn = g_strdup (str);
|
||||
else
|
||||
g_warn_if_reached ();
|
||||
g_debug ("Invalid ESN reported: '%s' (unexpected length)", str);
|
||||
}
|
||||
|
||||
if (qmi_message_dms_get_ids_output_get_meid (output, &str, NULL) &&
|
||||
@@ -1247,7 +1247,7 @@ dms_get_ids_ready (QmiClientDms *client,
|
||||
if (len == 14)
|
||||
ctx->self->priv->meid = g_strdup (str);
|
||||
else
|
||||
g_warn_if_reached ();
|
||||
g_debug ("Invalid MEID reported: '%s' (unexpected length)", str);
|
||||
}
|
||||
|
||||
if (ctx->self->priv->imei)
|
||||
|
Reference in New Issue
Block a user