From owner-svn-src-all@FreeBSD.ORG Mon May 5 17:06:40 2014 Return-Path: Delivered-To: svn-src-all@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 A7DEC9D9; Mon, 5 May 2014 17:06:40 +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 95B4C680; Mon, 5 May 2014 17:06:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s45H6eMj096691; Mon, 5 May 2014 17:06:40 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s45H6emW096690; Mon, 5 May 2014 17:06:40 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201405051706.s45H6emW096690@svn.freebsd.org> From: Adrian Chadd Date: Mon, 5 May 2014 17:06:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265370 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 17:06:40 -0000 Author: adrian Date: Mon May 5 17:06:40 2014 New Revision: 265370 URL: http://svnweb.freebsd.org/changeset/base/265370 Log: Wake up the hardware before calling ath_mode_init() in the ioctl() path. Tested: * AR5416, STA + powersave Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Mon May 5 17:00:17 2014 (r265369) +++ head/sys/dev/ath/if_ath.c Mon May 5 17:06:40 2014 (r265370) @@ -6504,7 +6504,9 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, * only reflect promisc mode settings. */ ATH_LOCK(sc); + ath_power_set_power_state(sc, HAL_PM_AWAKE); ath_mode_init(sc); + ath_power_restore_power_state(sc); ATH_UNLOCK(sc); } else if (ifp->if_flags & IFF_UP) { /*