Fix logging unsupported empty ssid networks

This commit is contained in:
ShaneSmiskol
2021-06-30 17:28:06 -07:00
parent 4000d4a8d2
commit a680d0cea1
+4 -4
View File
@@ -164,6 +164,9 @@ QList<Network> WifiManager::get_networks() {
args >> path;
QByteArray ssid = get_property(path.path(), "Ssid");
if (ssid.isEmpty()) {
continue;
}
unsigned int strength = get_ap_strength(path.path());
SecurityType security = getSecurityType(path.path());
ConnectedType ctype;
@@ -177,10 +180,7 @@ QList<Network> WifiManager::get_networks() {
}
}
Network network = {path.path(), ssid, strength, ctype, security};
if (ssid.length()) {
r.push_back(network);
}
r.push_back(network);
}
args.endArray();