fix(hotspot):无线网卡热点能力判断修改(#195043)

This commit is contained in:
jzxc95 2023-09-26 16:01:46 +08:00
parent 2061a0a35e
commit 890e3ca577
2 changed files with 5 additions and 1 deletions

View File

@ -453,7 +453,7 @@ int KyNetworkDeviceResourse::getWirelessDeviceCapability(const QString deviceNam
qobject_cast<NetworkManager::WirelessDevice *>(connectDevice.data());
int cap = 0x00;
if (wirelessDevicePtr->wirelessCapabilities() & NetworkManager::WirelessDevice::AdhocCap) {
if (wirelessDevicePtr->wirelessCapabilities() & NetworkManager::WirelessDevice::ApCap) {
cap = cap | 0x02;
} else {
return 0x01;

View File

@ -295,6 +295,10 @@ QString KyWirelessNetResource::getDeviceIFace(NetworkManager::ActiveConnection::
NetworkManager::Device:: Ptr devicePtr =
m_networkResourceInstance->findDeviceUni(ifaceUni);
if (devicePtr.isNull()) {
return QString();
}
return devicePtr->interfaceName();
}