mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Update error code for Wifi Hotspot STA connection failure.
PiperOrigin-RevId: 830728102
This commit is contained in:
committed by
Copybara-Service
parent
1e7611f61b
commit
decf2acbd9
@@ -217,8 +217,8 @@ WifiHotspotBwuHandler::CreateUpgradedEndpointChannel(
|
||||
|
||||
if (!wifi_hotspot_medium_.ConnectWifiHotspot(hotspot_credentials)) {
|
||||
LOG(ERROR) << "Connect to Hotspot failed";
|
||||
return {Error(
|
||||
OperationResultCode::CONNECTIVITY_WIFI_HOTSPOT_INVALID_CREDENTIAL)};
|
||||
return {Error(OperationResultCode::
|
||||
CONNECTIVITY_WIFI_HOTSPOT_LEGACY_STA_CONNECTION_FAILURE)};
|
||||
}
|
||||
|
||||
ErrorOr<WifiHotspotSocket> socket_result = wifi_hotspot_medium_.Connect(
|
||||
|
||||
@@ -181,6 +181,7 @@ class WifiHotspotMedium {
|
||||
hotspot_credentials_ = hotspot_credentials;
|
||||
return impl_->ConnectWifiHotspot(hotspot_credentials);
|
||||
}
|
||||
|
||||
bool DisconnectWifiHotspot() { return impl_->DisconnectWifiHotspot(); }
|
||||
|
||||
HotspotCredentials* GetCredential() { return &hotspot_credentials_; }
|
||||
|
||||
Reference in New Issue
Block a user