1 --- a/net80211/ieee80211_input.c
2 +++ b/net80211/ieee80211_input.c
3 @@ -3528,6 +3528,11 @@ ieee80211_recv_mgmt(struct ieee80211vap
4 if (ic->ic_flags & IEEE80211_F_SCAN) {
5 ieee80211_add_scan(vap, &scan, wh, subtype, rssi, rtsf);
8 + /* stop processing if the bss channel is not set up yet */
9 + if (!ic->ic_bsschan || ic->ic_bsschan == IEEE80211_CHAN_ANYC)
12 /* NB: Behavior of WDS-Link and Ad-Hoc is very similar here:
13 * When we receive a beacon that belongs to the AP that we're
14 * connected to, use it to refresh the local node info.