From c462a7a4c15ca7c35002c84de4ff115be12b28a1 Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Mon, 9 Oct 2017 10:27:44 -0700 Subject: [PATCH] [PASSPOINT] Add metrics to determine deployment/avail of Passpoint Add metrics which will help determine Passpoint availability in the wild. The metrics measure the percentage of time a Passpoint network is visible to user - by collecting historgrams of observations per scan result. Bug: 66951771 Test: unit test Change-Id: I8c91f490a533f90a4f0630e1cb461e1d2643358b --- proto/src/wifi.proto | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index 54eba2b332a41..ee0c04331da2c 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -336,6 +336,34 @@ message WifiLog { // Count of connection attempts that were initiated unsuccessfully optional int32 num_open_network_connect_message_failed_to_send = 82; + + // Histogram counting instances of scans with N many HotSpot 2.0 R1 APs + repeated NumConnectableNetworksBucket observed_hotspot_r1_aps_in_scan_histogram = 83; + + // Histogram counting instances of scans with N many HotSpot 2.0 R2 APs + repeated NumConnectableNetworksBucket observed_hotspot_r2_aps_in_scan_histogram = 84; + + // Histogram counting instances of scans with N many unique HotSpot 2.0 R1 ESS. + // Where ESS is defined as the (HESSID, ANQP Domain ID), (SSID, ANQP Domain ID) or + // (SSID, BSSID) tuple depending on AP configuration (in the above priority + // order). + repeated NumConnectableNetworksBucket observed_hotspot_r1_ess_in_scan_histogram = 85; + + // Histogram counting instances of scans with N many unique HotSpot 2.0 R2 ESS. + // Where ESS is defined as the (HESSID, ANQP Domain ID), (SSID, ANQP Domain ID) or + // (SSID, BSSID) tuple depending on AP configuration (in the above priority + // order). + repeated NumConnectableNetworksBucket observed_hotspot_r2_ess_in_scan_histogram = 86; + + // Histogram counting number of HotSpot 2.0 R1 APs per observed ESS in a scan + // (one value added per unique ESS - potentially multiple counts per single + // scan!) + repeated NumConnectableNetworksBucket observed_hotspot_r1_aps_per_ess_in_scan_histogram = 87; + + // Histogram counting number of HotSpot 2.0 R2 APs per observed ESS in a scan + // (one value added per unique ESS - potentially multiple counts per single + // scan!) + repeated NumConnectableNetworksBucket observed_hotspot_r2_aps_per_ess_in_scan_histogram = 88; } // Information that gets logged for every WiFi connection.