diff --git a/src/core/devices/wifi/nm-iwd-manager.c b/src/core/devices/wifi/nm-iwd-manager.c index 20a1703adb..c7ba20eaa6 100644 --- a/src/core/devices/wifi/nm-iwd-manager.c +++ b/src/core/devices/wifi/nm-iwd-manager.c @@ -491,7 +491,7 @@ sett_conn_changed(NMSettingsConnection * sett_conn, gboolean nm_autoconnectable = nm_setting_connection_get_autoconnect(s_conn); gboolean iwd_autoconnectable = get_property_bool(data->known_network, "AutoConnect", TRUE); - if (iwd_autoconnectable == nm_autoconnectable) { + if (iwd_autoconnectable != nm_autoconnectable) { nm_log_dbg(LOGD_WIFI, "iwd: updating AutoConnect on known network at %s based on connection %s", g_dbus_proxy_get_object_path(data->known_network), @@ -742,7 +742,9 @@ mirror_connection(NMIwdManager * self, g_object_set(G_OBJECT(s_wifi), NM_SETTING_WIRELESS_HIDDEN, hidden, NULL); } else { KnownNetworkData data = {known_network, settings_connection, id}; - sett_conn_changed(settings_connection, 0, &data); + sett_conn_changed(settings_connection, + NM_SETTINGS_CONNECTION_UPDATE_REASON_UPDATE_NON_SECRET, + &data); } } diff --git a/src/core/devices/wifi/nm-wifi-utils.c b/src/core/devices/wifi/nm-wifi-utils.c index 5536aa4f08..d9cf5df20b 100644 --- a/src/core/devices/wifi/nm-wifi-utils.c +++ b/src/core/devices/wifi/nm-wifi-utils.c @@ -1010,11 +1010,6 @@ psk_setting_to_iwd_config(GKeyFile *file, NMSettingWirelessSecurity *s_wsec, GEr const char * key_mgmt = nm_setting_wireless_security_get_key_mgmt(s_wsec); if (!psk || NM_FLAGS_ANY(psk_flags, SECRETS_DONT_STORE_FLAGS)) { - g_key_file_set_comment(file, - "Security", - NULL, - "The passphrase is to be queried through the agent", - NULL); if (NM_FLAGS_ANY(psk_flags, SECRETS_DONT_STORE_FLAGS)) { nm_log_info( LOGD_WIFI,