Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e374055a authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

mac80211: Reset assoc_scan_tries after an unsuccessful scan run



Trying to associate with a non-existent SSID stops the
state machine after the first run. Subsequent association
requests fail to start the scan engine. Fix this by resetting
assoc_scan_tries to zero after completing a scan run.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7519a8f0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2415,9 +2415,11 @@ static int ieee80211_sta_config_auth(struct ieee80211_sub_if_data *sdata,
							 ifsta->ssid_len);
			ifsta->state = IEEE80211_STA_MLME_AUTHENTICATE;
			set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request);
		} else
		} else {
			ifsta->assoc_scan_tries = 0;
			ifsta->state = IEEE80211_STA_MLME_DISABLED;
		}
	}
	return -1;
}