diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2017-09-29 21:47:56 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-10-13 11:43:40 +0200 |
commit | 74451b935c4285774d46fba864a7a403587c0b97 (patch) | |
tree | 5cd424c0e4e8db9dba28ee3e55bad8dfadb90917 /drivers/net/wireless/realtek/rtlwifi/wifi.h | |
parent | rtlwifi: Add rtl_get_hal_edca_param() to generate register's format of EDCA. (diff) | |
download | linux-74451b935c4285774d46fba864a7a403587c0b97.tar.xz linux-74451b935c4285774d46fba864a7a403587c0b97.zip |
rtlwifi: Add TX/RX throughput statistics in period
The statistic variables use u64 to get higher precision.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/wifi.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/wifi.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 809648d28f52..ceeca79acc56 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -1013,10 +1013,17 @@ struct init_gain { }; struct wireless_stats { - unsigned long txbytesunicast; - unsigned long txbytesmulticast; - unsigned long txbytesbroadcast; - unsigned long rxbytesunicast; + u64 txbytesunicast; + u64 txbytesmulticast; + u64 txbytesbroadcast; + u64 rxbytesunicast; + + u64 txbytesunicast_inperiod; + u64 rxbytesunicast_inperiod; + u32 txbytesunicast_inperiod_tp; + u32 rxbytesunicast_inperiod_tp; + u64 txbytesunicast_last; + u64 rxbytesunicast_last; long rx_snr_db[4]; /*Correct smoothed ss in Dbm, only used |