aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-26 16:34:45 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-26 16:34:49 +0200
commitbfc1d0bed77e2454eb954ff2a0ac4b1458ebf3fd (patch)
tree4a6817b89bdf196c53d0b488ed96bcf22087f0c1
parent76ff96e21079db2cd7123ff9ca33fa7d2fb0cb01 (diff)
Transceiver: Enable EDGE detection only on PDCH timeslots
-rw-r--r--Transceiver52M/Transceiver.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 23aabdd..590101c 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -558,8 +558,8 @@ CorrType Transceiver::expectedCorrType(GSM::Time currTime,
return mExtRACH ? EXT_RACH : RACH;
else if ((mod52 == 25) || (mod52 == 51))
return IDLE;
- else
- return TSC;
+ else /* Enable 8-PSK burst detection if EDGE is enabled */
+ return mEdge ? EDGE : TSC;
break;
}
case LOOPBACK:
@@ -610,10 +610,6 @@ bool Transceiver::pullRadioVector(size_t chan, struct trx_ul_burst_ind *bi)
burstTime = radio_burst->getTime();
CorrType type = expectedCorrType(burstTime, chan);
- /* Enable 8-PSK burst detection if EDGE is enabled */
- if (mEdge && (type == TSC))
- type = EDGE;
-
/* Debug: dump bursts to disk */
/* bits 0-7 - chan 0 timeslots
* bits 8-15 - chan 1 timeslots */