diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-11-04 06:18:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-09 16:12:30 -0500 |
commit | 21fc756087d7659d86c344c0b38229313afc6c7c (patch) | |
tree | 93debdafff19ae1596f56fba519bffe761ed8328 /net/mac80211 | |
parent | 28946da763e8b8d8ffd01ab861b684a4afb4bc3b (diff) |
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 <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index c8a7076f9bb8..e832e0dcab3c 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -866,6 +866,13 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx) | |||
866 | rx->sdata->control_port_protocol) | 866 | rx->sdata->control_port_protocol) |
867 | return RX_CONTINUE; | 867 | return RX_CONTINUE; |
868 | } | 868 | } |
869 | |||
870 | if (rx->sdata->vif.type == NL80211_IFTYPE_AP && | ||
871 | cfg80211_rx_spurious_frame(rx->sdata->dev, | ||
872 | hdr->addr2, | ||
873 | GFP_ATOMIC)) | ||
874 | return RX_DROP_UNUSABLE; | ||
875 | |||
869 | return RX_DROP_MONITOR; | 876 | return RX_DROP_MONITOR; |
870 | } | 877 | } |
871 | 878 | ||