From 6c710d3426f54bf071c29681ec22227fff6e7244 Mon Sep 17 00:00:00 2001 From: hai007 Date: Thu, 6 Nov 2025 23:23:13 -0800 Subject: [PATCH] Add 4 new operation result codes for Wifi Aware and modify return type of requestConnection and joinNetwork to return the correct result code. PiperOrigin-RevId: 829289508 --- proto/connections_enums.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index 5e2b453d..2985ab60 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -1058,6 +1058,14 @@ enum OperationResultCode { // Payloads IOError due to endpoint get IOException on AWDL medium // (IOException on Channel#write) CONNECTIVITY_CHANNEL_IO_ERROR_ON_AWDL = 3606; + // Failed to join Wifi Aware network dur to network unavailable + CONNECTIVITY_WIFI_AWARE_DO_UNAVAILABLE = 3607; + // The discovered Wifi Aware peer is null and screen off + CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_SCREEN_OFF = 3608; + // The discovered Wifi Aware peer is null due to timeout + CONNECTIVITY_WIFI_AWARE_DISCOVER_PEER_NULL_TIMEOUT = 3609; + // Failed to join Wifi Aware network + CONNECTIVITY_WIFI_AWARE_JOIN_NETWORK_FAILED = 3610; // Section of CATEGORY_NEARBY_ERROR, from 4500 // NO BLE MAC address associated to the GATT advertisement