From e174a420fa54f2d1086b1de2aaa7cea7859a645b Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 11 Sep 2019 20:21:53 +0200 Subject: [PATCH] wifi: allow reapply when the seen-bssids property changed 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 (cherry picked from commit 8cd8a5fbed8732786e5bb1640920c0ea23e559f7) (cherry picked from commit 81cc4ddb1a068bcb0404e12929bd5feca707fd75) (cherry picked from commit ade98643667284c1f841fbdbbd36095feeffa2cd) (cherry picked from commit ea30bffbb5de04b448437645be37c9b773bc8468) --- src/devices/wifi/nm-device-iwd.c | 1 + src/devices/wifi/nm-device-wifi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index 1d1be742b6..4bdd936e4c 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -1645,6 +1645,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 2ce846184e..d5f34588ed 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -3157,6 +3157,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); }