From: Vamsi Krishna Date: Mon, 3 Aug 2020 12:34:06 +0000 (+0530) Subject: Add channel TX/RX times to QCA vendor interface of LL stats X-Git-Tag: hostap_2_10~1014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5388b34eb287c9ed133470df4b40b87fe38ba97;p=thirdparty%2Fhostap.git Add channel TX/RX times to QCA vendor interface of LL stats 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 --- diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index f45fdfde5..659ae9c5f 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -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 =