wifi channel

This commit is contained in:
jzxc95 2021-09-02 12:14:56 +08:00
parent e9d917c90d
commit b0e51ef5af
3 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ KyWirelessNetItem::KyWirelessNetItem(NetworkManager::WirelessNetwork::Ptr net)
m_connDbusPath = "";
m_secuType = "";
m_device = "";
m_channel = 0;
init(net);
}
@ -80,6 +81,7 @@ void KyWirelessNetItem::initInfoBySsid()
m_connName = conn->name();
m_connDbusPath = conn->path();
m_isConfigured = true;
m_channel = wifi_sett->channel();
return;
}
}

View File

@ -30,6 +30,7 @@ public:
bool m_isConfigured;
QString m_connName;
QString m_connDbusPath;
uint m_channel;

View File

@ -453,6 +453,7 @@ void KyWirelessNetResource::onConnectionAdd(QString uuid)
m_WifiNetworkList[iter.key()][i].m_connName = conn->name();
m_WifiNetworkList[iter.key()][i].m_connectUuid = conn->uuid();
m_WifiNetworkList[iter.key()][i].m_connDbusPath = conn->path();
m_WifiNetworkList[iter.key()][i].m_channel = wireless_sett->channel();
devIfaceName = sett->interfaceName();
ssid = iter.value().at(i).m_NetSsid;
@ -492,6 +493,7 @@ void KyWirelessNetResource::onConnectionRemove(QString path)
m_WifiNetworkList[iter.key()][i].m_connName = "";
m_WifiNetworkList[iter.key()][i].m_connectUuid = "";
m_WifiNetworkList[iter.key()][i].m_connDbusPath = "";
m_WifiNetworkList[iter.key()][i].m_channel = 0;
devIfaceName = iter.key();
ssid = iter.value().at(i).m_NetSsid;