public inbox for ath12k@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] wifi: ath12k: add support for get_txpower mac ops
@ 2025-01-27 17:22 Rameshkumar Sundaram
  2025-01-27 17:22 ` [PATCH 1/2] wifi: ath12k: move firmware stats out of debugfs Rameshkumar Sundaram
  2025-01-27 17:22 ` [PATCH 2/2] wifi: ath12k: add get_txpower mac ops Rameshkumar Sundaram
  0 siblings, 2 replies; 7+ messages in thread
From: Rameshkumar Sundaram @ 2025-01-27 17:22 UTC (permalink / raw)
  To: ath12k; +Cc: linux-wireless, Rameshkumar Sundaram

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-01-31 18:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 17:22 [PATCH 0/2] wifi: ath12k: add support for get_txpower mac ops Rameshkumar Sundaram
2025-01-27 17:22 ` [PATCH 1/2] wifi: ath12k: move firmware stats out of debugfs Rameshkumar Sundaram
2025-01-30  6:22   ` Mahendran P
2025-01-31 18:50     ` Rameshkumar Sundaram
2025-01-27 17:22 ` [PATCH 2/2] wifi: ath12k: add get_txpower mac ops Rameshkumar Sundaram
2025-01-30  6:25   ` Mahendran P
2025-01-31 18:57     ` Rameshkumar Sundaram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox