[PATCH] QMI modems ignore IMEI's with 0 prefix

Aleksander Morgado aleksander at aleksander.es
Wed May 27 08:01:42 PDT 2015


On Wed, May 27, 2015 at 4:27 PM, Dan Williams <dcbw at redhat.com> wrote:
>> >> A small patch to allow ModemManager to handle the IMEI on my AT&T Beam (340u).
>> >> It has the IMEI printed on the back:
>> >>
>> >>     013323000226606
>> >
>> > Yes, that is definitely valid. '01' is http://www.ptcrb.com/
>> >
>> > You might be more careful about double zeroes, but I cannot see any
>> > reason why MM should refuse them.  There might even be valid use cases
>> > where you'd want to run MM in a lab :)
>> >
>> > For those interested in deciphering the two first IMEI digits:
>> > http://en.wikipedia.org/wiki/Reporting_Body_Identifier
>> >
>> >
>>
>> I truly cannot remember why I added that check in IMEI, ESN or MEID.
>>
>> Dan, do you maybe recall a reason?
>
> I don't recall, but it's been there since the beginning of QMI support
> in:
>
> 81fe9f84ec05b9faa99f90191da12b6e986a330e
> broadband-modem-qmi: load equipment ID using QMI
>
> I originally thought it might have something to do with very early QMI
> implementations being really really stupid (they were) but the earliest
> Gobi 1K devices I have report a valid IMEI even with CDMA firmware.
>
> My suggestion: patch is OK, if we *really* want to be paranoid we can
> check for all '0' but that seems kinda pointless.


Then let's change it also for ESN and MEID.

David could you update your patch with those?

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list