fixeria has uploaded this change for review.

View Change

Revert "trxcon/trx_if: send NOPE indications if there is no burst"

This reverts commit f8bc28505f60e2a5636ad7779a13374ed661ad14.

Sending NOPE.ind from trxcon is no longer needed, since fake_trx.py
can now generate them on its own (see the related commit).

Change-Id: Ic3c55511cfee911d4eaea0ab19ee6295c9ac28cc
Related: I1e1a5209a9acff6c747cb4c574e9118bc8268474
---
M src/host/trxcon/src/trx_if.c
1 file changed, 5 insertions(+), 4 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/14/39814/1
diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index fad1026..e23b71a 100644
--- a/src/host/trxcon/src/trx_if.c
+++ b/src/host/trxcon/src/trx_if.c
@@ -721,6 +721,9 @@
uint8_t buf[TRXD_BUF_SIZE];
size_t length;

+ if (br->burst_len == 0)
+ return 0;
+
/**
* We must be sure that we have clock,
* and we have sent all control data
@@ -746,10 +749,8 @@
length = 6;

/* Copy ubits {0,1} */
- if (br->burst_len != 0) {
- memcpy(buf + 6, br->burst, br->burst_len);
- length += br->burst_len;
- }
+ memcpy(buf + 6, br->burst, br->burst_len);
+ length += br->burst_len;

/* Send data to transceiver */
send(trx->trx_ofd_data.fd, buf, length, 0);

To view, visit change 39814. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ic3c55511cfee911d4eaea0ab19ee6295c9ac28cc
Gerrit-Change-Number: 39814
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>