ns2: check the specific bit of NS SDU Control bits

Change-Id: I9632abe70585cb7aff2602590453d903dd88b48a
This commit is contained in:
Alexander Couzens 2020-09-23 23:24:02 +02:00 committed by laforge
parent c82c40aa53
commit c1cd333072
1 changed files with 2 additions and 1 deletions

View File

@ -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,