L1SAP: properly handle 11-bit encoded RACH.ind in gsmtap_ph_rach()

Change-Id: Id263c2b716fd282d37d705a1c5f430ce7c0edaf0
This commit is contained in:
Vadim Yanitskiy 2019-10-09 03:17:38 +07:00
parent 29e47ffc20
commit eb43c947c1
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ static int gsmtap_ph_rach(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
}
*data = (uint8_t *)&l1sap->u.rach_ind.ra;
*len = 1;
*len = (l1sap->u.rach_ind.is_11bit) ? 2 : 1;
return 0;
}