From 01ad38b9cda64be94ffe22c4ef929f47dc977f22 Mon Sep 17 00:00:00 2001 From: Jong Wook Kim Date: Mon, 9 Apr 2018 10:14:11 -0700 Subject: [PATCH] Connected MAC Randomization Metrics Proto 1) Add "is_mac_randomization_on" that indicates if Connected MAC Randomization is turned on/off when the proto is created. 2) Add "TYPE_MAC_CHANGE" as a new trigger event for StaEvent. This will occur whenever we are dynamically changing the MAC address for Connected MAC Randomization. Bug: 73666905 Test: Unittest. Change-Id: Ifef0908f668e39531ebe5a38588f8e3713c047a9 --- proto/src/wifi.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index 9a8361eae7e57..0598b16bea1a1 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -435,6 +435,9 @@ message WifiLog { // Wi-Fi RTT metrics optional WifiRttLog wifi_rtt_log = 110; + + // Flag which indicates if Connected MAC Randomization is enabled + optional bool is_mac_randomization_on = 111 [default = false]; } // Information that gets logged for every WiFi connection. @@ -748,6 +751,9 @@ message StaEvent { // The NetworkAgent score for wifi has changed in a way that may impact // connectivity TYPE_SCORE_BREACH = 16; + + // Framework changed Sta interface MAC address + TYPE_MAC_CHANGE = 17; } enum FrameworkDisconnectReason {