diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-07-10 10:54:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-14 14:52:57 -0400 |
commit | 1e188637902eb4b62d325d3cc76b076724f3ec55 (patch) | |
tree | 3d7e24c87e8eee149c9adea1ca6a94adc528e2cb | |
parent | a05ffd395e1f1293d05a814ef697c12efa411ad8 (diff) |
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 <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a4bbc8d6d0e6..8f51375317dd 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, | |||
4360 | return NULL; | 4360 | return NULL; |
4361 | } | 4361 | } |
4362 | 4362 | ||
4363 | if (!ieee80211_bssid_match(bssid, sdata->u.sta.bssid)) | 4363 | if (compare_ether_addr(bssid, sdata->u.sta.bssid)) |
4364 | return NULL; | 4364 | return NULL; |
4365 | 4365 | ||
4366 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 4366 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |