Commit 60f8cc60 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k_hw: do not recalculate the descriptor checksum in ar9003_hw_fill_txdesc

Reduces the number of accesses to uncached descriptor memory.
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7a2721a3
...@@ -207,8 +207,7 @@ static void ar9003_hw_fill_txdesc(struct ath_hw *ah, void *ds, u32 seglen, ...@@ -207,8 +207,7 @@ static void ar9003_hw_fill_txdesc(struct ath_hw *ah, void *ds, u32 seglen,
ads->ctl3 &= AR_BufLen; ads->ctl3 &= AR_BufLen;
/* Fill in pointer checksum and descriptor id */ /* 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) { if (is_firstseg) {
ads->ctl12 |= (is_lastseg ? 0 : AR_TxMore); ads->ctl12 |= (is_lastseg ? 0 : AR_TxMore);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment