]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath12k: advertise NL80211_FEATURE_TX_POWER_INSERTION support
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Mon, 30 Jun 2025 04:15:16 +0000 (09:45 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Mon, 7 Jul 2025 22:34:49 +0000 (15:34 -0700)
Now that driver is capable of inserting Tx power, advertise the support
for the same to upper layers.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1

Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250630-support-for-tx-power-insertion-v1-2-77f45484d5bb@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/mac.c

index 67e51cbb75e64e9ad6fc6278feb89c7dcbd6d414..b2cf3abfe390d4df1f818edbe071e9de0fb19d6d 100644 (file)
@@ -13744,6 +13744,8 @@ static int ath12k_mac_hw_register(struct ath12k_hw *ah)
        wiphy->features |= NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE |
                                   NL80211_FEATURE_AP_SCAN;
 
+       wiphy->features |= NL80211_FEATURE_TX_POWER_INSERTION;
+
        /* MLO is not yet supported so disable Wireless Extensions for now
         * to make sure ath12k users don't use it. This flag can be removed
         * once WIPHY_FLAG_SUPPORTS_MLO is enabled.