]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor attribute to get number of TX/RX packets for each NSS
authorAleti Nageshwar Reddy <quic_anageshw@quicinc.com>
Mon, 6 May 2024 10:01:33 +0000 (15:31 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 10 May 2024 16:57:55 +0000 (19:57 +0300)
Add support to get the number of TX/RX packets for each NSS value from
the driver.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/qca-vendor.h

index 33e3eb90a067718574ebff1077a0fc4cc4bbbc4b..5c4596fde8250338892dc1c27856555e1a779957 100644 (file)
@@ -12732,6 +12732,11 @@ enum qca_vendor_wlan_sta_guard_interval {
  * only. This represents the average of the delta between successive uplink
  * frames congestion duration in MAC queue in unit of ms. This can be queried
  * either in connected state or disconnected state.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes,
+ * used in STA mode. This represents the number of MSDU packets
+ * (unicast/multicast/broadcast) transmitted/received with each NSS value. See
+ * enum qca_wlan_vendor_attr_nss_pkt.
  */
 enum qca_wlan_vendor_attr_get_sta_info {
        QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
@@ -12789,6 +12794,7 @@ enum qca_wlan_vendor_attr_get_sta_info {
        QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
        QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
        QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54,
+       QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55,
 
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
@@ -17696,4 +17702,30 @@ enum qca_wlan_vendor_attr_async_stats_policy {
        QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1,
 };
 
+/**
+ * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by
+ * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This
+ * represents the number of spatial streams.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This
+ * represents the number of MSDU packets transmitted with the number of spatial
+ * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This
+ * represents the number of MSDU packets received with the number of spatial
+ * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
+ */
+enum qca_wlan_vendor_attr_nss_pkt {
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0,
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1,
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2,
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3,
+
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX =
+       QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1,
+};
+
 #endif /* QCA_VENDOR_H */