From: Oleksij Rempel Date: Sat, 11 May 2013 15:00:51 +0000 (+0200) Subject: remove ath_hal_setupratetable X-Git-Tag: 1.4.0~12^2^2~24 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=246c1039d7c3ab53180a634181918f19ea4d2f8b;p=open-ath9k-htc-firmware.git remove ath_hal_setupratetable Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ah.c b/target_firmware/wlan/ah.c index b1ead39..71deb5e 100755 --- a/target_firmware/wlan/ah.c +++ b/target_firmware/wlan/ah.c @@ -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