~connman-maintainers/ofono/trunk

Viewing all changes in revision 8601.

  • Committer: Denis Kenzior
  • Author(s): Tom Nguyen
  • Date: 2019-04-16 16:51:37 UTC
  • Revision ID: git-v1:0ddb7c6e2f0897d1f058820fdb8b7ae715c8db88
qmimodem: return all serial numbers

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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: