From 4c371d749aab6b024db84dda4bcb9d142108ca8c Mon Sep 17 00:00:00 2001 From: jzxc95 <907297917@qq.com> Date: Tue, 28 Sep 2021 17:12:03 +0800 Subject: [PATCH] hotpot should not reconnnect --- src/backend/dbus-interface/kywirelessconnectoperation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/dbus-interface/kywirelessconnectoperation.cpp b/src/backend/dbus-interface/kywirelessconnectoperation.cpp index 82d66dbc..51569465 100644 --- a/src/backend/dbus-interface/kywirelessconnectoperation.cpp +++ b/src/backend/dbus-interface/kywirelessconnectoperation.cpp @@ -690,7 +690,7 @@ NetworkManager::ConnectionSettings::Ptr NetworkManager::ConnectionSettings::Ptr(new NetworkManager::ConnectionSettings(NetworkManager::ConnectionSettings::Wireless)); connectionSettings->setId(apSsid); connectionSettings->setUuid(NetworkManager::ConnectionSettings::createNewUuid()); - connectionSettings->setAutoconnect(true); + connectionSettings->setAutoconnect(false); connectionSettings->setAutoconnectPriority(0); connectionSettings->setInterfaceName(apDevice); //Note: workaround for wrongly (randomly) initialized gateway-ping-timeout @@ -731,6 +731,7 @@ void KyWirelessConnectOperation::updateWirelessApSetting( NetworkManager::ConnectionSettings::Ptr apConnectSettingPtr = apConnectPtr->settings(); apConnectSettingPtr->setId(apName); apConnectSettingPtr->setInterfaceName(apDevice); + apConnectSettingPtr->setAutoconnect(false); NetworkManager::WirelessSetting::Ptr wirelessSetting = apConnectSettingPtr->setting(NetworkManager::Setting::Wireless).dynamicCast();