Change in ...osmo-trx[master]: driveTxPriorityQueue(): check if message header format is supported
fixeria
gerrit-no-reply at lists.osmocom.org
Mon Jul 15 18:09:18 UTC 2019
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/14787
Change subject: driveTxPriorityQueue(): check if message header format is supported
......................................................................
driveTxPriorityQueue(): check if message header format is supported
Change-Id: I17abf95f5e23236abccc50476cd59931580f5cd3
---
M Transceiver52M/Transceiver.cpp
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/87/14787/1
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 4cd8637..eae8d53 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -941,6 +941,18 @@
/* Convert TDMA FN to the host endianness */
chdr->fn = ntohl(chdr->fn);
+ /* Make sure we support the received header format */
+ switch (chdr->version) {
+ case 0:
+ /* Version 1 has the same format */
+ case 1:
+ break;
+
+ default:
+ LOG(ERR) << "Rx TRXD message with unknown header version " << chdr->version;
+ return false;
+ }
+
LOG(DEBUG) << "rcvd. burst at: " << GSM::Time(chdr->fn, chdr->tn);
int RSSI = (int) buffer[5];
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/14787
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I17abf95f5e23236abccc50476cd59931580f5cd3
Gerrit-Change-Number: 14787
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190715/e9f4961a/attachment-0001.html>
More information about the gerrit-log
mailing list