1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-09 08:15:21 +02:00
openwrt-xburst/package/madwifi/patches/378-adhoc_crash_fix.patch
nbd 93f00c0eb5 madwifi patch cleanup and stability fixes
- fix a semi-random heisenbug by replacing the previous noderef fix with a simple hack that is not 100% correct, but safe.
- add ad-hoc atim fixes by bruno
- add napi polling fixes by sven-ola
- fix compile breakage with debug enabled

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12838 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-03 15:17:34 +00:00

15 lines
527 B
Diff

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