OrangePi_CM5/drivers/net/wireless/ath
Toke Høiland-Jørgensen 9b7ec35253 ath9k: Fix usage of driver-private space in tx_info
commit 5a6b06f5927c940fa44026695779c30b7536474c upstream.

The ieee80211_tx_info_clear_status() helper also clears the rate counts and
the driver-private part of struct ieee80211_tx_info, so using it breaks
quite a few other things. So back out of using it, and instead define a
ath-internal helper that only clears the area between the
status_driver_data and the rates info. Combined with moving the
ath_frame_info struct to status_driver_data, this avoids clearing anything
we shouldn't be, and so we can keep the existing code for handling the rate
information.

While fixing this I also noticed that the setting of
tx_info->status.rates[tx_rateindex].count on hardware underrun errors was
always immediately overridden by the normal setting of the same fields, so
rearrange the code so that the underrun detection actually takes effect.

The new helper could be generalised to a 'memset_between()' helper, but
leave it as a driver-internal helper for now since this needs to go to
stable.

Cc: stable@vger.kernel.org
Reported-by: Peter Seiderer <ps.report@gmx.net>
Fixes: 037250f0a45c ("ath9k: Properly clear TX status area before reporting to mac80211")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Tested-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220404204800.2681133-1-toke@toke.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-20 09:23:26 +02:00
..
ar5523 ar5523: Fix null-ptr-deref with unexpected WDCMSG_TARGET_START reply 2022-01-27 10:54:10 +01:00
ath5k ath5k: fix OOB in ath5k_eeprom_read_pcal_info_5111 2022-04-13 21:00:54 +02:00
ath6kl ath6kl: fix control-message timeout 2021-11-18 14:03:45 +01:00
ath9k ath9k: Fix usage of driver-private space in tx_info 2022-04-20 09:23:26 +02:00
ath10k ath10k: Fix error handling in ath10k_setup_msa_resources 2022-04-08 14:40:20 +02:00
ath11k ath11k: mhi: use mhi_sync_power_up() 2022-04-13 21:00:55 +02:00
carl9170 carl9170: fix missing bit-wise or operator for tx_params 2022-04-08 14:39:56 +02:00
wcn36xx wcn36xx: Differentiate wcn3660 from wcn3620 2022-03-28 09:57:10 +02:00
wil6210
…
Kconfig
…
Makefile
…
ath.h
…
debug.c
…
dfs_pattern_detector.c ath: dfs_pattern_detector: Fix possible null-pointer dereference in channel_detector_create() 2021-11-18 14:03:57 +01:00
dfs_pattern_detector.h
…
dfs_pri_detector.c
…
dfs_pri_detector.h
…
hw.c
…
key.c
…
main.c
…
reg.h
…
regd.c Revert "ath: add support for special 0x0 regulatory domain" 2022-03-28 09:57:10 +02:00
regd.h
…
regd_common.h
…
spectral_common.h
…
trace.c
…
trace.h
…