mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 12:30:07 +01:00
Fix the exit test condition on modem state when creating the connection properties
This commit is contained in:
parent
59c65bc859
commit
018c5722ee
2 changed files with 4 additions and 1 deletions
3
NEWS
3
NEWS
|
|
@ -20,6 +20,9 @@ USE AT YOUR OWN RISK. NOT RECOMMENDED FOR PRODUCTION USE!
|
|||
* Add gsm device-uid setting to restrict the devices the connection applies to.
|
||||
* Support configuring the HSR protocol version via the
|
||||
"hsr.protocol-version" property.
|
||||
* Fix a bug that makes broadband connections auto-connect getting
|
||||
blocked if the connection tries to reconnect when modem status is
|
||||
"disconnecting" / "disconnected".
|
||||
|
||||
=============================================
|
||||
NetworkManager-1.54
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ try_create_connect_properties(NMModemBroadband *self)
|
|||
if (s_gsm)
|
||||
network_id = nm_setting_gsm_get_network_id(s_gsm);
|
||||
if (!network_id) {
|
||||
if (mm_modem_get_state(self->_priv.modem_iface) < MM_MODEM_STATE_REGISTERED)
|
||||
if (mm_modem_get_state(self->_priv.modem_iface) != MM_MODEM_STATE_REGISTERED)
|
||||
return FALSE;
|
||||
modem_3gpp = mm_object_get_modem_3gpp(priv->modem_object);
|
||||
network_id = mm_modem_3gpp_get_operator_code(modem_3gpp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue