fixeria submitted this change.
trxcon: trx_data_rx_cb(): check TRXD PDU version
Change-Id: If5687d7d87619c0da02cc81ab26d63e61484bc06
---
M src/host/trxcon/src/trx_if.c
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index c8e7a93..c938fc0 100644
--- a/src/host/trxcon/src/trx_if.c
+++ b/src/host/trxcon/src/trx_if.c
@@ -648,6 +648,12 @@
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) {
To view, visit change 30290. To unsubscribe, or for help writing mail filters, visit settings.