[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
This commit is contained in:
Hai Shalom
2019-01-25 13:49:49 -08:00
parent a18c32c719
commit 808ceb3de7

View File

@@ -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.