l1sap: fix repeated_dl_facch_active_decision()

The function checks meas_res->rxqual_sub against the lower threshold
value in order to decide when to turn FACCH repetition off. This is not
correct. It should compare against rxqual instead.

Change-Id: Id4ab101d52f419583c4f4c8a6cf69af6c9097d25
Related: SYS#5114
This commit is contained in:
Philipp Maier 2021-02-11 22:46:32 +01:00
parent dabe5d0327
commit 2b3aa67a7b
1 changed files with 1 additions and 1 deletions

View File

@ -1025,7 +1025,7 @@ void repeated_dl_facch_active_decision(struct gsm_lchan *lchan, const uint8_t *l
if (rxqual >= upper)
lchan->repeated_dl_facch_active = true;
else if (meas_res->rxqual_sub <= lower)
else if (rxqual <= lower)
lchan->repeated_dl_facch_active = false;
}