svn commit: r297162 - head/sys/net80211

Andriy Voskoboinyk avos at FreeBSD.org
Mon Mar 21 20:39:47 UTC 2016


Author: avos
Date: Mon Mar 21 20:39:45 2016
New Revision: 297162
URL: https://svnweb.freebsd.org/changeset/base/297162

Log:
  net80211: add missing SLEEP -> AUTH state transition for station mode.
  
  Reviewed by:	adrian
  Differential Revision:	https://reviews.freebsd.org/D5269

Modified:
  head/sys/net80211/ieee80211_sta.c

Modified: head/sys/net80211/ieee80211_sta.c
==============================================================================
--- head/sys/net80211/ieee80211_sta.c	Mon Mar 21 20:29:53 2016	(r297161)
+++ head/sys/net80211/ieee80211_sta.c	Mon Mar 21 20:39:45 2016	(r297162)
@@ -341,12 +341,13 @@ sta_newstate(struct ieee80211vap *vap, e
 				break;
 			}
 			break;
+		case IEEE80211_S_SLEEP:
 		case IEEE80211_S_RUN:
 			switch (arg & 0xff) {
 			case IEEE80211_FC0_SUBTYPE_AUTH:
 				IEEE80211_SEND_MGMT(ni,
 				    IEEE80211_FC0_SUBTYPE_AUTH, 2);
-				vap->iv_state = ostate;	/* stay RUN */
+				vap->iv_state = IEEE80211_S_RUN; /* stay RUN */
 				break;
 			case IEEE80211_FC0_SUBTYPE_DEAUTH:
 				ieee80211_sta_leave(ni);


More information about the svn-src-head mailing list