X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fah.c;h=71deb5ec646eda573320ef1ab78623a2141d279c;hb=246c1039d7c3ab53180a634181918f19ea4d2f8b;hp=30c959426b33d43cc8d01864b6957df164179e9c;hpb=78f74c09684b8311c9daafbd0216e27eb9f905d8;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ah.c b/target_firmware/wlan/ah.c index 30c9594..71deb5e 100755 --- a/target_firmware/wlan/ah.c +++ b/target_firmware/wlan/ah.c @@ -33,7 +33,6 @@ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "opt_ah.h" #include "ah.h" #include "ah_internal.h" #include @@ -72,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