diff options
author | zsien <i@zsien.cn> | 2021-03-02 18:30:50 +0800 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-03-04 17:01:18 +0100 |
commit | 29ba46b722d7a53806780ced8cf781d57e37cd5b (patch) | |
tree | 8174992946c30c5b54596c22fc47223a9d6f20c2 | |
parent | fc142c24eec815398c50021cb6b45411c52fce2a (diff) | |
download | NetworkManager-29ba46b722d7a53806780ced8cf781d57e37cd5b.tar.gz |
wifi: fix SpecificObject of ActiveConnection not updated after WiFi roaming
The SpecificObject property of ActiveConnection should be updated after WiFi roaming.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/768
-rw-r--r-- | src/core/devices/wifi/nm-device-wifi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/devices/wifi/nm-device-wifi.c b/src/core/devices/wifi/nm-device-wifi.c index 19d340a3af..04fa75f707 100644 --- a/src/core/devices/wifi/nm-device-wifi.c +++ b/src/core/devices/wifi/nm-device-wifi.c @@ -2565,6 +2565,7 @@ supplicant_iface_notify_current_bss(NMSupplicantInterface *iface, NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE(self); NMRefString * current_bss; NMWifiAP * new_ap = NULL; + NMActRequest * req; current_bss = nm_supplicant_interface_get_current_bss(iface); if (current_bss) @@ -2612,6 +2613,13 @@ supplicant_iface_notify_current_bss(NMSupplicantInterface *iface, } set_current_ap(self, new_ap, TRUE); + + req = nm_device_get_act_request(NM_DEVICE(self)); + if (req) { + nm_active_connection_set_specific_object( + NM_ACTIVE_CONNECTION(req), + new_ap ? nm_dbus_object_get_path(NM_DBUS_OBJECT(new_ap)) : NULL); + } } } |