mirror_ubuntu-kernels/drivers/net/wireless/ath
Wen Gong 1d795645e1 ath11k: remove return for empty tx bitrate in mac_op_sta_statistics
Currently in ath11k_mac_op_sta_statistics() there is the following
logic:

    if (!arsta->txrate.legacy && !arsta->txrate.nss)
        return;

Unfortunately if this condition is true then the function returns without
setting parameters that follow the txrate. To address this issue remove the
return and instead invert the logic to set the txrate logic if
(arsta->txrate.legacy || arsta->txrate.nss).

The same was done also in ath10k in commit 1cd6ba8ae3 ("ath10k: remove return
for NL80211_STA_INFO_TX_BITRATE").

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211011084957.31024-1-wgong@codeaurora.org
2021-11-15 11:23:26 +02:00
..
ar5523 ar5523: Fix null-ptr-deref with unexpected WDCMSG_TARGET_START reply 2021-11-12 09:53:57 +02:00
ath5k Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2021-10-20 11:56:50 +03:00
ath6kl ath6kl: fix division by zero in send path 2021-10-28 10:34:20 +03:00
ath9k ath9k: use swap() to make code cleaner 2021-11-01 16:20:03 +02:00
ath10k ath10k: fetch (pre-)calibration data via nvmem subsystem 2021-11-01 16:17:35 +02:00
ath11k ath11k: remove return for empty tx bitrate in mac_op_sta_statistics 2021-11-15 11:23:26 +02:00
carl9170 wireless: carl9170: fix LEDS build errors & warnings 2021-06-12 13:37:46 +03:00
wcn36xx wcn36xx: fix RX BD rate mapping for 5GHz legacy rates 2021-11-08 15:22:52 +02:00
wil6210 ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
ath.h ath: Modify ath_key_delete() to not need full key entry 2020-12-17 08:51:17 +02:00
debug.c
dfs_pattern_detector.c ath: dfs_pattern_detector: Fix possible null-pointer dereference in channel_detector_create() 2021-10-11 09:26:10 +03:00
dfs_pattern_detector.h
dfs_pri_detector.c ath: dfs_pri_detector: Demote zero/half completed kernel-doc headers 2020-11-07 10:06:49 +02:00
dfs_pri_detector.h
hw.c ath: Fix wrong function name in comments 2021-06-15 17:01:24 +03:00
Kconfig Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2020-06-15 20:18:39 +03:00
key.c ath: Modify ath_key_delete() to not need full key entry 2020-12-17 08:51:17 +02:00
main.c
Makefile ath11k: driver for Qualcomm IEEE 802.11ax devices 2019-11-25 14:16:34 +02:00
reg.h
regd_common.h
regd.c ath: regd: Provide description for ath_reg_apply_ir_flags's 'reg' param 2020-11-07 10:06:43 +02:00
regd.h
spectral_common.h ath11k: Introduce spectral hw configurable param 2021-09-28 11:52:57 +03:00
trace.c
trace.h