diff options
author | Randy Pan <zpan@google.com> | 2016-11-02 16:37:39 -0700 |
---|---|---|
committer | Randy Pan <zpan@google.com> | 2016-11-09 18:22:27 +0000 |
commit | 65df832deaa7c9cdbb66a6b3bcb45d2deee8c149 (patch) | |
tree | b71e87966a6460fe1a4187d462d7f683ffb849de | |
parent | 613dbfbefbe570c2fd5e1e6d959411bf75f6265b (diff) |
Wifi link layer statistics sample timestamp
Pass in the timestamp for Tx/Rx rate computation.
Bug: 30982272
Test: Ran the new image and compared the rates with the previous
algorithm.
Change-Id: I0eaafda0d072a5b69b6c95dec41a74af60c50f24
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateMachine.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index 21ee379dd..ec0571887 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -1429,7 +1429,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss long mRxPkts = mFacade.getRxPackets(mInterfaceName); mWifiInfo.updatePacketRates(mTxPkts, mRxPkts); } else { - mWifiInfo.updatePacketRates(stats); + mWifiInfo.updatePacketRates(stats, lastLinkLayerStatsUpdate); } return stats; } |