]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add channel TX/RX times to QCA vendor interface of LL stats
authorVamsi Krishna <vamsin@codeaurora.org>
Mon, 3 Aug 2020 12:34:06 +0000 (18:04 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 13 Aug 2020 14:28:24 +0000 (17:28 +0300)
Currently the driver/firmware indicates CCA busy time which includes own
TX and RX time and as such, does not allow the CCA busy time due to
other nodes to be computed. Add separate statistics to indicate own
radio TX time and own radio RX time to facilitate userspace applications
to compute CCA busy time because of traffic unintended to this device.

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

index f45fdfde5e874eb50c43efdec4457b65abe0734f..659ae9c5f44b8757df6cb8a0982d674ff13e2138 100644 (file)
@@ -3529,6 +3529,17 @@ enum qca_wlan_vendor_attr_ll_stats_results {
         */
        QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
 
+       /* u32 value representing total time in milliseconds for which the radio
+        * is transmitting on this channel. This attribute will be nested
+        * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
+        */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
+       /* u32 value representing total time in milliseconds for which the radio
+        * is receiving all 802.11 frames intended for this device on this
+        * channel. This attribute will be nested within
+        * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
+        */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =