From bb1f84d183bf0e207c69359b7c62d5c0fb04a689 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Sat, 11 May 2013 10:42:01 +0200 Subject: [PATCH] remove ar5416ResetTsf Signed-off-by: Oleksij Rempel --- target_firmware/wlan/ah.h | 1 - target_firmware/wlan/ar5416_hw.c | 17 ----------------- 2 files changed, 18 deletions(-) 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 */ /******/ -- 2.31.1