drivers: modem: gsm: fix RSSI check condition

Fixes invalid condition introduced in #48533 when FSM implementation
was added.

Signed-off-by: Marin Jurjević <marin.jurjevic@hotmail.com>
This commit is contained in:
Marin Jurjević 2022-11-09 13:24:43 +01:00 committed by Carles Cufí
parent e01d8dbbd7
commit b99b66fba2

View file

@ -826,7 +826,7 @@ attaching:
/* Read connection quality (RSSI) before PPP carrier is ON */
query_rssi_nolock(gsm);
if (!((gsm->minfo.mdm_rssi > 0) && (gsm->minfo.mdm_rssi != GSM_RSSI_INVALID) &&
if (!((gsm->minfo.mdm_rssi) && (gsm->minfo.mdm_rssi != GSM_RSSI_INVALID) &&
(gsm->minfo.mdm_rssi < GSM_RSSI_MAXVAL))) {
LOG_DBG("Not valid RSSI, %s", "retrying...");