aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-05 20:53:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-05 20:53:39 +0000
commite137e9a74f30a341f969a750997e9a90b1aae79d (patch)
tree9fcfb3fa34878584f30afb168f36aec23de585c9 /package
parent39d1c74794c7580b93053d09ffd9dcc3a323c97f (diff)
downloadupstream-e137e9a74f30a341f969a750997e9a90b1aae79d.tar.gz
upstream-e137e9a74f30a341f969a750997e9a90b1aae79d.tar.bz2
upstream-e137e9a74f30a341f969a750997e9a90b1aae79d.zip
madwifi: fix crash on ad-hoc interface init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12161 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/378-adhoc_crash_fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/madwifi/patches/378-adhoc_crash_fix.patch b/package/madwifi/patches/378-adhoc_crash_fix.patch
new file mode 100644
index 0000000000..e8b4c22b64
--- /dev/null
+++ b/package/madwifi/patches/378-adhoc_crash_fix.patch
@@ -0,0 +1,14 @@
+--- a/net80211/ieee80211_input.c
++++ b/net80211/ieee80211_input.c
+@@ -3522,6 +3522,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.