diff --git a/src/backend/dbus-interface/kywirelessconnectoperation.cpp b/src/backend/dbus-interface/kywirelessconnectoperation.cpp index afa8593b..aa338bb0 100644 --- a/src/backend/dbus-interface/kywirelessconnectoperation.cpp +++ b/src/backend/dbus-interface/kywirelessconnectoperation.cpp @@ -365,7 +365,9 @@ void KyWirelessConnectOperation::addAndActiveWirelessConnect(QString & devIface, NetworkManager::WirelessNetwork::Ptr wifiNet = checkWifiNetExist(connSettingInfo.m_ssid, devIface); if (!isHidden && wifiNet.isNull()) { - qDebug() << "addAndActiveWirelessConnect can not find " << connSettingInfo.m_ssid << " in " << devIface; + QString errorMessage = "the ssid " + connSettingInfo.m_ssid + " is not exsit in " + devIface; + qWarning()< list; - list.append(NetworkManager::Security8021xSetting::EapMethod::EapMethodTls); - setting->setEapMethods(list); - setting->setIdentity(info.identity); - if(!info.domain.isEmpty()) { - setting->setDomainSuffixMatch(info.domain); - } - setting->setCaPath(info.caCertPath); - setting->setClientCertificate(info.clientCertPath.toLocal8Bit()); - setting->setPrivateKey(info.clientPrivateKey.toLocal8Bit()); - setting->setPrivateKeyPassword(info.clientPrivateKeyPWD); + info.identity = setting->identity(); + info.domain = setting->domainSuffixMatch(); - conn->update(conn->settings()->toMap()); + info.caCertPath = setting->caPath(); + info.clientCertPath = setting->clientCertificate(); + info.clientPrivateKey = QString(setting->privateKey()); + info.clientPrivateKeyPWD = setting->privateKeyPassword(); return true; }