remove ar5416ResetTsf
[open-ath9k-htc-firmware.git] / target_firmware / wlan / ar5416_hw.c
index c58aac91983906a2b9cb312d978403764f33beda..c3e08ea609cded18744223b8c018c97a7d67aa3c 100644 (file)
@@ -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 */
 /******/