mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 20:10:17 +01:00
wwan/ofono: avoid bogus IP failure when not connecting
If modem is not at least "registered", a connection is not happening, which means IP settings change is probably not interesting. Avoid trying to parse it, so that we don't trigger connection failure when there isn't one.
This commit is contained in:
parent
e7809a2bd7
commit
f914df4f79
1 changed files with 8 additions and 0 deletions
|
|
@ -1213,6 +1213,14 @@ handle_settings(NMModemOfono *self, GVariant *v_dict)
|
|||
* handle the action.
|
||||
*/
|
||||
|
||||
if (nm_modem_get_state(NM_MODEM(self)) < NM_MODEM_STATE_REGISTERED) {
|
||||
/*
|
||||
* Connection definitely isn't happening. Avoid trigering bogus
|
||||
* failure which would put device in a wrong state.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
_LOGI("IPv4 static Settings:");
|
||||
|
||||
if (!g_variant_lookup(v_dict, "Interface", "&s", &interface)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue