summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-08-24 00:33:25 +0000
committeradrian <adrian@FreeBSD.org>2012-08-24 00:33:25 +0000
commit6b7bb57cfbc27d7d70ade6f8183a3be5f9d2f75e (patch)
treea2165e26afc6bb414f20ce1ec4d7a78e0bdf2f1b /sys/dev
parent4709a31eb6a346214fc414c36d8156d282302220 (diff)
downloadFreeBSD-src-6b7bb57cfbc27d7d70ade6f8183a3be5f9d2f75e.zip
FreeBSD-src-6b7bb57cfbc27d7d70ade6f8183a3be5f9d2f75e.tar.gz
Add the MFP capability to ath_hal_getcapability().
Obtained from: Qualcomm Atheros
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/ath_hal/ah.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c
index a84dac7..f10c2a0 100644
--- a/sys/dev/ath/ath_hal/ah.c
+++ b/sys/dev/ath/ath_hal/ah.c
@@ -718,7 +718,9 @@ ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type,
return pCap->halHasBBReadWar? HAL_OK : HAL_ENOTSUPP;
case HAL_CAP_SERIALISE_WAR: /* PCI register serialisation */
return pCap->halSerialiseRegWar ? HAL_OK : HAL_ENOTSUPP;
-
+ case HAL_CAP_MFP: /* Management frame protection setting */
+ *result = pCap->halMfpSupport;
+ return HAL_OK;
default:
return HAL_EINVAL;
}
OpenPOWER on IntegriCloud