1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-23 11:51:05 +02:00

madwifi: fix race condition on ibss init (#5935)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18046 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-10-14 08:29:46 +00:00
parent d2478832c9
commit ba949e0f75

View File

@ -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;