Skip to content

Commit b1f9331

Browse files
Felix Fietkaulinvjw
authored andcommitted
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>
1 parent 8e54610 commit b1f9331

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/rx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx)
815815
rx->local->dot11FrameDuplicateCount++;
816816
rx->sta->num_duplicates++;
817817
}
818-
return RX_DROP_MONITOR;
818+
return RX_DROP_UNUSABLE;
819819
} else
820820
rx->sta->last_seq_ctrl[rx->queue] = hdr->seq_ctrl;
821821
}

0 commit comments

Comments
 (0)