remove ar5416ResetTsf
authorOleksij Rempel <linux@rempel-privat.de>
Sat, 11 May 2013 08:42:01 +0000 (10:42 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 11 May 2013 14:10:07 +0000 (16:10 +0200)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/wlan/ah.h
target_firmware/wlan/ar5416_hw.c

index 6694d76a7207acbdff25f653999a4d86d302d149..0633382131994d7d6ad2a80d8990a1ea07828024 100755 (executable)
@@ -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*);
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 */
 /******/