]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix RX of frames with broken FCS in monitor mode
authorLinus Lüssing <ll@simonwunderlich.de>
Fri, 15 Nov 2019 10:56:12 +0000 (11:56 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Nov 2019 12:13:25 +0000 (14:13 +0200)
commit61d305d37bdd80267ba3a34a675bd79405092b32
tree098502604a5cc48590d2f312ea7ed80b1d8317b6
parentc865ea81d6d4cfac1ac3dead358404549b7b9d02
ath10k: fix RX of frames with broken FCS in monitor mode

So far, frames were forwarded regardless of the FCS correctness leading
to userspace applications listening on the monitor mode interface to
receive potentially broken frames, even with the "fcsfail" flag unset.

By default, with the "fcsfail" flag of a monitor mode interface
unset, frames with FCS errors should be dropped. With this patch, the
fcsfail flag is taken into account correctly.

Tested-on: QCA4019 firmware-5-ct-full-community-12.bin-lede.011

Cc: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/htt_rx.c