svn commit: r310529 - head/sys/net80211
Andriy Voskoboinyk
avos at FreeBSD.org
Sat Dec 24 23:43:15 UTC 2016
Author: avos
Date: Sat Dec 24 23:43:14 2016
New Revision: 310529
URL: https://svnweb.freebsd.org/changeset/base/310529
Log:
net80211: fix 'pending CAC -> RUN transition lost' bug.
Ensure that CAC -> RUN state transition will be requested
for every vap only once.
Modified:
head/sys/net80211/ieee80211_proto.c
Modified: head/sys/net80211/ieee80211_proto.c
==============================================================================
--- head/sys/net80211/ieee80211_proto.c Sat Dec 24 23:29:50 2016 (r310528)
+++ head/sys/net80211/ieee80211_proto.c Sat Dec 24 23:43:14 2016 (r310529)
@@ -1840,7 +1840,7 @@ ieee80211_cac_completeswitch(struct ieee
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);
}
More information about the svn-src-all
mailing list