]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
QCA vendor attribute to configure keep alive data type
authorKiran Kumar Lokere <klokere@codeaurora.org>
Thu, 29 Apr 2021 04:29:43 +0000 (21:29 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 27 May 2021 17:31:28 +0000 (20:31 +0300)
Add a QCA vendor attribute to configure the driver to use Data or
Management frames for keep alive data. This attribute is used for
testing purpose.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/qca-vendor.h

index 2a57fc7fc1c5bc1488cae21cfc379bb2eeaa4ee4..12df984eb35826125b70cb514edfb771fbb101e4 100644 (file)
@@ -7574,6 +7574,21 @@ enum qca_wlan_he_om_ctrl_ch_bw {
        QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
 };
 
+/**
+ * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
+ *
+ * Indicates the frame types to use for keep alive data.
+ *
+ * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
+ * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
+ * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
+ */
+enum qca_wlan_keep_alive_data_type {
+       QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
+       QCA_WLAN_KEEP_ALIVE_DATA = 1,
+       QCA_WLAN_KEEP_ALIVE_MGMT = 2,
+};
+
 /**
  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  * HE operating mode control transmit request. These attributes are
@@ -8095,6 +8110,14 @@ enum qca_wlan_vendor_attr_wifi_test_config {
         */
        QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
 
+       /* 8-bit unsigned value to configure the driver to use Data or
+        * Management frame type for keep alive data.
+        * Uses enum qca_wlan_keep_alive_data_type values.
+        *
+        * This attribute is used for testing purposes.
+        */
+       QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =