iface-modem: fix setting up signal quality retrieval logic
If going directly e.g. from "Searching" to "Connecting", just setup the signal quality retrieval logic right away, don't assume we always go through "Registered" state before starting a connection. Reported-by: <colin.helliwell@ln-systems.com>
This commit is contained in:
@@ -1454,9 +1454,9 @@ __iface_modem_update_state_internal (MMIfaceModem *self,
|
||||
reason);
|
||||
}
|
||||
|
||||
/* If we go to registered state (from unregistered), setup signal
|
||||
* quality and access technologies periodic retrieval */
|
||||
if (new_state == MM_MODEM_STATE_REGISTERED &&
|
||||
/* If we go to a registered/connected state (from unregistered), setup
|
||||
* signal quality and access technologies periodic retrieval */
|
||||
if (new_state >= MM_MODEM_STATE_REGISTERED &&
|
||||
old_state < MM_MODEM_STATE_REGISTERED) {
|
||||
periodic_signal_quality_check_enable (self);
|
||||
periodic_access_technologies_check_enable (self);
|
||||
|
||||
Reference in New Issue
Block a user