Skip to content

Commit

Permalink
drivers: modem: gsm fix rssi range
Browse files Browse the repository at this point in the history
rssi 31 will be -51dBm or greater, where -51 is valid. Fix the
range by allowing until -51.

Signed-off-by: Parthiban Nallathambi <[email protected]>
  • Loading branch information
parthitce authored and fabiobaltieri committed Jan 19, 2024
1 parent 5f989e4 commit db42900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/modem/gsm_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static void gsm_finalize_connection(struct k_work *work)
query_rssi_nolock(gsm);

if (!((gsm->minfo.mdm_rssi) && (gsm->minfo.mdm_rssi != GSM_RSSI_INVALID) &&
(gsm->minfo.mdm_rssi < GSM_RSSI_MAXVAL))) {
(gsm->minfo.mdm_rssi <= GSM_RSSI_MAXVAL))) {

LOG_DBG("Not valid RSSI, %s", "retrying...");
if (gsm->retries-- > 0) {
Expand Down

0 comments on commit db42900

Please sign in to comment.