Log firmware alert to disconnect metrics
Add a new reason to track firmware alert related wifi disconnects, as
well as the specific firmware alert reason code.
Flag: EXEMPT metric
Bug: 409414902
Test: atest com.android.server.wifi
Change-Id: Icd8d96ff75524343ccf257483fd4425da6fd8b9b
diff --git a/stats/atoms.proto b/stats/atoms.proto
index 25edb41..6a0644f 100644
--- a/stats/atoms.proto
+++ b/stats/atoms.proto
@@ -2341,6 +2341,8 @@
DISCONNECT_NEW_CONNECTION_OTHERS = 10024;
// Wi-Fi 7 is enabled or disabled for this network
DISCONNECT_NETWORK_WIFI7_TOGGLED = 10025;
+ // Firmware alert triggered recently for this network
+ DISCONNECT_FIRMWARE_ALERT = 10026;
}
// How long the session lasted from successful connection to disconnect.
@@ -2383,6 +2385,10 @@
// uid of the caller who initiated this connection
optional int32 connection_uid = 14 [(is_uid) = true];
+
+ // Error code reported by the firmware alert
+ // Only applicable when the failure code is DISCONNECT_FIRMWARE_ALERT
+ optional int32 firmware_alert_reason = 15;
}
/**