aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-26 15:43:56 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-26 15:45:56 +0200
commit4e6ec4554da612eaf04339fe515a77535a104302 (patch)
treed5fe379da89dc22a316e6ddd8c8f3a438de89a9f
parente4166be76fc03c9c3b1e960c4e11e1ff723e5cdd (diff)
Transceiver: Fix idle ul burst indications being dropped
pullRadioVector() should return true on idle frames because those indications may be handled by upper layers (TRXDv1). Clarify return code in function documentation. Change-Id: If592ed1c04cf7e995f656b313f60edd4d40d1bfd
-rw-r--r--Transceiver52M/Transceiver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 0a78c11..9a1c446 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -587,6 +587,7 @@ void writeToFile(radioVector *radio_burst, size_t chan)
/*
* Pull bursts from the FIFO and handle according to the slot
* and burst correlation type. Equalzation is currently disabled.
+ * returns true on success (bi filled), false on error (bi content undefined).
*/
bool Transceiver::pullRadioVector(size_t chan, struct trx_ul_burst_ind *bi)
{
@@ -708,7 +709,7 @@ bool Transceiver::pullRadioVector(size_t chan, struct trx_ul_burst_ind *bi)
ret_idle:
bi->idle = true;
delete radio_burst;
- return false;
+ return true;
}
void Transceiver::reset()