Update error code for Wifi Hotspot STA connection failure.

PiperOrigin-RevId: 830728102
This commit is contained in:
Edwin Wu
2025-11-10 21:10:22 -08:00
committed by Copybara-Service
parent 1e7611f61b
commit decf2acbd9
2 changed files with 3 additions and 2 deletions
@@ -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(
+1
View File
@@ -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_; }