iface-modem-3gpp: when disabled, cleanup interface properties

This commit is contained in:
Aleksander Morgado
2012-08-06 19:05:54 +02:00
parent 278842108c
commit 45e8aa50df

View File

@@ -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);