summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@codeaurora.org>2017-05-17 15:01:02 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-05-17 15:01:02 -0700
commiteadc55837487984c2a1809d6955ce7ba01fbfe0b (patch)
tree5089da7254d69f789d09793d2c422e288a7eee0c
parentf6c9d5e08d8797904a26c2fb4bf9fc931111224b (diff)
fw-api: CL 3090794 - update fw common interface files
Add defs of WMI extended peer stats Change-Id: I348241c6b95c014467ec16bfb03dda34c673bfad CRs-Fixed: 1107600
-rwxr-xr-xfw/wmi_unified.h29
-rwxr-xr-xfw/wmi_version.h2
2 files changed, 25 insertions, 6 deletions
diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h
index afa36095431a..773767ab590e 100755
--- a/fw/wmi_unified.h
+++ b/fw/wmi_unified.h
@@ -4796,6 +4796,7 @@ typedef enum {
WMI_REQUEST_MIB_STAT = 0x80,
WMI_REQUEST_RSSI_PER_CHAIN_STAT = 0x100,
WMI_REQUEST_CONGESTION_STAT = 0x200,
+ WMI_REQUEST_PEER_EXTD_STAT = 0x400,
} wmi_stats_id;
/*
@@ -5396,7 +5397,10 @@ typedef struct {
* num_bcnflt_stats * size_of()
* num_chan_stats * size of(struct wmi_chan_stats)
* num_mib_stats * size of(struct wmi_mib_stats)
- *
+ */
+/* If WMI_REQUEST_PEER_EXTD_STAT is set in stats_id,
+ * the data[] array also contains num_peer_stats * size of wmi_peer_extd_stats
+ * following the information elements listed above.
*/
} wmi_stats_event_fixed_param;
@@ -5999,10 +6003,6 @@ typedef struct {
/**
* peer statistics.
- *
- * @todo
- * add more stats
- *
*/
typedef struct {
/** peer MAC address */
@@ -6015,6 +6015,25 @@ typedef struct {
A_UINT32 peer_rx_rate;
} wmi_peer_stats;
+/**
+ * Peer extension statistics
+ */
+typedef struct {
+ /** peer MAC address */
+ wmi_mac_addr peer_macaddr;
+ /* rx duration in microseconds*/
+ A_UINT32 rx_duration;
+ /** Total TX bytes (including dot11 header) sent to peer */
+ A_UINT32 peer_tx_bytes;
+ /** Total RX bytes (including dot11 header) received from peer */
+ A_UINT32 peer_rx_bytes;
+ /** last TX ratecode */
+ A_UINT32 last_tx_rate_code;
+ /** TX power used by peer - units are 0.5 dBm */
+ A_INT32 last_tx_power;
+ A_UINT32 reserved[4]; /** for future use - add new peer stats here */
+} wmi_peer_extd_stats;
+
typedef struct {
/** Primary channel freq of the channel for which stats are sent */
A_UINT32 chan_mhz;
diff --git a/fw/wmi_version.h b/fw/wmi_version.h
index 5a2db6ee51a8..9073d01892cf 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_ 391
+#define __WMI_REVISION_ 392
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work