From owner-svn-src-all@FreeBSD.ORG Thu Apr 24 23:10:24 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C53AE33C; Thu, 24 Apr 2014 23:10:24 +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 B29351B9D; Thu, 24 Apr 2014 23:10:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3ONAObG088936; Thu, 24 Apr 2014 23:10:24 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3ONAO5o088935; Thu, 24 Apr 2014 23:10:24 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201404242310.s3ONAO5o088935@svn.freebsd.org> From: Adrian Chadd Date: Thu, 24 Apr 2014 23:10:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264898 - head/sys/dev/ath/ath_hal/ar5210 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.17 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: Thu, 24 Apr 2014 23:10:24 -0000 Author: adrian Date: Thu Apr 24 23:10:24 2014 New Revision: 264898 URL: http://svnweb.freebsd.org/changeset/base/264898 Log: Fix ah_powerMode to be set at the correct place for the AR5210. Tested: * AR5210, STA mode Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c Thu Apr 24 22:28:53 2014 (r264897) +++ head/sys/dev/ath/ath_hal/ar5210/ar5210_power.c Thu Apr 24 23:10:24 2014 (r264898) @@ -108,21 +108,23 @@ ar5210SetPowerMode(struct ath_hal *ah, H setChip ? "set chip " : ""); switch (mode) { case HAL_PM_AWAKE: + ah->ah_powerMode = mode; status = ar5210SetPowerModeAwake(ah, setChip); break; case HAL_PM_FULL_SLEEP: ar5210SetPowerModeSleep(ah, setChip); + ah->ah_powerMode = mode; break; case HAL_PM_NETWORK_SLEEP: ar5210SetPowerModeAuto(ah, setChip); + ah->ah_powerMode = mode; break; default: HALDEBUG(ah, HAL_DEBUG_ANY, "%s: unknown power mode %u\n", __func__, mode); return AH_FALSE; } - ah->ah_powerMode = mode; - return status; + return status; } HAL_POWER_MODE