Skip to content

Commit

Permalink
[ril] Get rid of unwanted retries on manual network connection. Fixes…
Browse files Browse the repository at this point in the history
… JB#53535

There is an issue when network operators return "allowed" flag no matter
which SIM card you are using currently. In that case, when user tries to
manually connect to such networks, it takes too long to have 2 (by
default) retries until device will get back to its home network.
So the solution is not to set additional retries to the
RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL request, as it has been done
in RILJ.
  • Loading branch information
Bogdan Migunov committed Mar 12, 2021
1 parent 50a5f25 commit 2b4b5a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ofono/drivers/ril/ril_netreg.c
Expand Up @@ -436,7 +436,6 @@ static void ril_netreg_register_manual(struct ofono_netreg *netreg,
ofono_info("nw select manual: %s%s%s", mcc, mnc, suffix);
grilio_request_append_format(req, "%s%s%s", mcc, mnc, suffix);
grilio_request_set_timeout(req, nd->network_selection_timeout);
grilio_request_set_retry(req, 0, REGISTRATION_MAX_RETRIES);
grilio_queue_send_request_full(nd->q, req,
RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL,
ril_netreg_register_cb, ril_netreg_cbd_free,
Expand Down

0 comments on commit 2b4b5a2

Please sign in to comment.