From ffcb7392f095f2a76db67e6f6c4c9f18c5aa37c2 Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Tue, 7 May 2024 02:53:44 -0700 Subject: [PATCH] Add vendor attributes to detect data stall for consecutive TX no ack 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 --- src/common/qca-vendor.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 3161cbe61..3e338cafc 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -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 =