]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor command and attributes for MSDU queue depth threshold
authorVenkateswara Swamy Bandaru <vbandaru@codeaurora.org>
Mon, 8 Jan 2018 08:23:59 +0000 (13:53 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 22 Jan 2018 08:56:26 +0000 (10:56 +0200)
This allow MSDU queue depth threshold in target to be set per peer per
TID. This command contains MAC address, TID, update mask, and threshold
values.

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

index 9a8b02f54040cd8d6dd737ada145c1c9a95c9db2..f1a614b9f40eb8c122ba5fd22c1dbee93cb155ab 100644 (file)
@@ -382,6 +382,10 @@ enum qca_radiotap_vendor_ids {
  *     Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
  *     channel change, etc.) are updated with this event. Attributes for this
  *     interface are defined in enum qca_wlan_vendor_attr_mac.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
+ *     per peer per TID. Attributes for this command are define in
+ *     enum qca_wlan_set_qdepth_thresh_attr.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -523,6 +527,7 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
        QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
        QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
+       QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
 };
 
 
@@ -1588,6 +1593,36 @@ enum qca_wlan_gpio_attr {
        QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
 };
 
+/**
+ * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
+ * MSDUQ depth threshold per peer per tid in the target
+ *
+ * Associated Vendor Command:
+ * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
+ */
+enum qca_wlan_set_qdepth_thresh_attr {
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
+       /* 6-byte MAC address */
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
+       /* Unsigned 32-bit attribute for holding the TID */
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
+       /* Unsigned 32-bit attribute for holding the update mask
+        * bit 0 - Update high priority msdu qdepth threshold
+        * bit 1 - Update low priority msdu qdepth threshold
+        * bit 2 - Update UDP msdu qdepth threshold
+        * bit 3 - Update Non UDP msdu qdepth threshold
+        * rest of bits are reserved
+        */
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
+       /* Unsigned 32-bit attribute for holding the threshold value */
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
+       QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
+               QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
+};
+
 /**
  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  */