summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/451-ibss_race_fix.patch
blob: c63901d9e89a5d20035aa9a028c6166d1eb62e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;