Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
This commit is contained in:
@@ -478,6 +478,11 @@ int wiphy_register(struct wiphy *wiphy)
|
||||
ETH_ALEN)))
|
||||
return -EINVAL;
|
||||
|
||||
if (WARN_ON(wiphy->max_acl_mac_addrs &&
|
||||
(!(wiphy->flags & WIPHY_FLAG_HAVE_AP_SME) ||
|
||||
!rdev->ops->set_mac_acl)))
|
||||
return -EINVAL;
|
||||
|
||||
if (wiphy->addresses)
|
||||
memcpy(wiphy->perm_addr, wiphy->addresses[0].addr, ETH_ALEN);
|
||||
|
||||
|
Reference in New Issue
Block a user