Hi Tom,
On 04/12/2019 10:52 AM, Tom Nguyen wrote:
Some modems, eg. Quectel EC25E, return the ESN, IMEI, and MEID even
though they support only one network type in a region. Current serial
number query gives precedence to the ESN if it exists, and does not
consider the IMEI and MEID.
Add a check of the supported radio interfaces in deciding which
serial number to return. If radio interfaces are 3GPP based, then
return the IMEI, else return the ESN. If neither exist, return MEID
if available, else fail.
---
drivers/qmimodem/devinfo.c | 88 +++++++++++++++++++++++++++++++++++++++-------
1 file changed, 75 insertions(+), 13 deletions(-)
Applied with a minor tweak:
@@ -150,6 +164,8 @@ static void qmi_query_serial(struct ofono_devinfo *devinfo,
DBG("");
+ cbd->user = (void *) devinfo;
+
cbd->user is void, so the explicit cast isn't necessary.
if (qmi_service_send(data->dms, QMI_DMS_GET_IDS, NULL,
get_ids_cb, cbd, g_free) > 0)
return;
Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono