networking: remove invalid connections (#21614)

old-commit-hash: 0eefdb506e
commatwo_master
sshane 4 years ago committed by GitHub
parent 32d1fbed4b
commit 454cdf2d25
  1. 2
      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 = "";

Loading…
Cancel
Save