From 474b7833e4c0aa4ffc76d84c542db68cd6a1ee09 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Thu, 31 Aug 2023 21:00:01 +0530 Subject: [PATCH] Disable Start/StopWifiDirect for now. --- .../implementation/linux/wifi_direct.cc | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/internal/platform/implementation/linux/wifi_direct.cc b/internal/platform/implementation/linux/wifi_direct.cc index f772f296..8aa605e2 100644 --- a/internal/platform/implementation/linux/wifi_direct.cc +++ b/internal/platform/implementation/linux/wifi_direct.cc @@ -157,26 +157,28 @@ bool NetworkManagerWifiDirectMedium::StartWifiDirect( WifiDirectCredentials *wifi_direct_credentials) { // According to the comments in the windows implementation, the wifi direct // medium is currently just a regular wifi hotspot. - auto wireless_device = std::make_unique( - network_manager_, system_bus_, wireless_device_->getObjectPath()); - auto hotspot = NetworkManagerWifiHotspotMedium(system_bus_, network_manager_, - std::move(wireless_device)); + // auto wireless_device = std::make_unique( + // network_manager_, system_bus_, wireless_device_->getObjectPath()); + // auto hotspot = NetworkManagerWifiHotspotMedium(system_bus_, network_manager_, + // std::move(wireless_device)); - HotspotCredentials hotspot_creds; - if (!hotspot.StartWifiHotspot(&hotspot_creds)) return false; + // HotspotCredentials hotspot_creds; + // if (!hotspot.StartWifiHotspot(&hotspot_creds)) return false; - wifi_direct_credentials->SetSSID(hotspot_creds.GetSSID()); - wifi_direct_credentials->SetPassword(hotspot_creds.GetPassword()); - return true; + // wifi_direct_credentials->SetSSID(hotspot_creds.GetSSID()); + // wifi_direct_credentials->SetPassword(hotspot_creds.GetPassword()); + // return true; + return false; } bool NetworkManagerWifiDirectMedium::StopWifiDirect() { - auto wireless_device = std::make_unique( - network_manager_, system_bus_, wireless_device_->getObjectPath()); - auto hotspot = NetworkManagerWifiHotspotMedium(system_bus_, network_manager_, - std::move(wireless_device)); + // auto wireless_device = std::make_unique( + // network_manager_, system_bus_, wireless_device_->getObjectPath()); + // auto hotspot = NetworkManagerWifiHotspotMedium(system_bus_, network_manager_, + // std::move(wireless_device)); - return hotspot.DisconnectWifiHotspot(); + // return hotspot.DisconnectWifiHotspot(); + return false; } } // namespace linux