madwifi: add a patch for detecting vendor / device name information (only implemented...
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 378-adhoc_crash_fix.patch
1 --- a/net80211/ieee80211_input.c
2 +++ b/net80211/ieee80211_input.c
3 @@ -3530,6 +3530,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.