aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-01 09:59:13 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-28 14:59:06 +0000
commit86a183778b5b123f6556ecbe53ec7d06d6e7c575 (patch)
treeb3ba49e4b8d2eb82ecf8bad2713f98faf6c72422 /src
parent48973e3d72307ca84375d1c7811eb0b04def91ce (diff)
api,sim: new 'Active' property
In preparation for the multi-SIM setup, we need a way to tell whether a given SIM card is active or not in the system. On systems with one single SIM slot, the available SIM card will always be active. On Multi-SIM Single-Standby setups we may have multiple SIM slots with multiple SIM cards, but only one of them will be active at any given time. On Multi-SIM Multi-Standby setups we may have multiple SIM slots with multiple SIM cards that may be active at the same time. E.g. the QMI protocol allows up to 5 different active SIM cards (primary, secondary, tertiary...).
Diffstat (limited to 'src')
-rw-r--r--src/mm-base-sim.c1
-rw-r--r--src/mm-sim-mbim.c1
-rw-r--r--src/mm-sim-qmi.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c
index 27759532..0a91d385 100644
--- a/src/mm-base-sim.c
+++ b/src/mm-base-sim.c
@@ -1715,6 +1715,7 @@ mm_base_sim_new (MMBaseModem *modem,
callback,
user_data,
MM_BASE_SIM_MODEM, modem,
+ "active", TRUE, /* by default always active */
NULL);
}
diff --git a/src/mm-sim-mbim.c b/src/mm-sim-mbim.c
index f48bb31d..2619687a 100644
--- a/src/mm-sim-mbim.c
+++ b/src/mm-sim-mbim.c
@@ -752,6 +752,7 @@ mm_sim_mbim_new (MMBaseModem *modem,
callback,
user_data,
MM_BASE_SIM_MODEM, modem,
+ "active", TRUE, /* by default always active */
NULL);
}
diff --git a/src/mm-sim-qmi.c b/src/mm-sim-qmi.c
index 6eb5854d..584dbe99 100644
--- a/src/mm-sim-qmi.c
+++ b/src/mm-sim-qmi.c
@@ -1315,6 +1315,7 @@ mm_sim_qmi_new (MMBaseModem *modem,
user_data,
MM_BASE_SIM_MODEM, modem,
MM_SIM_QMI_DMS_UIM_DEPRECATED, dms_uim_deprecated,
+ "active", TRUE, /* by default always active */
NULL);
}