aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-04 13:20:08 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-04 16:29:52 -0500
commitb1f93314bfc4d5753391616735f6b8df96db901d (patch)
tree9d6e690e3dca33295e3ca1f156bf9a84429f7388 /net/mac80211/rx.c
parent8e5461041f4498e3c8f4e0a51187f608f0a18b08 (diff)
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 <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index b37c3415f0ea..753ffc41c1aa 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -815,7 +815,7 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx)
815 rx->local->dot11FrameDuplicateCount++; 815 rx->local->dot11FrameDuplicateCount++;
816 rx->sta->num_duplicates++; 816 rx->sta->num_duplicates++;
817 } 817 }
818 return RX_DROP_MONITOR; 818 return RX_DROP_UNUSABLE;
819 } else 819 } else
820 rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl; 820 rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl;
821 } 821 }