diff options
author | Linus Lüssing <ll@simonwunderlich.de> | 2019-11-15 11:56:12 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-25 14:13:25 +0200 |
commit | ea0c3e2a470271573d480f48a67e74633566a317 (patch) | |
tree | 098502604a5cc48590d2f312ea7ed80b1d8317b6 /drivers/net/wireless/ath/ath10k/core.h | |
parent | 7005eafc1f1cb0a525631c2214f760d6fb636ebb (diff) | |
download | blackbird-op-linux-ea0c3e2a470271573d480f48a67e74633566a317.tar.gz blackbird-op-linux-ea0c3e2a470271573d480f48a67e74633566a317.zip |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/core.h')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index c5407f5080b2..5101bf2b5b15 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h @@ -1181,6 +1181,7 @@ struct ath10k { struct { /* protected by data_lock */ + u32 rx_crc_err_drop; u32 fw_crash_counter; u32 fw_warm_reset_counter; u32 fw_cold_reset_counter; |