From: Johannes Berg Date: Fri, 4 Nov 2011 10:18:13 +0000 (+0100) Subject: mac80211: support spurious class3 event X-Git-Tag: v3.3-rc1~182^2~44^2~511 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21fc756087d7659d86c344c0b38229313afc6c7c;p=platform%2Fkernel%2Flinux-exynos.git mac80211: support spurious class3 event Add support for the spurious class3 frame event to mac80211 to enable AP w/o monitor mode. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index c8a7076..e832e0d 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -866,6 +866,13 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx) rx->sdata->control_port_protocol) return RX_CONTINUE; } + + if (rx->sdata->vif.type == NL80211_IFTYPE_AP && + cfg80211_rx_spurious_frame(rx->sdata->dev, + hdr->addr2, + GFP_ATOMIC)) + return RX_DROP_UNUSABLE; + return RX_DROP_MONITOR; }