From: Emmanuel Grumbach Date: Thu, 10 Jul 2008 14:54:14 +0000 (+0300) Subject: mac80211: dont add a STA which is not in the same IBSS X-Git-Tag: v2.6.27-rc1~969^2~159^2~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e188637902eb4b62d325d3cc76b076724f3ec55;p=linux-2.6 mac80211: dont add a STA which is not in the same IBSS This patch avoids adding STAs that don't belong to our IBSS ieee80211_bssid_match matches also bcast address so also APs were added Signed-off-by: Emmanuel Grumbach Signed-off-by: Tomas Winkler Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a4bbc8d6d0..8f51375317 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -4360,7 +4360,7 @@ struct sta_info *ieee80211_ibss_add_sta(struct net_device *dev, return NULL; } - if (!ieee80211_bssid_match(bssid, sdata->u.sta.bssid)) + if (compare_ether_addr(bssid, sdata->u.sta.bssid)) return NULL; #ifdef CONFIG_MAC80211_VERBOSE_DEBUG