ath9k_hw: do not recalculate the descriptor checksum in ar9003_hw_fill_txdesc
authorFelix Fietkau <nbd@openwrt.org>
Wed, 14 Sep 2011 19:24:20 +0000 (21:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Sep 2011 20:45:39 +0000 (16:45 -0400)
Reduces the number of accesses to uncached descriptor memory.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_mac.c

index d08ab930e430311663861025cf36794749c0e313..c3179d9bdc38564d192b98579a4bc45321a0c44b 100644 (file)
@@ -207,8 +207,7 @@ static void ar9003_hw_fill_txdesc(struct ath_hw *ah, void *ds, u32 seglen,
        ads->ctl3 &= AR_BufLen;
 
        /* Fill in pointer checksum and descriptor id */
-       ads->ctl10 = ar9003_calc_ptr_chksum(ads);
-       ads->ctl10 |= (descid << AR_TxDescId_S);
+       ads->ctl10 = (descid << AR_TxDescId_S);
 
        if (is_firstseg) {
                ads->ctl12 |= (is_lastseg ? 0 : AR_TxMore);