summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trx_if.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-12 17:40:22 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-11-19 17:35:07 +0700
commit0f227d802b1ed22c8863a794675222ceaac2fd8c (patch)
treeab1138ad0e26e8981ed9f8728c00926816efa8b0 /src/host/trxcon/trx_if.c
parenta692cacdfc3edb96db7c5d9a9a19c0d99cc4f767 (diff)
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
Diffstat (limited to 'src/host/trxcon/trx_if.c')
-rw-r--r--src/host/trxcon/trx_if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index eb868ce9..1ee9440e 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -516,6 +516,7 @@ rsp_error:
/* 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 @@ static int trx_data_read_cb(struct osmo_fd *ofd, unsigned int what)
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;