PR #4395: Update proto definitions - offline_wire_formats.proto and connections…

Imported from GitHub PR https://github.com/google/nearby/pull/4395

…_enums.proto for WiFi Direct

<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide
  enough information so that others can review your pull request.
-->

## Summary

Update proto definitions - offline_wire_formats.proto and connections_enums.proto for WiFi Direct

## How did you test this change?

on test only update the proto definitions.

Copybara import of the project:

--
71aa603d4557652d87667455dc3233b8f7fd262a by Edwin Wu <edwinwu@google.com>:

Update proto definitions - offline_wire_formats.proto and connections_enums.proto for WiFi Direct

Merging this change closes #4395

PiperOrigin-RevId: 929606397
This commit is contained in:
edwinwugoog
2026-06-09 22:27:52 -07:00
committed by Copybara-Service
parent 7d647f8a85
commit e205d8a08f
6 changed files with 818 additions and 533 deletions
@@ -326,9 +326,10 @@ message BandwidthUpgradeNegotiationFrame {
// The GO should listen on both IPv4 and IPv6 addresses.
// https://en.wikipedia.org/wiki/Link-local_address#IPv6
optional bytes ip_v6_address = 6;
// Windows only supports WifiDirect with Service Discovey. Its
// credentials is the service_name/pin.
optional string service_name = 7;
// Windows and Android will use Wi-Fi P2P device discovery for WifiDirect.
// Its credentials is the device_name.
optional string service_name = 7 [deprecated = true];
optional string device_name = 9;
// WifiDirect spec requires that pin is exactly 8 digits. The first 7
// digits are the PIN. The last 1 digit is a checksum calculated using a
// specific algorithm (CRC-8). However, the Windows WinRT
@@ -340,6 +341,8 @@ message BandwidthUpgradeNegotiationFrame {
// pin is exchanged in the connection handshake stage, but we create and
// save it before starting GO, so we can send it to GC side for
// authentication.
// Note: pin is not used for WIFI_DIRECT_WITH_DEVICE_NAME, reserve for
// future expansion.
optional string pin = 8;
}
@@ -512,9 +515,10 @@ message MediumMetadata {
// WifiDirect type that uses ssid/password for authentication. Android
// supports this type, but Windows does not.
WIFI_DIRECT_WITH_PASSWORD = 1;
// WifiDirect type that uses service_name/pin for authentication. Android
// and Windows both support this type.
WIFI_DIRECT_WITH_PIN = 2;
// WifiDirect type that uses device_name for discovery and connect.
// Android and Windows both support this type.
WIFI_DIRECT_WITH_PIN = 2 [deprecated = true];
WIFI_DIRECT_WITH_DEVICE_NAME = 3;
}
// LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto)