Add a shell command to force hi-perf mode
This commit adds the wifi shell command to force hi-perf mode.
This is equivelent to an app acquiring a WIFI_MODE_FULL_HIGH_PERF
wifiLock. Command syntax is:
$ adb shell cmd wifi force-hi-perf-mode (enabled/disabled)
where: enabled means hi-perf mode is forced no matter what apps require.
disabled means mode is not forced, and left for apps.
Bug: 129060824
Test: Manual testing of the command
Test: $ adb shell cmd wifi force-hi-perf-mode (enabled/disabled)
Test: Unit test
Test: ./wifi/tests/wifitests/runtests.sh
Change-Id: I9a9c486bf1552d9b512298e138965c2716e5e7ca
Merged-In: Iffbfda4ed9ae4c318702466330ba8448d4a7a489
4 files changed