X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=ath%2Fif_ath_hal_wrappers.h;h=c8b02d8aab9c51425b838cd8201671f64ee85009;hb=c0c7d05e2ff56f9b04d1aeb960f953f71448be5f;hp=741d72ee7434b269ec9552c5f8a8d0da5e35e14b;hpb=2c0d8db912df58c3a1b506e144e2b5d72edec617;p=madwifi%2F.git diff --git a/ath/if_ath_hal_wrappers.h b/ath/if_ath_hal_wrappers.h index 741d72e..c8b02d8 100644 --- a/ath/if_ath_hal_wrappers.h +++ b/ath/if_ath_hal_wrappers.h @@ -271,4 +271,19 @@ static inline HAL_BOOL ath_hal_xrsupported(struct ath_hal *ah) return ath_hal_getcapability(ah, HAL_CAP_XR, 0, NULL) == HAL_OK; } +static inline HAL_BOOL ath_hal_hasintmit(struct ath_hal *ah) +{ + return (ath_hal_getcapability(ah, HAL_CAP_INTMIT, 0, NULL) == HAL_OK); +} + +static inline HAL_BOOL ath_hal_getintmit(struct ath_hal *ah, u_int32_t *dst) +{ + return (ath_hal_getcapability(ah, HAL_CAP_INTMIT, 1, dst) == HAL_OK); +} + +static inline HAL_BOOL ath_hal_setintmit(struct ath_hal *ah, u_int32_t v) +{ + return (ath_hal_setcapability(ah, HAL_CAP_INTMIT, 1, v, NULL) == HAL_OK); +} + #endif /* #ifndef _IF_ATH_HAL_WRAPPERS_H_ */