summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-09-11 20:21:53 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-09-11 20:21:53 +0200
commit90e3733041236611d1042032d708d403452a6489 (patch)
tree3e31f78eb63f4427d80af5ac57632c8941b7fbb8
parent4af856a71bca00c396b0e41fb0bd9f01b6a36a36 (diff)
downloadNetworkManager-bg/reapply-seen-bssids-issue243.tar.gz
wifi: allow reapply when the seen-bssids property changedbg/reapply-seen-bssids-issue243
wifi.seen-bssid is a synthetic read-only property that lists all the bssids seen for that connection; it should be ignored during a reapply. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/243
-rw-r--r--src/devices/wifi/nm-device-iwd.c1
-rw-r--r--src/devices/wifi/nm-device-wifi.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c
index 33f4df02e5..70af762823 100644
--- a/src/devices/wifi/nm-device-iwd.c
+++ b/src/devices/wifi/nm-device-iwd.c
@@ -2046,6 +2046,7 @@ can_reapply_change (NMDevice *device,
return nm_device_hash_check_invalid_keys (diffs,
NM_SETTING_WIRELESS_SETTING_NAME,
error,
+ NM_SETTING_WIRELESS_SEEN_BSSIDS, /* ignored */
NM_SETTING_WIRELESS_MTU); /* reapplied with IP config */
}
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index 25f3b5c701..2dc1c6a5b0 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -3181,6 +3181,7 @@ can_reapply_change (NMDevice *device,
return nm_device_hash_check_invalid_keys (diffs,
NM_SETTING_WIRELESS_SETTING_NAME,
error,
+ NM_SETTING_WIRELESS_SEEN_BSSIDS, /* ignored */
NM_SETTING_WIRELESS_MTU, /* reapplied with IP config */
NM_SETTING_WIRELESS_WAKE_ON_WLAN);
}