trxcon: trx_data_rx_cb(): check TRXD PDU version
Change-Id: If5687d7d87619c0da02cc81ab26d63e61484bc06
This commit is contained in:
parent
6703d5289b
commit
384a8dd3fe
|
@ -648,6 +648,12 @@ static int trx_data_rx_cb(struct osmo_fd *ofd, unsigned int what)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((buf[0] >> 4) != 0) {
|
||||||
|
LOGPFSMSL(trx->fi, DTRXD, LOGL_ERROR,
|
||||||
|
"Got TRXD PDU with unexpected version\n");
|
||||||
|
return -ENOTSUP;
|
||||||
|
}
|
||||||
|
|
||||||
burst = (sbit_t *)&buf[8];
|
burst = (sbit_t *)&buf[8];
|
||||||
|
|
||||||
bi = (struct trxcon_phyif_burst_ind) {
|
bi = (struct trxcon_phyif_burst_ind) {
|
||||||
|
|
Loading…
Reference in New Issue