Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
a_uint32_t filter0, a_uint32_t filter1);
u_int64_t __ahdecl(*ah_getTsf64)(struct ath_hal*);
- void __ahdecl(*ah_resetTsf)(struct ath_hal*);
/* Target receive Functions */
a_uint32_t __ahdecl(*ah_getRxDP)(struct ath_hal*);
/* Misc Functions */
.ah_getTsf64 = ar5416GetTsf64,
- .ah_resetTsf = ar5416ResetTsf,
.ah_setRxFilter = ar5416SetRxFilter,
/* RX Functions */
return tsf;
}
-void ar5416ResetTsf(struct ath_hal *ah)
-{
- a_int32_t count;
-
- count = 0;
-
- while (OS_REG_READ(ah, AR_SLP32_MODE) & AR_SLP32_TSF_WRITE_STATUS) {
- count++;
- if (count > 10) {
- break;
- }
- OS_DELAY(10);
- }
- OS_REG_WRITE(ah, AR_RESET_TSF, AR_RESET_TSF_ONCE);
-}
-
/******/
/* RX */
/******/