diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-16 13:34:54 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-20 09:03:54 +0000 |
commit | b497de325a15700612e7bc83be238204f41153e6 (patch) | |
tree | 52f748b99c8577ddd37561cec0763c42ef07e18e /src/mm-shared-qmi.c | |
parent | c987757a2c133f2e3be89c3a7590b8538f4bbe18 (diff) |
iface-modem: common SIM event reporting logic
We no longer have separate mm_base_modem_process_sim_event() and
mm_broadband_modem_sim_hot_swap_detected() methods. The only
difference between both of them was that one of them would attempt to
cleanup the ports context associated to the SIM hot swap event logic
as soon as a swap was detected, in order to avoid queueing up multiple
such events.
The previous logic wasn't working well, though, as there could be
mixed AT+QMI or AT+MBIM devices that would also require that same
cleanup and so we didn't always know which one should have been
called.
Now we have a single mm_iface_modem_process_sim_event() method, which
will trigger the reprobe and disabling, but which will also perform
the cleanup of the SIM ports swap setup as specified by the
implementation.
So, if a plugin explicitly initializes the serial ports context for
SIM hot swap handling, it should also explicitly clean it up.
Also, the initialization of the serial ports context for SIM hot swap
handling is no longer done automatically for all modems, it will be
done only for those modems using it; i.e. the modems that explicitly
report support SIM hot swap handling using AT URCs.
Diffstat (limited to 'src/mm-shared-qmi.c')
-rw-r--r-- | src/mm-shared-qmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-shared-qmi.c b/src/mm-shared-qmi.c index 162c6227..0141d939 100644 --- a/src/mm-shared-qmi.c +++ b/src/mm-shared-qmi.c @@ -3817,7 +3817,7 @@ uim_slot_status_indication_cb (QmiClientUim *client, * active slot's status changed */ if (!slot_array_status_equal (priv->slots_status, new_slots_status, TRUE)) { mm_obj_dbg (self, "An active slot had a status change, will reprobe the modem"); - mm_base_modem_process_sim_event (MM_BASE_MODEM (self)); + mm_iface_modem_process_sim_event (MM_IFACE_MODEM (self)); return; } |