drivers/net/wireless/ath/ath11k/mac.c | 447 ++++++++++++++++++++++++---------- 1 file changed, 312 insertions(+), 135 deletions(-)
For certain action frames like the TPC Report IE in the spectrum management
TPC Report action frame, and in the Radio Measurement Link Measurement
Report action frame there is a requirement to fill in the current
and max Tx power of the device in the packet.
Add support to populate these fields in the relevant packets. Advertise
this capability from the driver using the feature flag
NL80211_FEATURE_TX_POWER_INSERTION.
In software-encrypted cases such as PMF, skip insertion since the packets
are already encrypted and cannot be modified.
Patch Overview:
Patches 1 and 2 serve as preparatory groundwork.
Patches 3 and 4 implement the core changes described.
For context, this ath11k implementation is adapted from prior ath12k work [1].
Reference:
[1] https://lore.kernel.org/linux-wireless/20250630-support-for-tx-power-insertion-v1-0-77f45484d5bb@oss.qualcomm.com/
---
Aditya Kumar Singh (4):
wifi: ath11k: relocate some Tx power related functions in mac.c
wifi: ath11k: wrap ath11k_mac_op_get_txpower() with lock-aware internal helper
wifi: ath11k: add support for Tx Power insertion in RRM action frame
wifi: ath11k: advertise NL80211_FEATURE_TX_POWER_INSERTION
drivers/net/wireless/ath/ath11k/mac.c | 447 ++++++++++++++++++++++++----------
1 file changed, 312 insertions(+), 135 deletions(-)
---
base-commit: d5ce93f136fbee2b7afbe221f34ca881036f8de3
change-id: 20251008-add_tx_power_insertion_support-e5225e924bfd
On Fri, 17 Oct 2025 09:37:56 +0530, Aditya Kumar Singh wrote:
> For certain action frames like the TPC Report IE in the spectrum management
> TPC Report action frame, and in the Radio Measurement Link Measurement
> Report action frame there is a requirement to fill in the current
> and max Tx power of the device in the packet.
>
> Add support to populate these fields in the relevant packets. Advertise
> this capability from the driver using the feature flag
> NL80211_FEATURE_TX_POWER_INSERTION.
>
> [...]
Applied, thanks!
[1/4] wifi: ath11k: relocate some Tx power related functions in mac.c
commit: 66887282233d281cd9109dabfdad5d86b709acc0
[2/4] wifi: ath11k: wrap ath11k_mac_op_get_txpower() with lock-aware internal helper
commit: c243d5e44f6ecbb29bf55b82e6dd92bca4fde0b1
[3/4] wifi: ath11k: add support for Tx Power insertion in RRM action frame
commit: 722015690f52d046ae609e1b90cd3f018644d93d
[4/4] wifi: ath11k: advertise NL80211_FEATURE_TX_POWER_INSERTION
commit: 998c68e96c03f10dec19b65279ade9d4000d1ae9
Best regards,
--
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
On 10/17/2025 9:37 AM, Aditya Kumar Singh wrote: > For certain action frames like the TPC Report IE in the spectrum management > TPC Report action frame, and in the Radio Measurement Link Measurement > Report action frame there is a requirement to fill in the current > and max Tx power of the device in the packet. > > Add support to populate these fields in the relevant packets. Advertise > this capability from the driver using the feature flag > NL80211_FEATURE_TX_POWER_INSERTION. > > In software-encrypted cases such as PMF, skip insertion since the packets > are already encrypted and cannot be modified. > > Patch Overview: > Patches 1 and 2 serve as preparatory groundwork. > Patches 3 and 4 implement the core changes described. > > For context, this ath11k implementation is adapted from prior ath12k work [1]. > > Reference: > [1] https://lore.kernel.org/linux-wireless/20250630-support-for-tx-power-insertion-v1-0-77f45484d5bb@oss.qualcomm.com/ > > --- > Aditya Kumar Singh (4): > wifi: ath11k: relocate some Tx power related functions in mac.c > wifi: ath11k: wrap ath11k_mac_op_get_txpower() with lock-aware internal helper > wifi: ath11k: add support for Tx Power insertion in RRM action frame > wifi: ath11k: advertise NL80211_FEATURE_TX_POWER_INSERTION > > drivers/net/wireless/ath/ath11k/mac.c | 447 ++++++++++++++++++++++++---------- > 1 file changed, 312 insertions(+), 135 deletions(-) Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
On 10/17/2025 12:07 PM, Aditya Kumar Singh wrote: > For certain action frames like the TPC Report IE in the spectrum management > TPC Report action frame, and in the Radio Measurement Link Measurement > Report action frame there is a requirement to fill in the current > and max Tx power of the device in the packet. > > Add support to populate these fields in the relevant packets. Advertise > this capability from the driver using the feature flag > NL80211_FEATURE_TX_POWER_INSERTION. > > In software-encrypted cases such as PMF, skip insertion since the packets > are already encrypted and cannot be modified. > > Patch Overview: > Patches 1 and 2 serve as preparatory groundwork. > Patches 3 and 4 implement the core changes described. > > For context, this ath11k implementation is adapted from prior ath12k work [1]. > > Reference: > [1] https://lore.kernel.org/linux-wireless/20250630-support-for-tx-power-insertion-v1-0-77f45484d5bb@oss.qualcomm.com/ > > --- > Aditya Kumar Singh (4): > wifi: ath11k: relocate some Tx power related functions in mac.c > wifi: ath11k: wrap ath11k_mac_op_get_txpower() with lock-aware internal helper > wifi: ath11k: add support for Tx Power insertion in RRM action frame > wifi: ath11k: advertise NL80211_FEATURE_TX_POWER_INSERTION > > drivers/net/wireless/ath/ath11k/mac.c | 447 ++++++++++++++++++++++++---------- > 1 file changed, 312 insertions(+), 135 deletions(-) > --- > base-commit: d5ce93f136fbee2b7afbe221f34ca881036f8de3 > change-id: 20251008-add_tx_power_insertion_support-e5225e924bfd > > Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
© 2016 - 2026 Red Hat, Inc.