diff options
| author | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-25 11:00:40 -0700 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-25 11:00:40 -0700 |
| commit | f39708c36f263116be7758d9e7bfc0a1a94c8b76 (patch) | |
| tree | 5f605496021857bd6451377873fb8279f1fe48a8 | |
| parent | 30e489054f3239f1597faa73404499bf13b86833 (diff) | |
fw-api: CL 2957359 - update fw common interface files
add optional congestion stats to WMI stats update message
Change-Id: Ibf8c323ce137f7066c8547eb166b0432dedc783b
CRs-Fixed: 1107600
| -rwxr-xr-x | fw/wmi_tlv_defs.h | 4 | ||||
| -rwxr-xr-x | fw/wmi_unified.h | 12 | ||||
| -rwxr-xr-x | fw/wmi_version.h | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 391d7a129d67..a0a3d18a49f2 100755 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -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*/ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 54ce72006f38..c5f28e137f62 100755 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -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; /* @@ -6016,6 +6017,17 @@ typedef struct { } 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; /* This TLV is followed by another TLV of array of structs: diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 80b683408ac2..cb360193c96a 100755 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -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 |
