svn commit: r191955 - head/sys/net80211
Andrew Thompson
thompsa at FreeBSD.org
Sun May 10 02:21:20 UTC 2009
Author: thompsa
Date: Sun May 10 02:21:19 2009
New Revision: 191955
URL: http://svn.freebsd.org/changeset/base/191955
Log:
Cancel the scan when going to INIT state. Should do this for other states here
too as once the protocol newstate handler runs the scan has always ended.
Modified:
head/sys/net80211/ieee80211_proto.c
Modified: head/sys/net80211/ieee80211_proto.c
==============================================================================
--- head/sys/net80211/ieee80211_proto.c Sun May 10 00:00:25 2009 (r191954)
+++ head/sys/net80211/ieee80211_proto.c Sun May 10 02:21:19 2009 (r191955)
@@ -1834,6 +1834,8 @@ ieee80211_new_state_locked(struct ieee80
}
break;
case IEEE80211_S_INIT:
+ /* cancel any scan in progress */
+ ieee80211_cancel_scan(vap);
if (ostate == IEEE80211_S_INIT ) {
/* XXX don't believe this */
/* INIT -> INIT. nothing to do */
More information about the svn-src-all
mailing list