From owner-svn-src-head@FreeBSD.ORG Wed Apr 23 22:43:39 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD7AB6B9; Wed, 23 Apr 2014 22:43:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA5DA11DB; Wed, 23 Apr 2014 22:43:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3NMhdpq081237; Wed, 23 Apr 2014 22:43:39 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3NMhddw081236; Wed, 23 Apr 2014 22:43:39 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201404232243.s3NMhddw081236@svn.freebsd.org> From: Adrian Chadd Date: Wed, 23 Apr 2014 22:43:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264843 - head/sys/net80211 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 22:43:39 -0000 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