From 454cdf2d25cddadd8b299c544fab44d9f065b503 Mon Sep 17 00:00:00 2001 From: sshane Date: Thu, 15 Jul 2021 15:02:30 -0700 Subject: [PATCH] networking: remove invalid connections (#21614) old-commit-hash: 0eefdb506e992aecd0d931139c68138725df3eb6 --- selfdrive/ui/qt/offroad/wifiManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/offroad/wifiManager.cc b/selfdrive/ui/qt/offroad/wifiManager.cc index 06a51990b2..36ff253954 100644 --- a/selfdrive/ui/qt/offroad/wifiManager.cc +++ b/selfdrive/ui/qt/offroad/wifiManager.cc @@ -305,7 +305,7 @@ QString WifiManager::getAdapter() { void WifiManager::stateChange(unsigned int new_state, unsigned int previous_state, unsigned int change_reason) { raw_adapter_state = new_state; if (new_state == NM_DEVICE_STATE_NEED_AUTH && change_reason == NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT) { - knownConnections.remove(getConnectionPath(connecting_to_network)); + forgetConnection(connecting_to_network); emit wrongPassword(connecting_to_network); } else if (new_state == NM_DEVICE_STATE_ACTIVATED) { connecting_to_network = "";