remove ath_hal_setupratetable
authorOleksij Rempel <linux@rempel-privat.de>
Sat, 11 May 2013 15:00:51 +0000 (17:00 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 11 May 2013 15:00:51 +0000 (17:00 +0200)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/wlan/ah.c

index b1ead399deebcd25dc8746c53062e358c387875d..71deb5ec646eda573320ef1ab78623a2141d279c 100755 (executable)
@@ -71,29 +71,6 @@ ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type,
        }
 }
 
-void
-ath_hal_setupratetable(struct ath_hal *ah, HAL_RATE_TABLE *rt)
-{
-       a_int32_t i;
-
-       if (rt->rateCodeToIndex[0] != 0)
-               return;
-
-       for (i = 0; i < 32; i++)
-               rt->rateCodeToIndex[i] = (a_uint8_t) -1;
-       for (i = 0; i < rt->rateCount; i++) {
-               a_uint8_t code = rt->info[i].rateCode;
-               a_uint8_t cix = rt->info[i].controlRate;
-
-               rt->rateCodeToIndex[code] = i;
-               rt->rateCodeToIndex[code | rt->info[i].shortPreamble] = i;
-               rt->info[i].lpAckDuration = ath_hal_computetxtime(ah, rt,
-                                         WLAN_CTRL_FRAME_SIZE, cix, AH_FALSE);
-               rt->info[i].spAckDuration = ath_hal_computetxtime(ah, rt,
-                                         WLAN_CTRL_FRAME_SIZE, cix, AH_TRUE);
-       }
-}
-
 #define CCK_SIFS_TIME        10
 #define CCK_PREAMBLE_BITS   144
 #define CCK_PLCP_BITS        48