freebsd_wlan: Reinstate the IEEE80211_SCAN_NOJOIN flag set.
It was accidentally lost in e67600e2a4.
(cherry picked from commit 9f618d40ff38a8128d4b621d1923cb0882503474)
Change-Id: I6ba6acfb1f25825d630e700828af3f6910f23ae5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11494
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
a7b8bf7b99
commit
1f47d9a206
@@ -389,6 +389,15 @@ ieee80211_check_scan(struct ieee80211vap *vap, int flags,
|
|||||||
flags |= IEEE80211_SCAN_FLUSH;
|
flags |= IEEE80211_SCAN_FLUSH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
/* We never want to join if not explicitly looking for an SSID */
|
||||||
|
if (nssid == 0 && (flags & IEEE80211_SCAN_NOJOIN) == 0) {
|
||||||
|
IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
|
||||||
|
"%s: setting nojoin due to no configured ssid\n", __func__);
|
||||||
|
flags |= IEEE80211_SCAN_NOJOIN;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XXX TODO: separate things out a bit better.
|
* XXX TODO: separate things out a bit better.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user