fix:it can not connect successfull, when connect ap with not
password. bug link:http://172.17.66.192/biz/bug-view-81343.html
This commit is contained in:
parent
3b03be5fcc
commit
b97f0ba007
|
@ -353,7 +353,7 @@ void WlanListItem::onNetButtonClicked()
|
|||
}
|
||||
|
||||
//有配置或者无密码的wifi直接连接
|
||||
if (m_wirelessNetItem.m_isConfigured || m_hasPwd == false) {
|
||||
if (m_wirelessNetItem.m_isConfigured) {
|
||||
m_wirelessConnectOperation->activeWirelessConnect(m_wlanDevice, m_wirelessNetItem.m_connectUuid);
|
||||
qDebug()<<"[WlanListItem] Has configuration, will be activated. ssid = "
|
||||
<< m_wirelessNetItem.m_NetSsid << Q_FUNC_INFO << __LINE__;
|
||||
|
@ -436,16 +436,17 @@ void WlanListItem::onShowPwdButtonClicked()
|
|||
void WlanListItem::onConnectButtonClicked()
|
||||
{
|
||||
qDebug()<< LOG_FLAG << "onConnectButtonClicked";
|
||||
if (!m_connectButton->isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((Activating == m_connectState || Deactivating == m_connectState)) {
|
||||
qDebug() << LOG_FLAG << "On wlan clicked! But there is nothing to do because it is already activating/deactivating!"
|
||||
<< Q_FUNC_INFO << __LINE__;
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_connectButton->isVisible() && !m_connectButton->isEnabled()) {
|
||||
qWarning() << "Connect wlan failed because of null pointer or button state!" << Q_FUNC_INFO << __LINE__;
|
||||
return;
|
||||
}
|
||||
|
||||
KyWirelessConnectSetting settings;
|
||||
settings.m_connectName = m_wirelessNetItem.m_NetSsid;
|
||||
settings.m_ssid = m_wirelessNetItem.m_NetSsid;
|
||||
|
|
Loading…
Reference in New Issue