iface-modem-3gpp: when disabled, cleanup interface properties
This commit is contained in:
@@ -874,6 +874,7 @@ typedef enum {
|
|||||||
DISABLING_STEP_CLEANUP_UNSOLICITED_REGISTRATION_EVENTS,
|
DISABLING_STEP_CLEANUP_UNSOLICITED_REGISTRATION_EVENTS,
|
||||||
DISABLING_STEP_CLEANUP_UNSOLICITED_EVENTS,
|
DISABLING_STEP_CLEANUP_UNSOLICITED_EVENTS,
|
||||||
DISABLING_STEP_DISABLE_UNSOLICITED_EVENTS,
|
DISABLING_STEP_DISABLE_UNSOLICITED_EVENTS,
|
||||||
|
DISABLING_STEP_REGISTRATION_STATE,
|
||||||
DISABLING_STEP_LAST
|
DISABLING_STEP_LAST
|
||||||
} DisablingStep;
|
} DisablingStep;
|
||||||
|
|
||||||
@@ -1025,6 +1026,15 @@ interface_disabling_step (DisablingContext *ctx)
|
|||||||
/* Fall down to next step */
|
/* Fall down to next step */
|
||||||
ctx->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:
|
case DISABLING_STEP_LAST:
|
||||||
/* We are done without errors! */
|
/* We are done without errors! */
|
||||||
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
|
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
|
||||||
|
Reference in New Issue
Block a user