]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Define a QCA vendor attribute to set traffic shaping policy
authorShailendra Singh <quic_shasing@quicinc.com>
Wed, 13 Sep 2023 03:42:04 +0000 (09:12 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 19 Sep 2023 20:47:00 +0000 (23:47 +0300)
Define a new QCA vendor attribute to configure traffic
shaping policy applied during coex scenarios.

Signed-off-by: Shailendra Singh <quic_shasing@quicinc.com>
src/common/qca-vendor.h

index 0a3dda0f10d3279cd7e84501cf5990016e9edfe5..08cb9ab4309819dc62746ffc8a706be98d15976b 100644 (file)
@@ -3285,6 +3285,19 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
 
+       /* 8-bit unsigned value.
+        *
+        * This attribute configures a traffic shaping mode
+        * applied during coex scenarios.
+        * By default all coex traffic shaping modes are enabled,
+        * i.e., shape WLAN traffic based on coex traffic pattern and priority.
+        * To shape traffic, STA may enter in power save mode
+        * and AP may send CTS-to-self frame.
+        *
+        * Uses enum qca_coex_traffic_shaping_mode values.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
@@ -9227,6 +9240,16 @@ enum qca_wlan_ttlm_negotiation_support {
        QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
 };
 
+/**
+ * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
+ * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
+ * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
+ */
+enum qca_coex_traffic_shaping_mode {
+       QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
+       QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
+};
+
 /**
  * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  * EHT operating mode control transmit request. These attributes are