From: Johannes Berg Date: Sun, 30 May 2010 12:53:43 +0000 (+0200) Subject: mac80211: drop control frames after processing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08daecaead42b85b69b33d7d8429a93dfbf75b58;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mac80211: drop control frames after processing After ieee80211_rx_h_ctrl() processing we only want to process management (including action) frames, so there's no point in letting control frames continue. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 0ade26793918..0b9898ac4d87 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1844,7 +1844,12 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_data *rx, struct sk_buff_head *frames) return RX_QUEUED; } - return RX_CONTINUE; + /* + * After this point, we only want management frames, + * so we can drop all remaining control frames to + * cooked monitor interfaces. + */ + return RX_DROP_MONITOR; } static void ieee80211_process_sa_query_req(struct ieee80211_sub_if_data *sdata,