summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-04-25 09:43:19 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-25 09:43:19 -0700
commit830ab4ed439c312ff65950e6d701ebffe922ae04 (patch)
tree9d75ae5a74b743d89e9a8a81323f481f089c2081
parentf0e01aeafc4ace8e89f64c6b5967feb5fe2f6c36 (diff)
parentb4871e7954313d66193ffdb8b4a30aebdd126274 (diff)
Merge "qcacld-2.0: CL 2894718 - update fw common interface files" into wlan-cld2.driver.lnx.1.0-dev
-rw-r--r--CORE/SERVICES/COMMON/wmi_tlv_defs.h4
-rw-r--r--CORE/SERVICES/COMMON/wmi_unified.h47
-rw-r--r--CORE/SERVICES/COMMON/wmi_version.h2
3 files changed, 50 insertions, 3 deletions
diff --git a/CORE/SERVICES/COMMON/wmi_tlv_defs.h b/CORE/SERVICES/COMMON/wmi_tlv_defs.h
index 1a83fb251f8f..137fdb9c4fa6 100644
--- a/CORE/SERVICES/COMMON/wmi_tlv_defs.h
+++ b/CORE/SERVICES/COMMON/wmi_tlv_defs.h
@@ -800,6 +800,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_vdev_set_arp_stats_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_vdev_get_arp_stats_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_vdev_get_arp_stats_event_fixed_param,
+ WMITLV_TAG_STRUC_wmi_iface_offload_stats,
} WMITLV_TAG_ID;
/*
@@ -3632,7 +3633,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID);
#define WMITLV_TABLE_WMI_IFACE_LINK_STATS_EVENTID(id,op,buf,len)\
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_iface_link_stats_event_fixed_param, wmi_iface_link_stats_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_link_stats, iface_link_stats, WMITLV_SIZE_VAR) \
- WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_wmm_ac_stats, ac, WMITLV_SIZE_VAR)
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_wmm_ac_stats, ac, WMITLV_SIZE_VAR) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_offload_stats, iface_offload_stats, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_IFACE_LINK_STATS_EVENTID);
/* Update Peer link stats Event */
diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h
index 042c35b3865a..6b8162f17292 100644
--- a/CORE/SERVICES/COMMON/wmi_unified.h
+++ b/CORE/SERVICES/COMMON/wmi_unified.h
@@ -4750,6 +4750,10 @@ typedef struct {
* It is superseded by the WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID message.
*/
A_UINT32 tx_time_per_tpc[MAX_TPC_LEVELS];
+ /** msecs the radio is awake due to Host initiated scan (accruing over time) */
+ A_UINT32 on_time_host_scan;
+ /** msecs the radio is awake due to LPI scan (accruing over time) */
+ A_UINT32 on_time_lpi_scan;
} wmi_radio_link_stats;
/** tx time per power level statistics */
@@ -4956,8 +4960,46 @@ typedef struct {
A_UINT32 tx_rts_fail_cnt;
A_UINT32 tx_ppdu_succ_cnt;
A_UINT32 tx_ppdu_fail_cnt;
+ /** msecs the interface is in Connected state (accruing over time) */
+ A_UINT32 connected_duration;
+ /** msecs the interface is in DisConnected state (accruing over time) */
+ A_UINT32 disconnected_duration;
+ /** msecs the interface is doing RTT ranging (accruing over time) */
+ A_UINT32 rtt_ranging_duration;
+ /** msecs the interface is in RTT responder mode (accruing over time) */
+ A_UINT32 rtt_responder_duration;
+ /** Number of Probes (Tx) sent on the interface (accruing over time) */
+ A_UINT32 num_probes_tx;
+ /** Number of Beacon misses on this interface (accruing over time) */
+ A_UINT32 num_beacon_miss;
} wmi_iface_link_stats;
+typedef enum {
+ WMI_OFFLOAD_STATS_TYPE_SOC_BCAST = 0,
+ WMI_OFFLOAD_STATS_TYPE_SOC_MCAST = 1,
+ WMI_OFFLOAD_STATS_TYPE_SOC_UCAST = 2,
+ WMI_OFFLOAD_STATS_TYPE_ARP = 3,
+ WMI_OFFLOAD_STATS_TYPE_NS = 4,
+ WMI_OFFLOAD_STATS_TYPE_APF_BCAST = 5,
+ WMI_OFFLOAD_STATS_TYPE_APF_MCAST = 6,
+ WMI_OFFLOAD_STATS_TYPE_APF_UCAST = 7,
+ /* Add New offload stat type here */
+ WMI_OFFLOAD_STATS_TYPE_MAX,
+} wmi_offload_stats_type;
+
+typedef struct {
+ A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_offload_stats */
+ /** Type of offload stat. enum wmi_offload_stats_type **/
+ A_UINT32 type;
+ /** Number of (MSDUs) frames Received **/
+ A_UINT32 rx_count;
+ /** Number of frames Dropped **/
+ A_UINT32 drp_count;
+ /** Number of frames for which FW Responded (Valid for ARP and NS only). (or)
+ * Number of frames forwarded to Host (Valid for stats type except ARP and NS). **/
+ A_UINT32 fwd_count;
+} wmi_iface_offload_stats;
+
/** Interface statistics (once started) reset and start afresh after each connection */
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_link_stats_event_fixed_param */
@@ -4965,10 +5007,13 @@ typedef struct {
A_UINT32 request_id;
/** unique id identifying the VDEV, generated by the caller */
A_UINT32 vdev_id;
+ /** Number of offload stats **/
+ A_UINT32 num_offload_stats;
/*
- * This TLV is followed by another TLV
+ * This TLV is followed by other TLVs
* wmi_iface_link_stats iface_link_stats;
* num_ac * size of(struct wmi_wmm_ac_stats)
+ * wmi_iface_offload_stats iface_offload_stats[num_offload_stats]
*/
} wmi_iface_link_stats_event_fixed_param;
diff --git a/CORE/SERVICES/COMMON/wmi_version.h b/CORE/SERVICES/COMMON/wmi_version.h
index 75ceed67ea91..21ad36beb268 100644
--- a/CORE/SERVICES/COMMON/wmi_version.h
+++ b/CORE/SERVICES/COMMON/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_ 356
+#define __WMI_REVISION_ 357
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work