aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-3gpp.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-11-29 12:20:33 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:29 +0100
commit9c60fe6e16255539ac0406a61272cc3fb4b91ea4 (patch)
tree4454824952df921eb330a033f4a8b41530c363cf /src/mm-iface-modem-3gpp.c
parentb64658164026413fe3b2451e77c3220f0d016457 (diff)
iface-modem-3gpp: load registration states during enable
Diffstat (limited to 'src/mm-iface-modem-3gpp.c')
-rw-r--r--src/mm-iface-modem-3gpp.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c
index b63b51ae..053c480b 100644
--- a/src/mm-iface-modem-3gpp.c
+++ b/src/mm-iface-modem-3gpp.c
@@ -97,7 +97,9 @@ typedef enum {
ENABLING_STEP_FIRST,
ENABLING_STEP_SETUP_UNSOLICITED_REGISTRATION,
ENABLING_STEP_SETUP_CS_REGISTRATION,
+ ENABLING_STEP_RUN_CS_REGISTRATION_CHECK,
ENABLING_STEP_SETUP_PS_REGISTRATION,
+ ENABLING_STEP_RUN_PS_REGISTRATION_CHECK,
ENABLING_STEP_LAST
} EnablingStep;
@@ -173,7 +175,9 @@ mm_iface_modem_3gpp_enable_finish (MMIfaceModem3gpp *self,
}
VOID_REPLY_READY_FN (setup_cs_registration)
+VOID_REPLY_READY_FN (run_cs_registration_check)
VOID_REPLY_READY_FN (setup_ps_registration)
+VOID_REPLY_READY_FN (run_ps_registration_check)
VOID_REPLY_READY_FN (setup_unsolicited_registration)
static void
@@ -208,6 +212,18 @@ interface_enabling_step (EnablingContext *ctx)
/* Fall down to next step */
ctx->step++;
+ case ENABLING_STEP_RUN_CS_REGISTRATION_CHECK:
+ if (MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->run_cs_registration_check &&
+ MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->run_cs_registration_check_finish) {
+ MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->run_cs_registration_check (
+ ctx->self,
+ (GAsyncReadyCallback)run_cs_registration_check_ready,
+ ctx);
+ return;
+ }
+ /* Fall down to next step */
+ ctx->step++;
+
case ENABLING_STEP_SETUP_PS_REGISTRATION:
if (MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->setup_ps_registration &&
MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->setup_ps_registration_finish) {
@@ -220,6 +236,18 @@ interface_enabling_step (EnablingContext *ctx)
/* Fall down to next step */
ctx->step++;
+ case ENABLING_STEP_RUN_PS_REGISTRATION_CHECK:
+ if (MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->run_ps_registration_check &&
+ MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->run_ps_registration_check_finish) {
+ MM_IFACE_MODEM_3GPP_GET_INTERFACE (ctx->self)->run_ps_registration_check (
+ ctx->self,
+ (GAsyncReadyCallback)run_ps_registration_check_ready,
+ ctx);
+ return;
+ }
+ /* Fall down to next step */
+ ctx->step++;
+
case ENABLING_STEP_LAST:
/* We are done without errors! */
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);