aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 14e1f4015a72..fcfa1bf776a7 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -729,7 +729,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
729 } else 729 } else
730 sdata = IEEE80211_DEV_TO_SUB_IF(dev); 730 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
731 731
732 if (compare_ether_addr(mac, dev->dev_addr) == 0) 732 if (compare_ether_addr(mac, sdata->vif.addr) == 0)
733 return -EINVAL; 733 return -EINVAL;
734 734
735 if (is_multicast_ether_addr(mac)) 735 if (is_multicast_ether_addr(mac))