fw-api: CL 2957359 - update fw common interface files

add optional congestion stats to WMI stats update message

Change-Id: Ibf8c323ce137f7066c8547eb166b0432dedc783b
CRs-Fixed: 1107600
This commit is contained in:
Sandeep Puligilla
2017-03-25 11:00:40 -07:00
父節點 9ddce3030a
當前提交 46dc1a82ed
共有 3 個文件被更改,包括 16 次插入2 次删除

查看文件

@@ -818,6 +818,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_offchan_data_tx_send_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_tx_send_params,
WMITLV_TAG_STRUC_wmi_he_rate_set,
WMITLV_TAG_STRUC_wmi_congestion_stats,
} WMITLV_TAG_ID;
/*
@@ -3682,7 +3683,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_HOST_SWBA_EVENTID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_stats_event_fixed_param, wmi_stats_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, data, WMITLV_SIZE_VAR) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_per_chain_rssi_stats, wmi_per_chain_rssi_stats, chain_stats, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_rssi_stats, rssi_stats, WMITLV_SIZE_VAR)
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_rssi_stats, rssi_stats, WMITLV_SIZE_VAR) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_congestion_stats, congestion_stats, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_UPDATE_STATS_EVENTID);
/* For vdev based ht/vht info upload*/

查看文件

@@ -4729,6 +4729,7 @@ typedef enum {
WMI_REQUEST_INST_STAT = 0x40,
WMI_REQUEST_MIB_STAT = 0x80,
WMI_REQUEST_RSSI_PER_CHAIN_STAT = 0x100,
WMI_REQUEST_CONGESTION_STAT = 0x200,
} wmi_stats_id;
/*
@@ -6015,6 +6016,17 @@ typedef struct {
wmi_mac_addr peer_macaddr;
} wmi_rssi_stats;
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_congestion_stats */
A_UINT32 vdev_id;
/* congestion -
* This field holds the congestion percentage = (busy_time/total_time)*100
* for the interval from when the vdev was started to the current time
* (or the time at which the vdev was stopped).
*/
A_UINT32 congestion;
} wmi_congestion_stats;
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_per_chain_rssi_stats */
A_UINT32 num_per_chain_rssi_stats;

查看文件

@@ -36,7 +36,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_ 372
#define __WMI_REVISION_ 373
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work