mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 15:30:27 +01:00
wifi: use nm_wifi_ap_set_address_bin() in activation_success_handler()
This commit is contained in:
parent
248b112a9a
commit
54817e3cfd
2 changed files with 3 additions and 8 deletions
|
|
@ -454,10 +454,8 @@ periodic_update(NMDeviceIwd *self)
|
|||
|
||||
if (nm_ethernet_address_is_valid(bssid, ETH_ALEN)
|
||||
&& memcmp(bssid, priv->current_ap_bssid, ETH_ALEN)) {
|
||||
gs_free char *bssid_str = NULL;
|
||||
memcpy(priv->current_ap_bssid, bssid, ETH_ALEN);
|
||||
bssid_str = nm_utils_hwaddr_ntoa(bssid, ETH_ALEN);
|
||||
ap_changed |= nm_wifi_ap_set_address(priv->current_ap, bssid_str);
|
||||
ap_changed |= nm_wifi_ap_set_address_bin(priv->current_ap, bssid);
|
||||
ap_changed |= nm_wifi_ap_set_freq(priv->current_ap,
|
||||
nm_platform_wifi_get_frequency(platform, ifindex));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3391,11 +3391,8 @@ activation_success_handler(NMDevice *device)
|
|||
update_bssid ? bssid : NULL,
|
||||
NULL,
|
||||
update_rate ? &rate : NULL)) {
|
||||
if (update_bssid && nm_ethernet_address_is_valid(bssid, ETH_ALEN)) {
|
||||
gs_free char *bssid_str = NULL;
|
||||
bssid_str = nm_utils_hwaddr_ntoa(bssid, ETH_ALEN);
|
||||
ap_changed |= nm_wifi_ap_set_address(priv->current_ap, bssid_str);
|
||||
}
|
||||
if (update_bssid && nm_ethernet_address_is_valid(bssid, ETH_ALEN))
|
||||
ap_changed |= nm_wifi_ap_set_address_bin(priv->current_ap, bssid);
|
||||
if (update_rate)
|
||||
ap_changed |= nm_wifi_ap_set_max_bitrate(priv->current_ap, rate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue