]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath11k: advertise NL80211_FEATURE_TX_POWER_INSERTION
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Fri, 17 Oct 2025 04:08:00 +0000 (09:38 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 23 Oct 2025 13:59:21 +0000 (06:59 -0700)
Now that driver is capable of inserting Tx power, advertise the support
for the same to upper layers.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1

Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Link: https://patch.msgid.link/20251017-add_tx_power_insertion_support-v1-4-f08feacfca93@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/mac.c

index d15e3b67e6259cee58b8c7da1e89796bb9b83c9b..c6360d6a72bd3bb84fd8db9b34854233689f673b 100644 (file)
@@ -10543,6 +10543,8 @@ static int __ath11k_mac_register(struct ath11k *ar)
        ar->hw->wiphy->features |= NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE |
                                   NL80211_FEATURE_AP_SCAN;
 
+       ar->hw->wiphy->features |= NL80211_FEATURE_TX_POWER_INSERTION;
+
        ar->max_num_stations = TARGET_NUM_STATIONS(ab);
        ar->max_num_peers = TARGET_NUM_PEERS_PDEV(ab);