aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-04 21:46:00 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-05 12:21:23 +0100
commite476629bcff32106e3f8942738da024a85b5bce2 (patch)
treeac55b6710d2b23603eada3771a415256ced872e6 /src/common/l1sap.c
parent763ce0627a884f19c2a51dceac0443c13751f5bb (diff)
l1sap: fix: enable UL SACCH repetition if RxQual threshold is 0
It is expected that setting RxQual threshold to 0 would make the L1SAP logic enable repetition for both Uplink SACCH and Downlink FACCH unconditionally. However, this was only valid for the later. Let's add the missing check and make it consistent. Change-Id: Ia44a134e7f28ea990798d1b79c87b644504c0876 Related: SYS#5114
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 33d10a5a..48773f1e 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1408,6 +1408,12 @@ static void repeated_ul_sacch_active_decision(struct gsm_lchan *lchan,
if (!lchan->repeated_acch_capability.ul_sacch)
return;
+ /* Threshold disabled (repetition is always on) */
+ if (lchan->repeated_acch_capability.rxqual == 0) {
+ lchan->repeated_ul_sacch_active = true;
+ return;
+ }
+
/* convert from RXQUAL value to ber10k vale,
* see also GSM 05.08, section 8.2.4 */
static const uint16_t ber10k_by_rxqual_upper[] =