diff options
author | adrian <adrian@FreeBSD.org> | 2013-05-21 05:51:49 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-05-21 05:51:49 +0000 |
commit | 21bb6754190945112a9ef62a461ca9cde0163af9 (patch) | |
tree | 85d5a85473655da483cc1cc73c36500078893c87 /sys/dev | |
parent | 65b2bbd1ff199671c94b2cda153da397c3ccf21b (diff) | |
download | FreeBSD-src-21bb6754190945112a9ef62a461ca9cde0163af9.zip FreeBSD-src-21bb6754190945112a9ef62a461ca9cde0163af9.tar.gz |
Extend the TXOP enforce capability to support checking whether it's
supported.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5416/ar5416_misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c b/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c index 6f47c5c..66f1d62 100644 --- a/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c +++ b/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c @@ -466,6 +466,10 @@ ar5416GetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, case HAL_CAP_DIVERSITY: /* disable classic fast diversity */ return HAL_ENXIO; case HAL_CAP_ENFORCE_TXOP: + if (capability == 0) + return (HAL_OK); + if (capability != 1) + return (HAL_ENOTSUPP); (*result) = !! (AH5212(ah)->ah_miscMode & AR_PCU_TXOP_TBTT_LIMIT_ENA); return (HAL_OK); @@ -499,6 +503,8 @@ ar5416SetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, pCap->halTxStreams = 1; return AH_TRUE; case HAL_CAP_ENFORCE_TXOP: + if (capability != 1) + return (HAL_ENOTSUPP); if (setting) { AH5212(ah)->ah_miscMode |= AR_PCU_TXOP_TBTT_LIMIT_ENA; |