mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for MAC address blacklist */
|
/* Check for MAC address denylist */
|
||||||
mac_blacklist = nm_setting_wireless_get_mac_address_blacklist(s_wireless);
|
mac_blacklist = nm_setting_wireless_get_mac_address_denylist(s_wireless);
|
||||||
for (i = 0; mac_blacklist[i]; i++) {
|
for (i = 0; mac_blacklist[i]; i++) {
|
||||||
nm_assert(nm_utils_hwaddr_valid(mac_blacklist[i], ETH_ALEN));
|
nm_assert(nm_utils_hwaddr_valid(mac_blacklist[i], ETH_ALEN));
|
||||||
|
|
||||||
|
|
|
@ -1013,8 +1013,8 @@ check_connection_compatible(NMDevice *device,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for MAC address blacklist */
|
/* Check for MAC address denylist */
|
||||||
mac_blacklist = nm_setting_wireless_get_mac_address_blacklist(s_wireless);
|
mac_blacklist = nm_setting_wireless_get_mac_address_denylist(s_wireless);
|
||||||
for (i = 0; mac_blacklist[i]; i++) {
|
for (i = 0; mac_blacklist[i]; i++) {
|
||||||
if (!nm_utils_hwaddr_valid(mac_blacklist[i], ETH_ALEN)) {
|
if (!nm_utils_hwaddr_valid(mac_blacklist[i], ETH_ALEN)) {
|
||||||
g_warn_if_reached();
|
g_warn_if_reached();
|
||||||
|
|
Loading…
Reference in a new issue