diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 6ad5066c2895..ca9c34b3a339 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -6565,7 +6565,9 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENTID); #define WMITLV_TABLE_WMI_PEER_STATS_INFO_EVENTID(id, op, buf, len) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_peer_stats_info_event_fixed_param, wmi_peer_stats_info_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \ - WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_peer_stats_info, peer_stats_info, WMITLV_SIZE_VAR) + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_peer_stats_info, peer_stats_info, WMITLV_SIZE_VAR) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, tx_rate_counts, WMITLV_SIZE_VAR) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, rx_rate_counts, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_PEER_STATS_INFO_EVENTID); /* Update Control Path stats event */ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index af85390a3717..47d79362eaec 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -11354,6 +11354,28 @@ typedef struct { * values). */ A_INT32 peer_rssi_per_chain[WMI_MAX_CHAINS]; + /* show how many elements in the tx_rate_counts array belong to this peer */ + A_UINT32 num_tx_rate_counts; + /* show how many elements in the rx_rate_counts array belong to this peer */ + A_UINT32 num_rx_rate_counts; + /* This TLV array is followed by other TLVs: + * A_UINT32 tx_rate_counts[sum(num_tx_rate_counts)]; + * The above num_tx_rate_counts field shows which elements + * within the tx_rate_counts array belong to a given peer. + * Elements tx_rate_counts[0] to tx_rate_counts[N0-1] belong to + * peer 0, where N0 = peer_stats_info[0].num_tx_rate_counts. + * Elements tx_rate_counts[N0] to tx_rate_counts[N0+N1-1] belong to + * peer 1, where N1 = peer_stats_info[1].num_tx_rate_counts. + * etc. + * A_UINT32 rx_rate_counts[sum(num_rx_rate_counts)]; + * The above num_rx_rate_counts field shows which elements + * within the rx_rate_counts array belong to a given peer. + * Elements rx_rate_counts[0] to rx_rate_counts[N0-1] belong to + * peer 0, where N0 = peer_stats_info[0].num_rx_rate_counts. + * Elements rx_rate_counts[N0] to rx_rate_counts[N0+N1-1] belong to + * peer 1, where N1 = peer_stats_info[1].num_rx_rate_counts. + * etc. + */ } wmi_peer_stats_info; typedef struct { diff --git a/fw/wmi_version.h b/fw/wmi_version.h index f6ce5276e97d..41c87f64832e 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -37,7 +37,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 1207 +#define __WMI_REVISION_ 1208 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work