diff --git a/connections/implementation/wifi_hotspot_bwu_handler.cc b/connections/implementation/wifi_hotspot_bwu_handler.cc index 458f92d9..49eb5ca0 100644 --- a/connections/implementation/wifi_hotspot_bwu_handler.cc +++ b/connections/implementation/wifi_hotspot_bwu_handler.cc @@ -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 socket_result = wifi_hotspot_medium_.Connect( diff --git a/internal/platform/wifi_hotspot.h b/internal/platform/wifi_hotspot.h index d5e2b1f2..dd0a2f24 100644 --- a/internal/platform/wifi_hotspot.h +++ b/internal/platform/wifi_hotspot.h @@ -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_; }