From: Oleksij Rempel Date: Sat, 11 May 2013 08:42:01 +0000 (+0200) Subject: remove ar5416ResetTsf X-Git-Tag: 1.4.0~12^2^2~56 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=bb1f84d183bf0e207c69359b7c62d5c0fb04a689;p=open-ath9k-htc-firmware.git remove ar5416ResetTsf Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ah.h b/target_firmware/wlan/ah.h index 6694d76..0633382 100755 --- a/target_firmware/wlan/ah.h +++ b/target_firmware/wlan/ah.h @@ -442,7 +442,6 @@ struct ath_hal 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*); diff --git a/target_firmware/wlan/ar5416_hw.c b/target_firmware/wlan/ar5416_hw.c index c58aac9..c3e08ea 100644 --- a/target_firmware/wlan/ar5416_hw.c +++ b/target_firmware/wlan/ar5416_hw.c @@ -66,7 +66,6 @@ static const struct ath_hal_private ar5416hal_10 = {{ /* Misc Functions */ .ah_getTsf64 = ar5416GetTsf64, - .ah_resetTsf = ar5416ResetTsf, .ah_setRxFilter = ar5416SetRxFilter, /* RX Functions */ @@ -298,22 +297,6 @@ u_int64_t ar5416GetTsf64(struct ath_hal *ah) 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 */ /******/