From 808ceb3de70dc4291976620b31b808b61a700153 Mon Sep 17 00:00:00 2001 From: Hai Shalom Date: Fri, 25 Jan 2019 13:49:49 -0800 Subject: [PATCH] [WPA] Add metrics to track WPA3 and OWE Add metrics to track WPA3 (Personal & Enterprise) and OWE. Bug: 118899889 Test: Connect to WPA2 and WPA3 Personal networks, and verify counters Test: atest WifiMetricsTest Test: adb shell dumpsys wifi Test: adb shell dumpsys wifi wifiMetricsProto Test: adb shell dumpsys wifi wifiMetricsProto clean Change-Id: Ia39a308a3d0e3b94da9dd6ed449992acb641ec2e --- proto/src/wifi.proto | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index 542f069d8cb35..84647a6040e03 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -33,11 +33,11 @@ message WifiLog { // Number of open networks in the saved networks. optional int32 num_open_networks = 3; - // Number of personal networks. - optional int32 num_personal_networks = 4; + // Number of legacy personal networks. + optional int32 num_legacy_personal_networks = 4; - // Number of enterprise networks. - optional int32 num_enterprise_networks = 5; + // Number of legacy enterprise networks. + optional int32 num_legacy_enterprise_networks = 5; // Does the user have location setting enabled. optional bool is_location_enabled = 6; @@ -206,11 +206,11 @@ message WifiLog { // Total number of scan results for open networks optional int32 num_open_network_scan_results = 40; - // Total number of scan results for personal networks - optional int32 num_personal_network_scan_results = 41; + // Total number of scan results for legacy personal networks + optional int32 num_legacy_personal_network_scan_results = 41; - // Total number of scan results for enterprise networks - optional int32 num_enterprise_network_scan_results = 42; + // Total number of scan results for legacy enterprise networks + optional int32 num_legacy_enterprise_network_scan_results = 42; // Total number of scan results for hidden networks optional int32 num_hidden_network_scan_results = 43; @@ -497,6 +497,24 @@ message WifiLog { // Easy Connect (DPP) metrics optional WifiDppLog wifi_dpp_log = 130; + + // Number of Enhanced Open (OWE) networks in the saved networks. + optional int32 num_enhanced_open_networks = 131; + + // Number of WPA3-Personal networks. + optional int32 num_wpa3_personal_networks = 132; + + // Number of WPA3-Enterprise networks. + optional int32 num_wpa3_enterprise_networks = 133; + + // Total number of scan results for Enhanced open networks + optional int32 num_enhanced_open_network_scan_results = 134; + + // Total number of scan results for WPA3-Personal networks + optional int32 num_wpa3_personal_network_scan_results = 135; + + // Total number of scan results for WPA3-Enterprise networks + optional int32 num_wpa3_enterprise_network_scan_results = 136; } // Information that gets logged for every WiFi connection.