diff options
author | Carlo Lobrano <c.lobrano@gmail.com> | 2017-07-25 09:03:05 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-08-01 10:02:01 +0200 |
commit | 9cdc237241ef7129c422ce33eca181ad8c837f8b (patch) | |
tree | 1a318ab243f578d25c74b06e6f32d23fdcb480b7 /src/mm-iface-modem.h | |
parent | b2c7244b6c73dc615e67cf2f90f30ad671b43a84 (diff) |
sim hot swap: improved error management
Currently, when SIM hot swap fails in either mm-iface or plugin, the
ModemManager still opens ports context and prints a message saying that
SIM hot swap is supported and that it's waiting for SIM insertion,
instead of clearly saying that SIM hot swap is not working.
This patch:
1. introduces a new property MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED
which is FALSE by default and set to TRUE only when
setup_sim_hot_swap_finish() succeded.
2. subordinates the completion of SIM hot swap setup (in
mm-broadband-modem) and the related messages to the the value of
MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED
Finally, this patch replaces the MBIM's sim_hot_swap_on private property
with the new property MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED, since they have the
same meaning.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r-- | src/mm-iface-modem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h index 17ded5bc..711d2f29 100644 --- a/src/mm-iface-modem.h +++ b/src/mm-iface-modem.h @@ -37,6 +37,7 @@ #define MM_IFACE_MODEM_SIM "iface-modem-sim" #define MM_IFACE_MODEM_BEARER_LIST "iface-modem-bearer-list" #define MM_IFACE_MODEM_SIM_HOT_SWAP_SUPPORTED "iface-modem-sim-hot-swap-supported" +#define MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED "iface-modem-sim-hot-swap-configured" typedef struct _MMIfaceModem MMIfaceModem; |