[PATCH 0/2] wifi: ath12k: add support for get_txpower mac ops
Rameshkumar Sundaram
rameshkumar.sundaram at oss.qualcomm.com
Mon Jan 27 09:22:00 PST 2025
Currently, driver does not support get_txpower mac ops because of which
cfg80211 returns vif->bss_conf.txpower to user space. bss_conf.txpower
gets its value from ieee80211_channel->max_reg_power. However, the final
txpower is dependent on few other parameters apart from max regulatory
supported power. It is the firmware which knows about all these parameters
and considers the minimum for each packet transmission.
Firmware reports the final TX power in firmware pdev stats which falls
under fw_stats. But currently, fw_stats is under debugfs.
Add support for get_txpower mac ops to get the TX power from firmware
leveraging fw_stats and return it accordingly.
Also, move fw_stats out of debugfs so that get_txpower mac ops can
function properly even when debugfs is disabled.
Aditya Kumar Singh (2):
wifi: ath12k: move firmware stats out of debugfs
wifi: ath12k: add get_txpower mac ops
drivers/net/wireless/ath/ath12k/core.c | 45 +++++++
drivers/net/wireless/ath/ath12k/core.h | 4 +
drivers/net/wireless/ath/ath12k/debugfs.c | 44 +-----
drivers/net/wireless/ath/ath12k/mac.c | 155 +++++++++++++++++-----
drivers/net/wireless/ath/ath12k/mac.h | 3 +
drivers/net/wireless/ath/ath12k/wmi.c | 94 ++++++++++---
6 files changed, 247 insertions(+), 98 deletions(-)
base-commit: b5aeca2e66899430827b8afcad061201f3b7861b
--
2.34.1
More information about the ath12k
mailing list