]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add vendor attributes to detect data stall for consecutive TX no ack
authorJianmin Zhu <quic_jianminz@quicinc.com>
Tue, 7 May 2024 09:53:44 +0000 (02:53 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 7 Jun 2024 12:51:17 +0000 (15:51 +0300)
Add following vendor attributes to dynamically configure parameters to
detect data stall for consecutive TX no ack.
 - QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION
 - QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD

Signed-off-by: Jianmin Zhu <quic_jianminz@quicinc.com>
src/common/qca-vendor.h

index 3161cbe61efce409f794decc653bf6c5ba539618..3e338cafc009f490dc99685430fa5d9d617989bd 100644 (file)
@@ -3599,6 +3599,31 @@ enum qca_wlan_vendor_attr_config {
        /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
        QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117,
 
+       /* 16-bit unsigned value. This attribute is used to dynamically
+        * configure the time duration of data stall detection. Unit is
+        * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the
+        * value is 0, the previously configured value is cleared. The driver
+        * rejects this configuration if the value is out of range. This
+        * configuration is effective for all connections on the chip. If the
+        * duration is greater than this configuration and consecutive TX no ack
+        * count is greater than
+        * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD,
+        * data stall event is sent to userspace.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118,
+
+       /* 16-bit unsigned value. This attribute is used to dynamically
+        * configure the threshold of data stall detection. Valid value is 0 or
+        * greater than 10. if the value is 0, the previously configured value
+        * is cleared. The driver rejects this configuration if the value is out
+        * of range. This configuration is effective for all connections on the
+        * chip. If consecutive TX no ack count is greater than this
+        * configuration and duration is greater than
+        * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION,
+        * data stall event is sent to userspace.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =