mirror of https://gerrit.osmocom.org/libosmocore
gprs_ns2: don't start unconfigured fsm via FORCE_UNCONFIGURED
IP-SNS NSVC are unconfigured and not started when the IP-SNS is doing the SNS configuration. If those NSVC would be started it would result in unsolicitated NS-Alive PDUs. Change-Id: Ifec7288dbe71f10109e8b5c3849bf8f23ac7b557
This commit is contained in:
parent
a367d0863f
commit
6f3b738c74
|
@ -566,10 +566,12 @@ static void gprs_ns2_vc_fsm_allstate_action(struct osmo_fsm_inst *fi,
|
||||||
msgb_free(msg);
|
msgb_free(msg);
|
||||||
break;
|
break;
|
||||||
case GPRS_NS2_EV_FORCE_UNCONFIGURED:
|
case GPRS_NS2_EV_FORCE_UNCONFIGURED:
|
||||||
/* Force the NSVC back to its initial state */
|
if (fi->state != GPRS_NS2_ST_UNCONFIGURED) {
|
||||||
osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNCONFIGURED, 0, 0);
|
/* Force the NSVC back to its initial state */
|
||||||
osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_START, NULL);
|
osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNCONFIGURED, 0, 0);
|
||||||
return;
|
osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_START, NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue