From: Arik Nemtsov Date: Tue, 1 Feb 2011 11:23:05 +0000 (+0200) Subject: mac80211: pass up beacons from external BSS when operating as AP X-Git-Tag: v3.0~1578^2~403^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=771bbd09f7febb854dd7c30f983aa57535f9e8c9;p=platform%2Fkernel%2Flinux-amlogic.git mac80211: pass up beacons from external BSS when operating as AP Beacons from external BSSes are required for updating overlapping BSS info (i.e. ERP protection). Pass them up unconditionally. Signed-off-by: Arik Nemtsov Signed-off-by: John W. Linville --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index d78d6fc3..c08b8e9 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -2698,7 +2698,8 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx, return 0; } else if (!ieee80211_bssid_match(bssid, sdata->vif.addr)) { - if (!(status->rx_flags & IEEE80211_RX_IN_SCAN)) + if (!(status->rx_flags & IEEE80211_RX_IN_SCAN) && + !ieee80211_is_beacon(hdr->frame_control)) return 0; status->rx_flags &= ~IEEE80211_RX_RA_MATCH; }