Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2014 22:43:39 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264843 - head/sys/net80211
Message-ID:  <201404232243.s3NMhddw081236@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Apr 23 22:43:39 2014
New Revision: 264843
URL: http://svnweb.freebsd.org/changeset/base/264843

Log:
  Allow the state of the interface to be "up" if the VAP is in SLEEP state.
  
  Without this, the carrier will drop when the NIC transitions to SLEEP
  and nothing will ever transmit.

Modified:
  head/sys/net80211/ieee80211.c

Modified: head/sys/net80211/ieee80211.c
==============================================================================
--- head/sys/net80211/ieee80211.c	Wed Apr 23 22:13:10 2014	(r264842)
+++ head/sys/net80211/ieee80211.c	Wed Apr 23 22:43:39 2014	(r264843)
@@ -1408,7 +1408,8 @@ ieee80211_media_status(struct ifnet *ifp
 	 * rate only when running; otherwise we may have a mismatch
 	 * in which case the rate will not be convertible.
 	 */
-	if (vap->iv_state == IEEE80211_S_RUN) {
+	if (vap->iv_state == IEEE80211_S_RUN ||
+	    vap->iv_state == IEEE80211_S_SLEEP) {
 		imr->ifm_status |= IFM_ACTIVE;
 		mode = ieee80211_chan2mode(ic->ic_curchan);
 	} else



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