diff --git a/src/backthread.cpp b/src/backthread.cpp index 93892192..1c534966 100644 --- a/src/backthread.cpp +++ b/src/backthread.cpp @@ -405,12 +405,11 @@ void BackThread::execConnWifi(QString connName, QString connIfName) QString wifiUuid = objBackThreadDBus.checkHasWifiConfigFile(connName); if (!wifiUuid.isEmpty()) { //有配置文件 - qDebug() << "-------------------------> 000000002 " << wifiUuid; + //qDebug() << "-------------------------> wifiUuid = " << wifiUuid; cmdStr = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli connection up '" + wifiUuid + "'\n"; - //cmdStr = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli connection up '" + wifiUuid + "' ifname '" + connIfName + "'\n"; } else { //没有配置文件 - qDebug() << "-------------------------> 000000003" << connName; + //qDebug() << "-------------------------> connName = " << connName; cmdStr = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli connection up '" + connName + "' ifname '" + connIfName + "'\n"; } diff --git a/src/kylin-dbus-interface.cpp b/src/kylin-dbus-interface.cpp index a2204e69..810614d5 100644 --- a/src/kylin-dbus-interface.cpp +++ b/src/kylin-dbus-interface.cpp @@ -859,8 +859,9 @@ QString KylinDBus::checkHasWifiConfigFile(QString wifiName) dbusArg1st >> map; if (map.value("connection").value("type").toString() == "802-11-wireless") { - if (map.value("connection").value("id").toString().indexOf(wifiName) != -1) { - qDebug() << "-------------------------> wifi id : " < wifi ssid : " < wifi id : " <