diff options
author | sam <sam@FreeBSD.org> | 2009-06-27 20:06:56 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-06-27 20:06:56 +0000 |
commit | 6c6387b0e87b31a0793232918daa3bcaeddd3482 (patch) | |
tree | 25b459afed5e852eaeb9aea5f1aab43bc321c461 /sys/dev/ath/ath_hal/ah.c | |
parent | 053703e8be8764474fabc397d09fab1b408e36b1 (diff) | |
download | FreeBSD-src-6c6387b0e87b31a0793232918daa3bcaeddd3482.zip FreeBSD-src-6c6387b0e87b31a0793232918daa3bcaeddd3482.tar.gz |
Add HAL_RX_FILTER_BSSID support (to disable bssid match):
o add HAL_CAP_BSSIDMATCH to identify parts that have the support for
disabling bssid match
o honor capability for set/get rx filter
o use HAL_CAP_BSSIDMATCH in driver to decide whether to use the bssid
match disable or fall back to promisc mode
Reviewed by: rpaulo
Approved by: re (rwatson)
Diffstat (limited to 'sys/dev/ath/ath_hal/ah.c')
-rw-r--r-- | sys/dev/ath/ath_hal/ah.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c index 616e19b..cff9613 100644 --- a/sys/dev/ath/ath_hal/ah.c +++ b/sys/dev/ath/ath_hal/ah.c @@ -503,6 +503,8 @@ ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, case HAL_CAP_INTRMASK: /* mask of supported interrupts */ *result = pCap->halIntrMask; return HAL_OK; + case HAL_CAP_BSSIDMATCH: /* hardware has disable bssid match */ + return pCap->halBssidMatchSupport ? HAL_OK : HAL_ENOTSUPP; default: return HAL_EINVAL; } |