From 75a4b6f1d7a560979f12f7a95e6b83a63a707363 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 14 Oct 2009 08:29:46 +0000 Subject: madwifi: fix race condition on ibss init (#5935) SVN-Revision: 18046 --- package/madwifi/patches/451-ibss_race_fix.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/madwifi/patches/451-ibss_race_fix.patch (limited to 'package/madwifi/patches') 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 0000000..c63901d --- /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; -- cgit v1.1