measurement: make sure that DL measurements are valid

In repeated_dl_facch_active_decision() we rely on the Measurement
Report message, that in some cases may not contain valid Downlink
measurements.  In this case, we should simply ignore it.

Change-Id: I0d72b454f2b770d5762303fb70a15a8cdc9d07d7
Related: SYS#5114
This commit is contained in:
Vadim Yanitskiy 2021-10-22 01:41:10 +03:00
parent 45094096b1
commit dffb6fac25
1 changed files with 2 additions and 0 deletions

View File

@ -833,6 +833,8 @@ static void repeated_dl_facch_active_decision(struct gsm_lchan *lchan,
if (gh->msg_type != GSM48_MT_RR_MEAS_REP)
goto out;
meas_res = (const struct gsm48_meas_res *) gh->data;
if (meas_res->meas_valid != 0) /* 0 = valid */
goto out;
/* If the RXQUAL level at the MS drops under a certain threshold
* we enable FACCH repetition. */