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

Commit b9bf1e60 authored by John W. Linville's avatar John W. Linville
Browse files

[PATCH] mac80211: probe for hidden SSIDs in pre-auth scan



Probe for hidden SSIDs if initiating pre-authentication scan and SSID
is set for STA interface.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7b7ed879
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -2154,7 +2154,11 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
		return 0;
		return 0;
	} else {
	} else {
		if (ifsta->state != IEEE80211_AUTHENTICATE) {
		if (ifsta->state != IEEE80211_AUTHENTICATE) {
			if (ifsta->auto_ssid_sel)
				ieee80211_sta_start_scan(dev, NULL, 0);
				ieee80211_sta_start_scan(dev, NULL, 0);
			else
				ieee80211_sta_start_scan(dev, ifsta->ssid,
							 ifsta->ssid_len);
			ifsta->state = IEEE80211_AUTHENTICATE;
			ifsta->state = IEEE80211_AUTHENTICATE;
			set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request);
			set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request);
		} else
		} else