diff options
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index 9245729694d2..40dbe37cfbf6 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -478,6 +478,11 @@ int wiphy_register(struct wiphy *wiphy) | |||
478 | ETH_ALEN))) | 478 | ETH_ALEN))) |
479 | return -EINVAL; | 479 | return -EINVAL; |
480 | 480 | ||
481 | if (WARN_ON(wiphy->max_acl_mac_addrs && | ||
482 | (!(wiphy->flags & WIPHY_FLAG_HAVE_AP_SME) || | ||
483 | !rdev->ops->set_mac_acl))) | ||
484 | return -EINVAL; | ||
485 | |||
481 | if (wiphy->addresses) | 486 | if (wiphy->addresses) |
482 | memcpy(wiphy->perm_addr, wiphy->addresses[0].addr, ETH_ALEN); | 487 | memcpy(wiphy->perm_addr, wiphy->addresses[0].addr, ETH_ALEN); |
483 | 488 | ||