trxcon: trx_data_rx_cb(): check TRXD PDU version

Change-Id: If5687d7d87619c0da02cc81ab26d63e61484bc06
This commit is contained in:
Vadim Yanitskiy 2022-11-24 11:33:13 +07:00 committed by fixeria
parent 6703d5289b
commit 384a8dd3fe
1 changed files with 6 additions and 0 deletions

View File

@ -648,6 +648,12 @@ static int trx_data_rx_cb(struct osmo_fd *ofd, unsigned int what)
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];
bi = (struct trxcon_phyif_burst_ind) {