Extend the TXOP enforce capability to support checking whether it's

supported.
This commit is contained in:
Adrian Chadd 2013-05-21 05:51:49 +00:00
parent cb34ed4434
commit 38aa9f3688
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250841

View File

@ -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;