]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor attribute for BTM support configuration
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Thu, 8 Feb 2024 09:11:08 +0000 (14:41 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 16 Feb 2024 17:27:07 +0000 (19:27 +0200)
Add a vendor attribute to configure BTM support in STA mode.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
src/common/qca-vendor.h

index a5bbc781a275726c988be213dde2f0f7772bebe2..7ccc4b4382e84ac9f45bf41752834ff4f25f30b8 100644 (file)
@@ -3361,6 +3361,14 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
 
+       /* 8-bit unsigned value to configure BTM support.
+        *
+        * The attribute is applicable only for STA interface. Uses enum
+        * qca_wlan_btm_support values. This configuration is not allowed in
+        * connected state.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
@@ -16794,4 +16802,24 @@ enum qca_wlan_vendor_attr_fw_page_fault_report {
        QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
 };
 
+/**
+ * enum qca_wlan_btm_support: BTM support configuration
+ *
+ * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
+ * follows the BSS Transition bit in the Extended Capabilities element from the
+ * connect request IEs with the default BTM support policy.
+ *
+ * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
+ * (re)association attempts. The driver shall restore the default BTM support
+ * policy during the first disconnection after successful association. When this
+ * configuration is enabled, the driver shall overwrite the BSS Transition bit
+ * as zero in the Extended Capabilities element while sending (Re)Association
+ * Request frames. Also, the driver shall drop the BTM frames from userspace and
+ * the connected AP when this configuration is enabled.
+ */
+enum qca_wlan_btm_support {
+       QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
+       QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
+};
+
 #endif /* QCA_VENDOR_H */