mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-02 13:29:30 +08:00
networking: fix connected type for multiple APs (#21678)
* nm uses ssid to dis/connect so use that for ctype
* we don't want to possibly block in the background (from signals)
old-commit-hash: 0d0c6bea72
This commit is contained in:
@@ -94,7 +94,8 @@ void WifiManager::refreshNetworks() {
|
||||
unsigned int strength = get_ap_strength(path.path());
|
||||
SecurityType security = getSecurityType(path.path());
|
||||
ConnectedType ctype;
|
||||
if (path.path() != activeAp) {
|
||||
QString activeSsid = (activeAp != "" && activeAp != "/") ? get_property(activeAp, "Ssid") : "";
|
||||
if (ssid != activeSsid) {
|
||||
ctype = ConnectedType::DISCONNECTED;
|
||||
} else {
|
||||
if (ssid == connecting_to_network) {
|
||||
|
||||
Reference in New Issue
Block a user