mirror of git://git.sysmocom.de/ofono
plugins: Remove AllowedAccessPoints interface
Without this patch, a modem that has been removed still shows the AllowedAccessPoints interface
This commit is contained in:
parent
41ad1c1da0
commit
a0a95be334
|
@ -195,6 +195,7 @@ static void sim_watch(struct ofono_atom *atom,
|
||||||
|
|
||||||
if (cond == OFONO_ATOM_WATCH_CONDITION_UNREGISTERED) {
|
if (cond == OFONO_ATOM_WATCH_CONDITION_UNREGISTERED) {
|
||||||
if (ctx->simwatch_id) {
|
if (ctx->simwatch_id) {
|
||||||
|
sim_state_watch(OFONO_SIM_STATE_NOT_PRESENT, data);
|
||||||
ofono_sim_remove_state_watch(ctx->sim, ctx->simwatch_id);
|
ofono_sim_remove_state_watch(ctx->sim, ctx->simwatch_id);
|
||||||
ctx->simwatch_id = 0;
|
ctx->simwatch_id = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue