From 3b7bb17f695f648853a07f97525ffaab1d736589 Mon Sep 17 00:00:00 2001 From: Jingxiang Ge Date: Wed, 15 Jun 2022 11:22:18 +0800 Subject: [PATCH] Add QCA vendor attribute for TIM beacon statistics Add the following two vendor attributes to send TIM beacon statistics to userspace which can be used for power saving: QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR Signed-off-by: Jingxiang Ge --- src/common/qca-vendor.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index c9e4675c1..2279ce023 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -4126,6 +4126,22 @@ enum qca_wlan_vendor_attr_ll_stats_results { * Possible values are 0-100. */ QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, + /* Unsigned 32 bit value. The number of Beacon frames which are received + * from the associated AP and indicate buffered unicast frame(s) for us + * in the TIM element. + */ + QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, + /* Unsigned 32 bit value. The total number of Beacon frames received + * from the associated AP that have wrongly indicated buffered unicast + * traffic in the TIM element for us. + * Below scenarios will be considered as wrong TIM element beacon: + * 1) The related TIM element is set in the beacon for STA but STA + * doesn’t receive any unicast data after this beacon. + * 2) The related TIM element is still set in the beacon for STA + * after STA has indicated power save exit by QoS Null Data frame. + */ + QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, + /* keep last */ QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =