diff options
| author | 2018-08-08 14:50:18 -0700 | |
|---|---|---|
| committer | 2018-08-08 14:50:18 -0700 | |
| commit | b56979f7f53d1eed7dfb47650c7da87a72ba905c (patch) | |
| tree | acc0c5c6ed9ab17b6d502799c68892106baaa34a | |
| parent | 8eedb5ad40f860a169257dec0c2bb94686bbb69c (diff) | |
Add WIFI_ENABLED and WIFI_DISABLED to StaEvent
Log whenever wifi is turned on/off in StaEvent metrics.
Bug: 112193991
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: Turn wifi on/off from settings
Test: adb shell dumpsys wifi | grep -A10 StaEventList
Change-Id: Icf32d4a622f4447e8461560b7cfa4818dcfb1efa
| -rw-r--r-- | proto/src/wifi.proto | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index f7fcf5c6adac..45d8a5561677 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -811,6 +811,12 @@ message StaEvent { // Framework changed Sta interface MAC address TYPE_MAC_CHANGE = 17; + + // Wifi is turned on + TYPE_WIFI_ENABLED = 18; + + // Wifi is turned off + TYPE_WIFI_DISABLED = 19; } enum FrameworkDisconnectReason { |