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
This commit is contained in:
zsien 2021-03-02 18:30:50 +08:00 committed by Thomas Haller
parent fc142c24ee
commit 29ba46b722
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);
}
}
}