diff options
author | adrian <adrian@FreeBSD.org> | 2013-06-04 02:56:56 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-06-04 02:56:56 +0000 |
commit | 1110d62208360bbc03f7dc79c457de81a9e49f4c (patch) | |
tree | 6757ae1290013454eda20d572a55c9186ef9e31f | |
parent | 7aa1cb1ddb92843494e5c528fd6817ae74f977e4 (diff) | |
download | FreeBSD-src-1110d62208360bbc03f7dc79c457de81a9e49f4c.zip FreeBSD-src-1110d62208360bbc03f7dc79c457de81a9e49f4c.tar.gz |
Add the combined (mixed) diversity support capability bit for the
AR9285/AR9485.
-rw-r--r-- | sys/dev/ath/ath_hal/ah.c | 3 | ||||
-rw-r--r-- | sys/dev/ath/ath_hal/ah.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c index 574e46c..c7840c6 100644 --- a/sys/dev/ath/ath_hal/ah.c +++ b/sys/dev/ath/ath_hal/ah.c @@ -748,6 +748,9 @@ ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, case HAL_CAP_RXTSTAMP_PREC: /* rx desc tstamp precision (bits) */ *result = pCap->halTstampPrecision; return HAL_OK; + case HAL_CAP_ANT_DIV_COMB: /* AR9285/AR9485 LNA diversity */ + return pCap->halAntDivCombSupport ? HAL_OK : HAL_ENOTSUPP; + case HAL_CAP_ENHANCED_DFS_SUPPORT: return pCap->halEnhancedDfsSupport ? HAL_OK : HAL_ENOTSUPP; diff --git a/sys/dev/ath/ath_hal/ah.h b/sys/dev/ath/ath_hal/ah.h index 1d29e41..842b658 100644 --- a/sys/dev/ath/ath_hal/ah.h +++ b/sys/dev/ath/ath_hal/ah.h @@ -169,6 +169,7 @@ typedef enum { HAL_CAP_RXTSTAMP_PREC = 100, /* rx desc tstamp precision (bits) */ + HAL_CAP_ANT_DIV_COMB = 105, /* Enable antenna diversity/combining */ HAL_CAP_PHYRESTART_CLR_WAR = 106, /* in some cases, clear phy restart to fix bb hang */ HAL_CAP_ENTERPRISE_MODE = 107, /* Enterprise mode features */ HAL_CAP_LDPCWAR = 108, |