hotpot should not reconnnect

This commit is contained in:
jzxc95 2021-09-28 17:12:03 +08:00
parent 61140448e2
commit 4c371d749a
1 changed files with 2 additions and 1 deletions

View File

@ -690,7 +690,7 @@ NetworkManager::ConnectionSettings::Ptr
NetworkManager::ConnectionSettings::Ptr(new NetworkManager::ConnectionSettings(NetworkManager::ConnectionSettings::Wireless)); NetworkManager::ConnectionSettings::Ptr(new NetworkManager::ConnectionSettings(NetworkManager::ConnectionSettings::Wireless));
connectionSettings->setId(apSsid); connectionSettings->setId(apSsid);
connectionSettings->setUuid(NetworkManager::ConnectionSettings::createNewUuid()); connectionSettings->setUuid(NetworkManager::ConnectionSettings::createNewUuid());
connectionSettings->setAutoconnect(true); connectionSettings->setAutoconnect(false);
connectionSettings->setAutoconnectPriority(0); connectionSettings->setAutoconnectPriority(0);
connectionSettings->setInterfaceName(apDevice); connectionSettings->setInterfaceName(apDevice);
//Note: workaround for wrongly (randomly) initialized gateway-ping-timeout //Note: workaround for wrongly (randomly) initialized gateway-ping-timeout
@ -731,6 +731,7 @@ void KyWirelessConnectOperation::updateWirelessApSetting(
NetworkManager::ConnectionSettings::Ptr apConnectSettingPtr = apConnectPtr->settings(); NetworkManager::ConnectionSettings::Ptr apConnectSettingPtr = apConnectPtr->settings();
apConnectSettingPtr->setId(apName); apConnectSettingPtr->setId(apName);
apConnectSettingPtr->setInterfaceName(apDevice); apConnectSettingPtr->setInterfaceName(apDevice);
apConnectSettingPtr->setAutoconnect(false);
NetworkManager::WirelessSetting::Ptr wirelessSetting NetworkManager::WirelessSetting::Ptr wirelessSetting
= apConnectSettingPtr->setting(NetworkManager::Setting::Wireless).dynamicCast<NetworkManager::WirelessSetting>(); = apConnectSettingPtr->setting(NetworkManager::Setting::Wireless).dynamicCast<NetworkManager::WirelessSetting>();