e8b4c22b648965b740330377017d91032eb00eef
[openwrt/openwrt.git] / package / madwifi / patches / 378-adhoc_crash_fix.patch
1 --- a/net80211/ieee80211_input.c
2 +++ b/net80211/ieee80211_input.c
3 @@ -3522,6 +3522,11 @@
4 if (ic->ic_flags & IEEE80211_F_SCAN) {
5 ieee80211_add_scan(vap, &scan, wh, subtype, rssi, rtsf);
6 }
7 +
8 + /* stop processing if the bss channel is not set up yet */
9 + if (!ic->ic_bsschan || ic->ic_bsschan == IEEE80211_CHAN_ANYC)
10 + break;
11 +
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.