qcacmn: 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

Change-Id: I2986d7e573ed7eaf72a620b928daceccc43b9066
CRs-Fixed: 3234924
This commit is contained in:
Jingxiang Ge
2022-06-10 13:44:05 +08:00
committed by Madan Koyyalamudi
parent 694a2eb657
commit 8b82e08d02

View File

@@ -2495,6 +2495,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
* doesnt 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 =