Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3607a39b authored by Roshan Pius's avatar Roshan Pius
Browse files

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
parent 3cd3a993
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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.