From 45e8aa50df7357f7c96fc73e3cda6b69ae93bff8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 6 Aug 2012 19:05:54 +0200 Subject: iface-modem-3gpp: when disabled, cleanup interface properties --- src/mm-iface-modem-3gpp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c index 50d1f8b5..6d31b89b 100644 --- a/src/mm-iface-modem-3gpp.c +++ b/src/mm-iface-modem-3gpp.c @@ -874,6 +874,7 @@ typedef enum { DISABLING_STEP_CLEANUP_UNSOLICITED_REGISTRATION_EVENTS, DISABLING_STEP_CLEANUP_UNSOLICITED_EVENTS, DISABLING_STEP_DISABLE_UNSOLICITED_EVENTS, + DISABLING_STEP_REGISTRATION_STATE, DISABLING_STEP_LAST } DisablingStep; @@ -1025,6 +1026,15 @@ interface_disabling_step (DisablingContext *ctx) /* Fall down to next step */ ctx->step++; + case DISABLING_STEP_REGISTRATION_STATE: + update_registration_state (ctx->self, + MM_MODEM_3GPP_REGISTRATION_STATE_UNKNOWN, + 0, /* access tech */ + 0, /* lac */ + 0); /* cid */ + /* Fall down to next step */ + ctx->step++; + case DISABLING_STEP_LAST: /* We are done without errors! */ g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE); -- cgit v1.2.3-70-g09d2