diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2014-02-27 09:20:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-28 14:33:34 -0500 |
commit | c8b78b5f0fa2783e9289c67e3f7524e6679874a9 (patch) | |
tree | a527e3242bee7bd5e09e55b495f037a19c3a2f77 /drivers/net/wireless/ath/wil6210/wil6210.h | |
parent | ef28afdb1cbb01dd15840eae3786b84ddfa83c6a (diff) |
wil6210: per-connection statistics
Calculate statistics per connection, report with "iw station dump"
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/wil6210.h')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wil6210.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/wil6210.h b/drivers/net/wireless/ath/wil6210/wil6210.h index 304b990295b7..b64175aae1dd 100644 --- a/drivers/net/wireless/ath/wil6210/wil6210.h +++ b/drivers/net/wireless/ath/wil6210/wil6210.h | |||
@@ -274,6 +274,16 @@ enum wil_sta_status { | |||
274 | 274 | ||
275 | #define WIL_STA_TID_NUM (16) | 275 | #define WIL_STA_TID_NUM (16) |
276 | 276 | ||
277 | struct wil_net_stats { | ||
278 | unsigned long rx_packets; | ||
279 | unsigned long tx_packets; | ||
280 | unsigned long rx_bytes; | ||
281 | unsigned long tx_bytes; | ||
282 | unsigned long tx_errors; | ||
283 | unsigned long rx_dropped; | ||
284 | u16 last_mcs_rx; | ||
285 | }; | ||
286 | |||
277 | /** | 287 | /** |
278 | * struct wil_sta_info - data for peer | 288 | * struct wil_sta_info - data for peer |
279 | * | 289 | * |
@@ -285,6 +295,7 @@ enum wil_sta_status { | |||
285 | struct wil_sta_info { | 295 | struct wil_sta_info { |
286 | u8 addr[ETH_ALEN]; | 296 | u8 addr[ETH_ALEN]; |
287 | enum wil_sta_status status; | 297 | enum wil_sta_status status; |
298 | struct wil_net_stats stats; | ||
288 | /* Rx BACK */ | 299 | /* Rx BACK */ |
289 | struct wil_tid_ampdu_rx *tid_rx[WIL_STA_TID_NUM]; | 300 | struct wil_tid_ampdu_rx *tid_rx[WIL_STA_TID_NUM]; |
290 | unsigned long tid_rx_timer_expired[BITS_TO_LONGS(WIL_STA_TID_NUM)]; | 301 | unsigned long tid_rx_timer_expired[BITS_TO_LONGS(WIL_STA_TID_NUM)]; |