l1sap: be sure that UL-SACCH repetition is turned off

At the beginning of repeated_ul_sacch_active_decision() The UL-SACCH
repetition capability is tested. If no UL-SACCH repetition is enabled
the function exits. However, we should also make sure that the struct
member that enabled UL-SACCH repetition on the lower level is set to
false as well. Normally that should be the case because it was never
set to true before, but it is better to be sure.

Change-Id: I76a841514eb955b93f2114470b2c80402cf6883c
Related: SYS#5114
This commit is contained in:
Philipp Maier 2021-02-11 23:19:55 +01:00
parent 76308ab3fb
commit 6664f47ad7
1 changed files with 7 additions and 1 deletions

View File

@ -1427,8 +1427,14 @@ static void repeated_ul_sacch_active_decision(struct gsm_lchan *lchan,
uint16_t upper = 0;
uint16_t lower = 0;
if (!lchan->repeated_acch_capability.ul_sacch)
/* This is an optimization so that we exit as quickly as possible if
* there are no uplink SACCH repetition capabilities present.
* However If the repeated UL-SACCH capabilities vanish for whatever
* reason, we must be sure that UL-SACCH repetition is disabled. */
if (!lchan->repeated_acch_capability.ul_sacch) {
lchan->repeated_ul_sacch_active = false;
return;
}
/* Threshold disabled (repetition is always on) */
if (lchan->repeated_acch_capability.rxqual == 0) {