From bc9256980ecafe69be17b5069b2c182c3384b3b0 Mon Sep 17 00:00:00 2001 From: Shailendra Singh Date: Wed, 13 Sep 2023 09:12:04 +0530 Subject: [PATCH] Define a QCA vendor attribute to set traffic shaping policy Define a new QCA vendor attribute to configure traffic shaping policy applied during coex scenarios. Signed-off-by: Shailendra Singh --- src/common/qca-vendor.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 0a3dda0f1..08cb9ab43 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -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