[9610] wlbt: traffic monitor - fix throughput report
authorDebabrata Purohit <d.purohit@samsung.com>
Thu, 14 Jun 2018 17:46:41 +0000 (18:46 +0100)
committerIvan Priest <i.priest@samsung.com>
Wed, 11 Jul 2018 17:43:17 +0000 (18:43 +0100)
commit25f4f3994a6f0b0bdfbc96f6d33ff03186dbca58
treeaf6af14a2e2b26dbb1474bba07f2ff7c89a55bcf
parent7af98f82103a3e30333440caed06dcb3f4adc05e
[9610] wlbt: traffic monitor - fix throughput report

1) The traffic monitor uses a jiffies based timer
which is not exactly accurate as it is not a
High resolution timer.

The throughput calculation assumes the time to be
same as the timer interval. But it causes the
throughput report to be slightly off the mark.

Measure exact time diff between each timer
interrupt to report accurate throughput.

2) report throughput per second instead of per
timer interval.

3) Apply a rough correction to exclude IP and
transport header from payload size calculation.

Change-Id: Icf595b2bd694b2877b67484db0c0bb57ca8c64d5
SCSC-Bug-Id: SSB-40955
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
drivers/net/wireless/scsc/dev.h
drivers/net/wireless/scsc/procfs.c
drivers/net/wireless/scsc/traffic_monitor.c