Scan Optimization: Update total duration in mobility state more frequently
Previously, the total duration spent in a mobility state was updated only when
the mobility state changes. However, the PNO duration is updated whenever PNO
scans are started or stopped.
This can result in nonsensical data if the mobility state never changes, where
the PNO duration for a state could be greater than the total duration for that
state.
This change updates the total duration whenever mobility state changes OR PNO
scans are started/stopped, so that the total duration and the PNO duration are
updated in sync of each other.
Bug: 120097108
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Iba817a0f10075d7b8997223e0ba08bac5dd0f11f
3 files changed