diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 70b2af2315a6..7e6781f8c57e 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -919,7 +919,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, | |||
919 | } else | 919 | } else |
920 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 920 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
921 | 921 | ||
922 | if (compare_ether_addr(mac, sdata->vif.addr) == 0) | 922 | if (ether_addr_equal(mac, sdata->vif.addr)) |
923 | return -EINVAL; | 923 | return -EINVAL; |
924 | 924 | ||
925 | if (is_multicast_ether_addr(mac)) | 925 | if (is_multicast_ether_addr(mac)) |