svn commit: r264843 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Wed Apr 23 22:43:39 UTC 2014
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
More information about the svn-src-all
mailing list