[PATCH] osmocom-bb[master]: host/trxcon/trx_if.c: fix compatibility with OsmoTRX

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 22 15:32:46 UTC 2018


Review at  https://gerrit.osmocom.org/6709

host/trxcon/trx_if.c: fix compatibility with OsmoTRX

For some reasons, OsmoTRX sends 158-byte long sequences on DATA
interface, where the latest two bytes aren't used.

Change-Id: Ie9295e9b0d8956d9e87e2ced8cca9d5e68040f88
---
M src/host/trxcon/trx_if.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/09/6709/1

diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index eb868ce..1ee9440 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -516,6 +516,7 @@
 /* 1 byte RSSI in -dBm                                                      */
 /* 2 bytes correlator timing offset in 1/256 symbol steps, 2's-comp, BE     */
 /* 148 bytes soft symbol estimates, 0 -> definite "0", 255 -> definite "1"  */
+/* 2 bytes are not used, but being sent by OsmoTRX                          */
 /*                                                                          */
 /* Transmit Data Burst:                                                     */
 /* 1 byte timeslot index                                                    */
@@ -538,7 +539,7 @@
 	if (len <= 0)
 		return len;
 
-	if (len != 156) {
+	if (len != 158) {
 		LOGP(DTRX, LOGL_ERROR, "Got data message with invalid length "
 			"'%d'\n", len);
 		return -EINVAL;

-- 
To view, visit https://gerrit.osmocom.org/6709
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie9295e9b0d8956d9e87e2ced8cca9d5e68040f88
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list