Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 2009 02:21:19 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191955 - head/sys/net80211
Message-ID:  <200905100221.n4A2LJkg040525@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905100221.n4A2LJkg040525>