aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-14 08:29:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-14 08:29:46 +0000
commitd45237dcd14133d709c4848857b18e623e9b2751 (patch)
tree1d0ec0731954c62a68afceb00744de18c5e43d93
parent20a9691a9e077665e9803ccbf9a6658ef9264fca (diff)
downloadmaster-187ad058-d45237dcd14133d709c4848857b18e623e9b2751.tar.gz
master-187ad058-d45237dcd14133d709c4848857b18e623e9b2751.tar.bz2
master-187ad058-d45237dcd14133d709c4848857b18e623e9b2751.zip
madwifi: fix race condition on ibss init (#5935)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18046 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/madwifi/patches/451-ibss_race_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/madwifi/patches/451-ibss_race_fix.patch b/package/madwifi/patches/451-ibss_race_fix.patch
new file mode 100644
index 0000000000..c63901d9e8
--- /dev/null
+++ b/package/madwifi/patches/451-ibss_race_fix.patch
@@ -0,0 +1,12 @@
+--- a/net80211/ieee80211_input.c
++++ b/net80211/ieee80211_input.c
+@@ -3573,6 +3573,9 @@ ieee80211_recv_mgmt(struct ieee80211vap
+ found = 1;
+ ni = ni_or_null = vap->iv_wdsnode;
+ } else if (vap->iv_opmode == IEEE80211_M_IBSS) {
++ if (vap->iv_state != IEEE80211_S_RUN)
++ break;
++
+ ni_or_null = ieee80211_find_node(&ic->ic_sta, wh->i_addr2);
+ if (ni_or_null)
+ ni = ni_or_null;