Skip to content

Commit

Permalink
mac80211: dont add a STA which is not in the same IBSS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emmanuel Grumbach authored and John W. Linville committed Jul 14, 2008
1 parent a05ffd3 commit 1e18863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e18863

Please sign in to comment.