summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Roshan Pius <rpius@google.com> 2017-05-11 09:05:58 -0700
committer Roshan Pius <rpius@google.com> 2017-05-15 15:58:01 -0700
commit3607a39bbf99889d964f985727d14bcbdbecfac6 (patch)
tree20d7f3b8449648e1aac0250055287b199d99dc90
parent3cd3a993d98ddeb1b625dd1bb3ecbcd3164091fe (diff)
WifiMetrics: Add metrics for HAL/wificond crashes
New metrics added: 1. Number of times HAL crashed during operation. 2. Number of times wificond crashed during operation. 3. Number of times wifi start failed because of a native issue. Basically the number of times calls to WifiNative.setupForClientMode() & WifiNative.setupForSoftApMode() fails. Bug: 36586897 Test: Compiles Change-Id: Ie9683fd8bfea6b0c64605e407559ff561898c11b
-rw-r--r--proto/src/wifi.proto14
1 files changed, 14 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto
index debb1578451a..564d1355c7a1 100644
--- a/proto/src/wifi.proto
+++ b/proto/src/wifi.proto
@@ -241,6 +241,20 @@ message WifiLog {
// List of events
repeated StaEvent sta_event_list = 52;
+
+ // Total number of times WiFi HAL crashed.
+ optional int32 num_hal_crashes = 53;
+
+ // Total number of times WiFicond crashed.
+ optional int32 num_wificond_crashes = 54;
+
+ // Indicates the number of times an error was encountered in
+ // Wifi HAL when wifi was turned on.
+ optional int32 num_wifi_on_failure_due_to_hal = 55;
+
+ // Indicates the number of times an error was encountered in
+ // Wificond when wifi was turned on.
+ optional int32 num_wifi_on_failure_due_to_wificond = 56;
}
// Information that gets logged for every WiFi connection.