What I would like to do for QMI modem is to always try QMI_DMS_GET_IMSI
(not only for Sierra modems) and if it fails, try to obtain IMSI via EF
So you want the core to try both read_imsi and read_transparent in
sequence to obtain the IMSI. This isn't really ideal, as the driver
should really implement one method or the other.
Do we know whether the Sierra devices actually support raw SIM reads?
Maybe the QMI commands need to be formatted specifically for Sierra
devices? Ideal situation would be to get read_transparent to work for
obtaining the IMSI.
If the above can't be made to work, then we should probably just add
another QMI based sim driver for these devices. E.g. one that supports
read_imsi via DMS and PIN operations via UIM.
I have done a patch to do that (see diff above). Let me know if you
think that's a good idea. In this case, I will send two patches:
- backup read_imsi by IMSI via EF read
Can you send this patch properly via git send-email. I might be
convinced to apply it.