Commit d214738
authored
fix(driver/mbim): better support for single slot devices (#416)
Modems that only have one sim slot may respond with NO_DEVICE_SUPPORT
when we try to request the sim slot mapping in preparation for sim
selection. This is (arguably) correct behavior when we're trying to
select a sim slot that isn't there, but when we want to access slot 0,
we shouldn't complain about it.
So catch the situation where we receive the NO_DEVICE_SUPPORT error
and consider the switch action successful if we're trying to access the
first and only sim slot.
While we're here, slightly improve two error lines to better indicate
what's going wrong.
Tested with EM7590 and EM9291 configured for only a single sim slot
(`AT!CUSTOM="UIM2ENABLE",0`).
Signed-off-by: Frans Klaver <frans.klaver@vislink.com>1 parent e5a3099 commit d214738
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | | - | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
0 commit comments