net80211: fix 'pending CAC -> RUN transition lost' bug.
Ensure that CAC -> RUN state transition will be requested for every vap only once.
This commit is contained in:
parent
77e315c975
commit
e0625c4c1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310529
@ -1840,7 +1840,7 @@ ieee80211_cac_completeswitch(struct ieee80211vap *vap0)
|
||||
ieee80211_new_state_locked(vap0, IEEE80211_S_RUN, 0);
|
||||
|
||||
TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next)
|
||||
if (vap->iv_state == IEEE80211_S_CAC)
|
||||
if (vap->iv_state == IEEE80211_S_CAC && vap != vap0)
|
||||
ieee80211_new_state_locked(vap, IEEE80211_S_RUN, 0);
|
||||
IEEE80211_UNLOCK(ic);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user