mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-09 04:05:56 +00:00
all: use the new NMSettingWireless mac-address-denylist property
This commit is contained in:
parent
fa215c6a69
commit
fda0f8435d
|
@ -774,8 +774,8 @@ check_connection_compatible(NMDevice *device,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check for MAC address blacklist */
|
||||
mac_blacklist = nm_setting_wireless_get_mac_address_blacklist(s_wireless);
|
||||
/* Check for MAC address denylist */
|
||||
mac_blacklist = nm_setting_wireless_get_mac_address_denylist(s_wireless);
|
||||
for (i = 0; mac_blacklist[i]; i++) {
|
||||
nm_assert(nm_utils_hwaddr_valid(mac_blacklist[i], ETH_ALEN));
|
||||
|
||||
|
|
|
@ -1013,8 +1013,8 @@ check_connection_compatible(NMDevice *device,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check for MAC address blacklist */
|
||||
mac_blacklist = nm_setting_wireless_get_mac_address_blacklist(s_wireless);
|
||||
/* Check for MAC address denylist */
|
||||
mac_blacklist = nm_setting_wireless_get_mac_address_denylist(s_wireless);
|
||||
for (i = 0; mac_blacklist[i]; i++) {
|
||||
if (!nm_utils_hwaddr_valid(mac_blacklist[i], ETH_ALEN)) {
|
||||
g_warn_if_reached();
|
||||
|
|
Loading…
Reference in New Issue
Block a user