企业WiFi自动回连问题

This commit is contained in:
zhangyuanyuan1 2023-02-27 11:00:38 +08:00
parent 48eb9a9501
commit 953a98b0ff
3 changed files with 8 additions and 1 deletions

View File

@ -239,7 +239,7 @@ void EnterpriseWlanDialog::onBtnConnectClicked()
KyWirelessConnectSetting connetSetting; KyWirelessConnectSetting connetSetting;
connetSetting.setConnectName(m_wirelessNetItem.m_NetSsid); connetSetting.setConnectName(m_wirelessNetItem.m_NetSsid);
connetSetting.setIfaceName(m_deviceName); connetSetting.setIfaceName(m_deviceName);
// connetSetting.isAutoConnect = true; //ZJP_TODO 自动连接选项 connetSetting.isAutoConnect = m_securityPage->getAutoConnectState(); //ZJP_TODO 自动连接选项
connetSetting.m_type = KyKeyMgmt::WpaEap; connetSetting.m_type = KyKeyMgmt::WpaEap;
connetSetting.m_ssid = m_wirelessNetItem.m_NetSsid; connetSetting.m_ssid = m_wirelessNetItem.m_NetSsid;
connetSetting.m_secretFlag = 0; connetSetting.m_secretFlag = 0;

View File

@ -467,6 +467,12 @@ void SecurityPage::getSecuType(KySecuType &secuType, KyEapMethodType &enterprise
enterpriseType = (KyEapMethodType)eapTypeCombox->currentData().toInt(); enterpriseType = (KyEapMethodType)eapTypeCombox->currentData().toInt();
} }
bool SecurityPage::getAutoConnectState()
{
bool state = m_rememberCheckBox->isChecked();
return state;
}
bool SecurityPage::checkIsChanged(const ConInfo info) bool SecurityPage::checkIsChanged(const ConInfo info)
{ {
if (info.secType != secuTypeCombox->currentData().toInt()) { if (info.secType != secuTypeCombox->currentData().toInt()) {

View File

@ -54,6 +54,7 @@ public:
void updateTtlsChange(KyEapMethodTtlsInfo &info); void updateTtlsChange(KyEapMethodTtlsInfo &info);
void getSecuType(KySecuType &secuType, KyEapMethodType &enterpriseType); void getSecuType(KySecuType &secuType, KyEapMethodType &enterpriseType);
bool getAutoConnectState();
private: private:
bool isDetailPage; bool isDetailPage;