mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 16:32:06 +08:00
Fix logging unsupported empty ssid networks
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user