aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-sim.c
AgeCommit message (Collapse)Author
2020-02-12base-sim: refactor common PIN/PUK unlock operationsAleksander Morgado
Keep the saved GError directly as GTask context, instead of allocating the SendPinPukContext unconditionally.
2020-01-30core,base-sim: fix warnings with -Wimplicit-fallthroughAleksander Morgado
mm-base-sim.c:1590:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 1590 | ctx->step++; | ~~~~~~~~~^~ mm-base-sim.c:1592:5: note: here 1592 | case INITIALIZATION_STEP_SIM_IDENTIFIER: | ^~~~ mm-base-sim.c:1606:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 1606 | ctx->step++; | ~~~~~~~~~^~ mm-base-sim.c:1608:5: note: here 1608 | case INITIALIZATION_STEP_IMSI: | ^~~~ mm-base-sim.c:1622:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 1622 | ctx->step++; | ~~~~~~~~~^~ mm-base-sim.c:1624:5: note: here 1624 | case INITIALIZATION_STEP_OPERATOR_ID: | ^~~~ mm-base-sim.c:1638:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 1638 | ctx->step++; | ~~~~~~~~~^~ mm-base-sim.c:1640:5: note: here 1640 | case INITIALIZATION_STEP_OPERATOR_NAME: | ^~~~ mm-base-sim.c:1654:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 1654 | ctx->step++; | ~~~~~~~~~^~ mm-base-sim.c:1656:5: note: here 1656 | case INITIALIZATION_STEP_EMERGENCY_NUMBERS: | ^~~~ mm-base-sim.c:1670:18: warning: this statement may fall through [-Wimplicit-fallthrough=] 1670 | ctx->step++; | ~~~~~~~~~^~ mm-base-sim.c:1672:5: note: here 1672 | case INITIALIZATION_STEP_LAST: | ^~~~
2020-01-30core,base-sim: fix warnings with -Wswitch-defaultAleksander Morgado
mm-base-sim.c: In function ‘interface_initialization_step’: mm-base-sim.c:1587:5: warning: switch missing default case [-Wswitch-default] 1587 | switch (ctx->step) { | ^~~~~~
2019-10-17call: disallow non-emergency calls when in emergency-only stateAleksander Morgado
2019-10-17sim: load emergency numbers from EF_ECCAleksander Morgado
2019-10-17api,sim: new 'Emergency Numbers' propertyAleksander Morgado
2019-08-29base-sim: avoid unnecessary MM_BASE_MODEM() call on MMBaseModem objectBen Chan
The 'modem' field in _MMBaseSimPrivate is already a MMBaseModem object.
2017-09-04base-sim: wrap in its own GTask the SIM id loading from the subclassAleksander Morgado
Instead of reusing the caller GTask, use a new GTask to wrap the execution of the subclass' async method implementation. Also, rename the _ready() methods implemented in the GObject initialization flow so that we can use the load_sim_identifier_ready() function name.
2017-09-04telit-plugin: handle QSS unsolicited due to power state transitionsCarlo Lobrano
When transitioning between power-low and power-on modes, Telit modems switch the SIM off/on, which leads to the emission of #QSS unsolicited not related to actual SIM swaps. To handle this #QSS unsolicited, this patch: * disables reacting on #QSS unsolicited when modem_power_down is received * implements modem_after_power_up that: - checks whether the SIM has been changed, matching cached SIM Identifier with the value in the current SIM. If SIM Identifier, is different, sim hot swap ports detected is called. - re-enables reacting on #QSS unsolicited
2017-07-05base-sim: port mm_base_sim_send_{pin,puk} to use GTaskBen Chan
2017-07-05base-sim: port load_* to use GTaskBen Chan
This patch ports the following functions to use GTask: - load_imsi - load_operator_identifier - load_operator_name - load_sim_identifier
2017-07-05base-sim: port mm_base_sim_initialize to use GTaskBen Chan
2017-07-05base-sim: port send_pin and send_puk to use GTaskBen Chan
2017-07-05base-sim: port enable_pin to use GTaskBen Chan
2017-07-05base-sim: port change_pin to use GTaskBen Chan
2017-07-03base-sim: remove unused wait_for_unlock_id in SendPinPukContextBen Chan
Commit d27e40ae9 ("core: new `Initializing' state in the global modem state machine") added a 'wait_for_unlock_id' field to SendPinPukContext, but never actually set it up.
2016-02-13helpers: move +CRSM parsing to mm_3gpp_parse_crsm_responseThomas Sailer
Also added test cases. Signed-off-by: Thomas Sailer <t.sailer@alumni.ethz.ch>
2014-07-06sim: rename 'MMSim' to 'MMBaseSim'Aleksander Morgado
Just so that we don't have same header names in src/ and /libmm-glib.