aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.h
diff options
context:
space:
mode:
authorPavan Holla <pholla@chromium.org>2021-05-22 19:33:19 +0000
committerAleksander Morgado <aleksander@aleksander.es>2021-07-12 14:47:52 +0200
commit503e886c02e074b4cd334476569f42ee5c27e255 (patch)
tree201459154033c89fe0ecf9b10c875b73e1e61ccf /src/mm-iface-modem.h
parent4102cbc700a0489e5d398bb93f47c151783dbea9 (diff)
shared-qmi,iface-modem : Do not reprobe on hotswap in inactive slot
Prior to this change, a hotswap on the inactive slot would result in reprobe of the modem. With this change, the sim object would be updated, but no reprobe will be performed. The advantage is 1) we do not drop connections on the active slot 2) Slot status on the inactive slot is susceptible to firmware bugs. We have seen scenarios where the inactive slot is reported as absent/ iccid={0}, followed by a correction. We should not reprobe the modem if our active slot hasn't changed.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r--src/mm-iface-modem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h
index fa2b3dc8..34f3297b 100644
--- a/src/mm-iface-modem.h
+++ b/src/mm-iface-modem.h
@@ -609,4 +609,8 @@ gboolean mm_iface_modem_check_for_sim_swap_finish (MMIfaceModem *self,
GAsyncResult *res,
GError **error);
+void mm_iface_modem_modify_sim (MMIfaceModem *self,
+ guint slot_index,
+ MMBaseSim *new_sim);
+
#endif /* MM_IFACE_MODEM_H */