From a680d0cea18698347e2791e2d7546e711353dc00 Mon Sep 17 00:00:00 2001 From: ShaneSmiskol Date: Wed, 30 Jun 2021 17:28:06 -0700 Subject: [PATCH] Fix logging unsupported empty ssid networks --- selfdrive/ui/qt/offroad/wifiManager.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/qt/offroad/wifiManager.cc b/selfdrive/ui/qt/offroad/wifiManager.cc index e0e488bd23..1d839c9e6f 100644 --- a/selfdrive/ui/qt/offroad/wifiManager.cc +++ b/selfdrive/ui/qt/offroad/wifiManager.cc @@ -164,6 +164,9 @@ QList 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 WifiManager::get_networks() { } } Network network = {path.path(), ssid, strength, ctype, security}; - - if (ssid.length()) { - r.push_back(network); - } + r.push_back(network); } args.endArray();