summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Plass <mplass@google.com> 2017-10-06 10:29:51 -0700
committer Michael Plass <mplass@google.com> 2017-10-23 12:57:33 -0700
commitbb367b689605d0ca3641984b4d59bbe13e6861df (patch)
treea5f68df007e047f1be46f133e781df4fce573311
parenta5da2cf57d581ea87481612e2a7b5e4f83119071 (diff)
Metrics wifi.proto for connected wifi score
Bug: 67429363 Test: Wifi unit tests Change-Id: I315613b8ea3aa1d02810ae376c76083d80865d31
-rw-r--r--proto/src/wifi.proto7
1 files changed, 7 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto
index ee0c04331da2..9d25055d6d5a 100644
--- a/proto/src/wifi.proto
+++ b/proto/src/wifi.proto
@@ -673,6 +673,10 @@ message StaEvent {
// Framework initiated disconnect. Sometimes generated to give an extra reason for a disconnect
// Should typically be followed by a NETWORK_DISCONNECTION_EVENT with a local_gen = true
TYPE_FRAMEWORK_DISCONNECT = 15;
+
+ // The NetworkAgent score for wifi has changed in a way that may impact
+ // connectivity
+ TYPE_SCORE_BREACH = 16;
}
enum FrameworkDisconnectReason {
@@ -784,6 +788,9 @@ message StaEvent {
// Authentication failure reason, as reported by WifiManager (calculated from state & deauth code)
optional AuthFailureReason auth_failure_reason = 13 [default = AUTH_FAILURE_UNKNOWN];
+
+ // NetworkAgent score of connected wifi
+ optional int32 last_score = 14 [default = -1];
}
// Wi-Fi Aware metrics