Date: Thu, 9 Feb 2017 23:20:55 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> 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 Message-ID: <201702092320.v19NKtHi020768@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702092320.v19NKtHi020768>