Skip to content

Commit a1bf45d

Browse files
Michael Plassandroid-build-team Robot
authored andcommitted
Metrics wifi.proto for connected wifi score
(cherry picked from commit bb367b6) Bug: 67429363 Bug: 71708302 Test: Wifi unit tests Change-Id: I2993a02e7b3199c2b50dc2ddb7704fc5b6364025 Merged-In: I315613b8ea3aa1d02810ae376c76083d80865d31 (cherry picked from commit 1b8fe6e)
1 parent dda2666 commit a1bf45d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

proto/src/wifi.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,10 @@ message StaEvent {
673673
// Framework initiated disconnect. Sometimes generated to give an extra reason for a disconnect
674674
// Should typically be followed by a NETWORK_DISCONNECTION_EVENT with a local_gen = true
675675
TYPE_FRAMEWORK_DISCONNECT = 15;
676+
677+
// The NetworkAgent score for wifi has changed in a way that may impact
678+
// connectivity
679+
TYPE_SCORE_BREACH = 16;
676680
}
677681

678682
enum FrameworkDisconnectReason {
@@ -784,6 +788,9 @@ message StaEvent {
784788

785789
// Authentication failure reason, as reported by WifiManager (calculated from state & deauth code)
786790
optional AuthFailureReason auth_failure_reason = 13 [default = AUTH_FAILURE_UNKNOWN];
791+
792+
// NetworkAgent score of connected wifi
793+
optional int32 last_score = 14 [default = -1];
787794
}
788795

789796
// Wi-Fi Aware metrics

0 commit comments

Comments
 (0)