diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-09-30 16:14:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-30 16:14:27 -0400 |
commit | 15214c2f6cb15387e3bb06621010dd5609aba709 (patch) | |
tree | 7f2edaa59a29e8be2eee95cddb302f33429f4cb0 /net/mac80211/rx.c | |
parent | c7515d2365a6b8a018950198ebe1f5be793cd4bb (diff) | |
parent | aa5f66d5a1df1c2b04bccdcb19711675c765d7c4 (diff) |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 54395d7583b..674eac1f996 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3056,6 +3056,9 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx, case NL80211_IFTYPE_ADHOC: if (!bssid) return 0; + if (ether_addr_equal(sdata->vif.addr, hdr->addr2) || + ether_addr_equal(sdata->u.ibss.bssid, hdr->addr2)) + return 0; if (ieee80211_is_beacon(hdr->frame_control)) { return 1; } else if (!ieee80211_bssid_match(bssid, sdata->u.ibss.bssid)) { |