From 3ebb24e94b560e22e61313c06e8b094b619522a6 Mon Sep 17 00:00:00 2001 From: Jong Wook Kim Date: Wed, 8 Aug 2018 14:50:18 -0700 Subject: [PATCH] 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 Merged-In: Icf32d4a622f4447e8461560b7cfa4818dcfb1efa (cherry picked from commit b56979f7f53d1eed7dfb47650c7da87a72ba905c) --- proto/src/wifi.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index b29c992120d44..37b431fafd607 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -781,6 +781,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 {