From: Felix Fietkau Date: Fri, 4 Feb 2011 18:20:08 +0000 (+0100) Subject: mac80211: do not send duplicate data frames to the cooked monitor interface X-Git-Tag: v3.0~1578^2~403^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1f93314bfc4d5753391616735f6b8df96db901d;p=platform%2Fkernel%2Flinux-amlogic.git mac80211: do not send duplicate data frames to the cooked monitor interface I can't think of a valid use case for this aside from debugging (which can also be done with a real monitor interface), and dropping these frames saves some precious CPU cycles. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index b37c341..753ffc4 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -815,7 +815,7 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx) rx->local->dot11FrameDuplicateCount++; rx->sta->num_duplicates++; } - return RX_DROP_MONITOR; + return RX_DROP_UNUSABLE; } else rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl; }