Wifi usability: Data stall detection based on link layer stats

cherry-picked from: ag/9496255.

This is an effort to define new criterion for triggering Wifi data
stall:
(1) Defined data stall criterion based on transmit and/or receive
throughput, transmit packet error rate, and CCA level. Data stall is
triggered when transmit and/or receive links are consecutively bad over
multiple RSSI polls.
(2) Added DeviceConfig flags (that is disabled by default) which may be
configured on the server side to tune the thresholds at which data stall
gets triggered.

Bug: 141776507

Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: adb shell device_config put wifi data_stall_duration_ms 12
Test: adb shell device_config put wifi data_stall_tx_tput_thr_kbps 2
Test: adb shell device_config put wifi data_stall_rx_tput_thr_kbps 3
Test: adb shell device_config put wifi data_stall_tx_per_thr 90
Test: adb shell device_config put wifi data_stall_cca_level_thr 60
Test: adb shell dumpsys wifi | grep 'mExperimentValues'

Change-Id: Ib6633ad778cfcfc3eb3de5216f3e8bcc68946bb0
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
8 files changed
tree: 43b3b7d99d14d83cd7fed5de2d745d2beb92f81f
  1. service/
  2. PREUPLOAD.cfg