From 36a84d48a2f520225ce1fb804e8e271a0f06fd2c Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 6 Mar 2026 18:07:53 -0800 Subject: [PATCH] Add BW upgrade try count and more error codes. PiperOrigin-RevId: 879903045 --- internal/proto/analytics/connections_log.proto | 3 +++ proto/connections_enums.proto | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/internal/proto/analytics/connections_log.proto b/internal/proto/analytics/connections_log.proto index 6dea3e48..1e10edad 100644 --- a/internal/proto/analytics/connections_log.proto +++ b/internal/proto/analytics/connections_log.proto @@ -580,6 +580,9 @@ message ConnectionsLog { // The number of network interfaces on the device for the upgrade medium // that can be used for bandwidth upgrade and are IPv6 only. optional int32 num_ipv6_only_interfaces = 13; + // The number of times the upgrade attempt is tried. + // This count is reset to 0 when the upgrade is successful. + optional int32 try_count = 14; } // Next Id: 22 diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index db519643..4c46ce5b 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -1447,6 +1447,11 @@ enum OperationResultCode { DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_HOST_NETWORK_NOT_AVAILABLE = 5058; // Failed to upgrade to high speed medium because no incoming HTTP connection DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_NO_INCOMING_HTTP_CONNECTION = 5059; + // Failed to upgrade to high speed medium because there is no USB device + // connected + DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_USB_NO_CONNECTED_DEVICE = 5060; + // Failed to upgrade to high speed medium because the upgrade is interrupted + DCT_ERROR_UPGRADE_HIGH_SPEED_MEDIUM_FAILED_INTERRUPTED = 5061; } enum StopAdvertisingReason {