ath9k: remove bfs_paprd_timestamp from struct ath_buf_state
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

gecommit door
John W. Linville

bovenliggende
952cd69371
commit
82259b77f6
@@ -1698,9 +1698,6 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
|
||||
if (bf->bf_state.bfs_paprd)
|
||||
ar9003_hw_set_paprd_txdesc(ah, ds, bf->bf_state.bfs_paprd);
|
||||
|
||||
if (txctl->paprd)
|
||||
bf->bf_state.bfs_paprd_timestamp = jiffies;
|
||||
|
||||
ath_tx_send_normal(sc, txctl->txq, NULL, &bf_head);
|
||||
}
|
||||
|
||||
@@ -1874,9 +1871,7 @@ static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
|
||||
bf->bf_buf_addr = 0;
|
||||
|
||||
if (bf->bf_state.bfs_paprd) {
|
||||
if (time_after(jiffies,
|
||||
bf->bf_state.bfs_paprd_timestamp +
|
||||
msecs_to_jiffies(ATH_PAPRD_TIMEOUT)))
|
||||
if (!sc->paprd_pending)
|
||||
dev_kfree_skb_any(skb);
|
||||
else
|
||||
complete(&sc->paprd_complete);
|
||||
|
Verwijs in nieuw issue
Block a user