aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-09-23 23:24:02 +0200
committerlaforge <laforge@osmocom.org>2020-09-25 09:45:24 +0000
commitc1cd333072062e676a8cab4a0931beddb7b4a788 (patch)
tree15755a60b3fa3c6b3d4355867b7b983c9c5134ad
parentc82c40aa5369d0a1a1b64317b0a90d9d042326cd (diff)
ns2: check the specific bit of NS SDU Control bits
-rw-r--r--src/gb/gprs_ns2_vc_fsm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c
index 7b07a497..d13f1ce6 100644
--- a/src/gb/gprs_ns2_vc_fsm.c
+++ b/src/gb/gprs_ns2_vc_fsm.c
@@ -473,7 +473,8 @@ static void gprs_ns2_recv_unitdata(struct osmo_fsm_inst *fi,
nsp.bvci = bvci;
nsp.nsei = priv->nsvc->nse->nsei;
- if (nsh->data[0])
+ /* 10.3.9 NS SDU Control Bits */
+ if (nsh->data[0] & 0x1)
nsp.u.unitdata.change = NS_ENDPOINT_REQUEST_CHANGE;
osmo_prim_init(&nsp.oph, SAP_NS, PRIM_NS_UNIT_DATA,