diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-12-21 15:57:04 +0100 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2020-12-23 06:32:29 +0100 |
commit | 6f3b738c74158461387bd3ee40a240ef3d99b1a5 (patch) | |
tree | 4929d7bded8cfd112f1f1f2c00b0658e508d8573 | |
parent | a367d0863fd5e4d114ba0c124fe0bc4f49fa6187 (diff) |
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
-rw-r--r-- | src/gb/gprs_ns2_vc_fsm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c index 0f6eeabd..d5f134e1 100644 --- a/src/gb/gprs_ns2_vc_fsm.c +++ b/src/gb/gprs_ns2_vc_fsm.c @@ -566,10 +566,12 @@ static void gprs_ns2_vc_fsm_allstate_action(struct osmo_fsm_inst *fi, msgb_free(msg); break; case GPRS_NS2_EV_FORCE_UNCONFIGURED: - /* Force the NSVC back to its initial state */ - osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNCONFIGURED, 0, 0); - osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_START, NULL); - return; + if (fi->state != GPRS_NS2_ST_UNCONFIGURED) { + /* Force the NSVC back to its initial state */ + osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNCONFIGURED, 0, 0); + osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_START, NULL); + return; + } break; } } |