gprs_ns2_udp: don't start the NSVC fsm for SNS

The SNS code will always create NSVC on it's own. The only case
when the SNS dialect allows dynamic NSE/NSVC is on the SGSN side when accepting
dynamic NSE and receiving the first SNS SIZE. In this case the NSVC FSM must not be started yet.
Prevents sending NS_ALIVE before the SNS configuration has been
finished.

Change-Id: I86275c99432262b3c19c1ded9a77090b74303bc8
This commit is contained in:
Alexander Couzens 2021-08-06 18:07:26 +02:00 committed by laforge
parent 6a138891da
commit 20ed591036
1 changed files with 3 additions and 1 deletions

View File

@ -247,7 +247,9 @@ static int handle_nsip_read(struct osmo_fd *bfd)
goto out;
case NS2_CS_CREATED:
ns2_driver_alloc_vc(bind, nsvc, &saddr);
ns2_vc_fsm_start(nsvc);
/* only start the fsm for non SNS. SNS will take care of its own */
if (nsvc->nse->dialect != GPRS_NS2_DIALECT_SNS)
ns2_vc_fsm_start(nsvc);
break;
}
}