Refine Wifi Direct comments and use a constant for GO start delay.

PiperOrigin-RevId: 931363915
This commit is contained in:
hai007
2026-06-12 15:31:16 -07:00
committed by Copybara-Service
parent 728a7050a3
commit 396a12c580
3 changed files with 23 additions and 16 deletions
@@ -61,8 +61,13 @@ constexpr absl::string_view kWifiDirectSsidPatternString{
constexpr int kWifiDirectSsidMaxLength = 32;
constexpr int kWifiPasswordSsidMinLength = 8;
constexpr int kWifiPasswordSsidMaxLength = 64;
// We may use Push Button for WPS, so no pin is required, the min length should
// be 0.
// For Windows Wifi Direct based on WinRT Windows.Devices.WiFiDirect, user can't
// choose pin when pairing with the other device. Instead, When GO is created, a
// pin is created by OS. But at this stage, BWU has already sent device name as
// credential to GC for connection. Current BWU design has no way to send second
// ForBwuWifiDirectPathAvailable frame with pin as crdential to GC. To avoid
// major change in BWU structure, we decided to use ConfirmOnly(Push Button) for
// WPS, so no pin is required, the min length should be 0.
constexpr int kWifiDirectPinMinLength = 0;
constexpr int kWifiDirectPinMaxLength = 16;