]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor interface to enable/disable TX power limit main pending
authorKashish Awasthi <kawasthi@qti.qualcomm.com>
Mon, 14 Jul 2025 06:55:57 +0000 (12:25 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 25 Jul 2025 13:38:43 +0000 (16:38 +0300)
Define corresponding attributes to enable/disable TX power limit.
Add a new feature flag for the driver to indicate support for this
configuration.

Signed-off-by: Kashish Awasthi <kawasthi@qti.qualcomm.com>
src/common/qca-vendor.h

index f715af3a16ff43e25e131b871b92275788bd617a..539405fc8f50e5e4ba61bcf597b956174f9ae307 100644 (file)
@@ -2436,6 +2436,9 @@ enum qca_wlan_vendor_acs_hw_mode {
  *     P2P Connection Compatibility mode in which GO allows connection
  *     with both P2P R1 and R2 clients.
  *
+ * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_TX_POWER_LIMIT: Flag indicates that the
+ *     driver supports enabling TX power limit from the userspace.
+ *
  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  */
 enum qca_wlan_vendor_features {
@@ -2469,6 +2472,7 @@ enum qca_wlan_vendor_features {
        QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC = 27,
        QCA_WLAN_VENDOR_FEATURE_P2P_V2 = 28,
        QCA_WLAN_VENDOR_FEATURE_PCC_MODE = 29,
+       QCA_WLAN_VENDOR_FEATURE_SUPPORT_TX_POWER_LIMIT = 30,
        NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
 };
 
@@ -4027,6 +4031,14 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_LATENCY_TOLERANCE = 134,
 
+       /* 8-bit unsigned value to control transmit TX power limit. When
+        * this flag attribute is present, the firmware shall apply the vendor
+        * configured TX power limit that is stored in the Board Data File
+        * (BDF) for all bands and all the interfaces.
+        * 1 - Enable, 0 - Disable.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_TX_POWER_LIMIT_ENABLE = 135,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =