Skip to content

Commit

Permalink
ath9k_hw: do not recalculate the descriptor checksum in ar9003_hw_fil…
Browse files Browse the repository at this point in the history
…l_txdesc

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>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Sep 16, 2011
1 parent 7a2721a commit 60f8cc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ath/ath9k/ar9003_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60f8cc6

Please sign in to comment.