bianbu-linux-6.6/drivers/net/wireless/ath/ath11k
Aditya Kumar Singh 2d88afdac2 wifi: ath11k: fix Tx power value during active CAC
[ Upstream commit 77f1ee6fd8b6e470f721d05a2e269039d5cafcb7 ]

Tx power is fetched from firmware's pdev stats. However, during active
CAC, firmware does not fill the current Tx power and sends the max
initialised value filled during firmware init. If host sends this power
to user space, this is wrong since in certain situations, the Tx power
could be greater than the max allowed by the regulatory. Hence, host
should not be fetching the Tx power during an active CAC.

Fix this issue by returning -EAGAIN error so that user space knows that there's
no valid value available.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

Fixes: 9a2aa68afe ("wifi: ath11k: add get_txpower mac ops")
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230912051857.2284-4-quic_adisi@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:00 +01:00
..
ahb.c wifi: ath11k: fix Wvoid-pointer-to-enum-cast warning 2023-08-23 17:10:03 +03:00
ahb.h wifi: ath11k: Add WoW support for WCN6750 2022-09-19 16:03:34 +03:00
ce.c wifi: ath11k: debug: add ATH11K_DBG_CE 2023-06-13 12:10:46 +03:00
ce.h wifi: ath11k: Remove unused declarations 2023-08-23 17:10:45 +03:00
core.c wifi: ath11k: Add coldboot calibration support for QCN9074 2023-08-02 19:49:39 +03:00
core.h wifi: ath11k: Split coldboot calibration hw_param 2023-08-02 19:49:38 +03:00
dbring.c wifi: ath11k: fix writing to unintended memory region 2023-04-12 13:00:54 +03:00
dbring.h
debug.c wifi: ath11k: print debug level in debug messages 2023-06-13 12:10:42 +03:00
debug.h wifi: ath11k: debug: add ATH11K_DBG_CE 2023-06-13 12:10:46 +03:00
debugfs.c wifi: ath11k: debugfs: fix to work with multiple PCI devices 2023-01-10 15:26:27 +02:00
debugfs.h wifi: ath11k: move firmware stats out of debugfs 2022-09-22 10:28:20 +03:00
debugfs_htt_stats.c wifi: ath11k: Add HTT stats for PHY reset case 2023-06-01 13:31:33 +03:00
debugfs_htt_stats.h wifi: ath11k: Add HTT stats for PHY reset case 2023-06-01 13:31:33 +03:00
debugfs_sta.c wifi: ath11k: Add support to get power save duration for each client 2022-09-26 12:34:38 +03:00
debugfs_sta.h
dp.c wifi: ath11k: Ignore frags from uninitialized peer in dp. 2023-04-17 13:28:30 +03:00
dp.h wifi: ath11k: Fix a few spelling errors 2023-08-23 17:05:25 +03:00
dp_rx.c wifi: ath11k: Fix a few spelling errors 2023-08-23 17:05:25 +03:00
dp_rx.h
dp_tx.c wifi: ath11k: Fix a few spelling errors 2023-08-23 17:05:25 +03:00
dp_tx.h wifi: ath11k: fix tx status reporting in encap offload mode 2023-04-19 17:23:22 +03:00
hal.c wifi: ath11k: hal: cleanup debug message 2023-06-13 12:10:45 +03:00
hal.h wifi: ath11k: remap ce register space for IPQ5018 2022-12-07 19:16:53 +02:00
hal_desc.h wifi: ath11k: Fix miscellaneous spelling errors 2022-09-16 12:19:14 +03:00
hal_rx.c wifi: ath11k: debug: use all upper case in ATH11k_DBG_HAL 2023-06-13 12:10:45 +03:00
hal_rx.h wifi: ath11k: Fix incorrect update of radiotap fields 2023-04-19 17:23:23 +03:00
hal_tx.c wifi: ath11k: Add multi TX ring support for WCN6750 2022-09-10 09:27:54 +03:00
hal_tx.h wifi: ath11k: Add multi TX ring support for WCN6750 2022-09-10 09:27:54 +03:00
hif.h
htc.c wifi: ath11k: htc: cleanup debug messages 2023-06-13 12:10:46 +03:00
htc.h
hw.c wifi: ath11k: Add missing hw_ops->get_ring_selector() for IPQ5018 2023-06-16 19:07:41 +03:00
hw.h wifi: ath11k: Split coldboot calibration hw_param 2023-08-02 19:49:38 +03:00
Kconfig
mac.c wifi: ath11k: fix Tx power value during active CAC 2023-11-20 11:59:00 +01:00
mac.h wifi: ath11k: synchronize ath11k_mac_he_gi_to_nl80211_he_gi()'s return type 2022-11-02 18:50:15 +02:00
Makefile
mhi.c wifi: ath11k: pci: cleanup debug logging 2023-06-13 12:10:44 +03:00
mhi.h
pci.c wifi: ath11k: fix boot failure with one MSI vector 2023-11-20 11:58:57 +01:00
pci.h
pcic.c Revert "wifi: ath11k: Enable threaded NAPI" 2023-07-26 09:56:53 +03:00
pcic.h wifi: ath11k: Add WoW support for WCN6750 2022-09-19 16:03:34 +03:00
peer.c wifi: ath11k: remove manual mask names from debug messages 2023-06-13 12:10:42 +03:00
peer.h wifi: ath11k: Ignore frags from uninitialized peer in dp. 2023-04-17 13:28:30 +03:00
qmi.c Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2023-08-03 21:16:27 +03:00
qmi.h wifi: ath11k: Remove unused declarations 2023-08-23 17:10:45 +03:00
reg.c wifi: ath11k: remove manual mask names from debug messages 2023-06-13 12:10:42 +03:00
reg.h
rx_desc.h wifi: ath11k: Fix miscellaneous spelling errors 2022-09-16 12:19:14 +03:00
spectral.c wifi: ath11k: Add spectral scan support for 160 MHz 2022-09-26 12:40:12 +03:00
spectral.h wifi: ath11k: Add spectral scan support for 160 MHz 2022-09-26 12:40:12 +03:00
testmode.c wifi: ath11k: Consistently use ath11k_vif_to_arvif() 2023-08-23 17:04:29 +03:00
testmode.h wifi: ath11k: factory test mode support 2023-06-01 13:30:49 +03:00
testmode_i.h wifi: ath11k: factory test mode support 2023-06-01 13:30:49 +03:00
thermal.c wifi: ath11k: Fix miscellaneous spelling errors 2022-09-16 12:19:14 +03:00
thermal.h wifi: ath11k: Fix miscellaneous spelling errors 2022-09-16 12:19:14 +03:00
trace.c
trace.h wifi: ath11k: Add support to get power save duration for each client 2022-09-26 12:34:38 +03:00
wmi.c wifi: ath11k: fix memory leak in WMI firmware stats 2023-06-13 12:14:53 +03:00
wmi.h wifi: ath11k: factory test mode support 2023-06-01 13:30:49 +03:00
wow.c wifi: ath11k: factory test mode support 2023-06-01 13:30:49 +03:00
wow.h