All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ath11k: add support for get_txpower mac ops
@ 2022-06-02  5:14 ` Aditya Kumar Singh
  0 siblings, 0 replies; 20+ messages in thread
From: Aditya Kumar Singh @ 2022-06-02  5:14 UTC (permalink / raw)
  To: ath11k; +Cc: linux-wireless, Aditya Kumar Singh

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):
  ath11k: move firmware stats out of debugfs
  ath11k: add get_txpower mac ops

 drivers/net/wireless/ath/ath11k/core.c    |  46 ++++++++
 drivers/net/wireless/ath/ath11k/core.h    |  12 +-
 drivers/net/wireless/ath/ath11k/debugfs.c | 131 +++++-----------------
 drivers/net/wireless/ath/ath11k/debugfs.h |   6 +-
 drivers/net/wireless/ath/ath11k/mac.c     |  91 +++++++++++++++
 drivers/net/wireless/ath/ath11k/wmi.c     |  48 +++++++-
 6 files changed, 227 insertions(+), 107 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2022-06-03 10:38 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02  5:14 [PATCH 0/2] ath11k: add support for get_txpower mac ops Aditya Kumar Singh
2022-06-02  5:14 ` Aditya Kumar Singh
2022-06-02  5:14 ` [PATCH 1/2] ath11k: move firmware stats out of debugfs Aditya Kumar Singh
2022-06-02  5:14   ` Aditya Kumar Singh
2022-06-02 14:33   ` Jeff Johnson
2022-06-02 14:33     ` Jeff Johnson
2022-06-03  4:23     ` Aditya Kumar Singh (QUIC)
2022-06-03  4:23       ` Aditya Kumar Singh (QUIC)
2022-06-03 10:37       ` Kalle Valo
2022-06-03 10:37         ` Kalle Valo
2022-06-03  6:50   ` Kalle Valo
2022-06-03  6:50     ` Kalle Valo
2022-06-03  8:30     ` Aditya Kumar Singh (QUIC)
2022-06-03  8:30       ` Aditya Kumar Singh (QUIC)
2022-06-02  5:14 ` [PATCH 2/2] ath11k: add get_txpower mac ops Aditya Kumar Singh
2022-06-02  5:14   ` Aditya Kumar Singh
2022-06-02 14:51   ` Jeff Johnson
2022-06-02 14:51     ` Jeff Johnson
2022-06-03  4:41     ` Aditya Kumar Singh (QUIC)
2022-06-03  4:41       ` Aditya Kumar Singh (QUIC)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.