From owner-svn-src-head@freebsd.org Thu Feb 9 23:20:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1C7DCD8CEF; Thu, 9 Feb 2017 23:20:56 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 B2BC475F; Thu, 9 Feb 2017 23:20:56 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v19NKti4020774; Thu, 9 Feb 2017 23:20:55 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v19NKtHi020768; Thu, 9 Feb 2017 23:20:55 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201702092320.v19NKtHi020768@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Thu, 9 Feb 2017 23:20:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313491 - in head/sys/dev/ath/ath_hal: ar5210 ar5211 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.23 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: Thu, 09 Feb 2017 23:20:57 -0000 Author: adrian Date: Thu Feb 9 23:20:55 2017 New Revision: 313491 URL: https://svnweb.freebsd.org/changeset/base/313491 Log: [ath_hal] implement NULL methods for ah_setQuiet for AR5210, AR5211. Tested: * "crap, I didn't bring my cardbus collection and T400 with me" compile tested. Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210.h head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c head/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c head/sys/dev/ath/ath_hal/ar5211/ar5211.h head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c head/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210.h ============================================================================== --- head/sys/dev/ath/ath_hal/ar5210/ar5210.h Thu Feb 9 23:15:11 2017 (r313490) +++ head/sys/dev/ath/ath_hal/ar5210/ar5210.h Thu Feb 9 23:20:55 2017 (r313491) @@ -251,6 +251,8 @@ extern HAL_BOOL ar5210SetCTSTimeout(stru extern u_int ar5210GetCTSTimeout(struct ath_hal *); extern HAL_BOOL ar5210SetDecompMask(struct ath_hal *, uint16_t, int); void ar5210SetCoverageClass(struct ath_hal *, uint8_t, int); +extern HAL_STATUS ar5210SetQuiet(struct ath_hal *, uint32_t, uint32_t, + uint32_t, HAL_QUIET_FLAG); extern HAL_STATUS ar5210GetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE, uint32_t, uint32_t *); extern HAL_BOOL ar5210SetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE, Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c Thu Feb 9 23:15:11 2017 (r313490) +++ head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c Thu Feb 9 23:20:55 2017 (r313491) @@ -135,6 +135,7 @@ static const struct ath_hal_private ar52 .ah_getCTSTimeout = ar5210GetCTSTimeout, .ah_setDecompMask = ar5210SetDecompMask, .ah_setCoverageClass = ar5210SetCoverageClass, + .ah_setQuiet = ar5210SetQuiet, .ah_get11nExtBusy = ar5210Get11nExtBusy, .ah_getMibCycleCounts = ar5210GetMibCycleCounts, .ah_setChainMasks = ar5210SetChainMasks, Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c Thu Feb 9 23:15:11 2017 (r313490) +++ head/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c Thu Feb 9 23:20:55 2017 (r313491) @@ -552,6 +552,13 @@ ar5210SetCoverageClass(struct ath_hal *a { } +HAL_STATUS +ar5210SetQuiet(struct ath_hal *ah, uint32_t period, uint32_t duration, + uint32_t next_start, HAL_QUIET_FLAG flags) +{ + return HAL_OK; +} + /* * Control Adaptive Noise Immunity Parameters */ Modified: head/sys/dev/ath/ath_hal/ar5211/ar5211.h ============================================================================== --- head/sys/dev/ath/ath_hal/ar5211/ar5211.h Thu Feb 9 23:15:11 2017 (r313490) +++ head/sys/dev/ath/ath_hal/ar5211/ar5211.h Thu Feb 9 23:20:55 2017 (r313491) @@ -271,6 +271,8 @@ extern HAL_BOOL ar5211SetSifsTime(struct extern u_int ar5211GetSifsTime(struct ath_hal *); extern HAL_BOOL ar5211SetDecompMask(struct ath_hal *, uint16_t, int); extern void ar5211SetCoverageClass(struct ath_hal *, uint8_t, int); +extern HAL_STATUS ar5211SetQuiet(struct ath_hal *, uint32_t, uint32_t, + uint32_t, HAL_QUIET_FLAG); extern uint32_t ar5211GetCurRssi(struct ath_hal *); extern u_int ar5211GetDefAntenna(struct ath_hal *); extern void ar5211SetDefAntenna(struct ath_hal *ah, u_int antenna); Modified: head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c Thu Feb 9 23:15:11 2017 (r313490) +++ head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c Thu Feb 9 23:20:55 2017 (r313491) @@ -135,6 +135,7 @@ static const struct ath_hal_private ar52 .ah_getCTSTimeout = ar5211GetCTSTimeout, .ah_setDecompMask = ar5211SetDecompMask, .ah_setCoverageClass = ar5211SetCoverageClass, + .ah_setQuiet = ar5211SetQuiet, .ah_get11nExtBusy = ar5211Get11nExtBusy, .ah_getMibCycleCounts = ar5211GetMibCycleCounts, .ah_setChainMasks = ar5211SetChainMasks, Modified: head/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c Thu Feb 9 23:15:11 2017 (r313490) +++ head/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c Thu Feb 9 23:20:55 2017 (r313491) @@ -554,6 +554,13 @@ ar5211SetCoverageClass(struct ath_hal *a { } +HAL_STATUS +ar5211SetQuiet(struct ath_hal *ah, uint32_t period, uint32_t duration, + uint32_t next_start, HAL_QUIET_FLAG flags) +{ + return HAL_OK; +} + /* * Control Adaptive Noise Immunity Parameters */