ath9k: add some fixes for AR9003
[oweals/openwrt.git] / package / mac80211 / patches / 520-ath9k_fix_paprd.patch
1 --- a/drivers/net/wireless/ath/ath9k/xmit.c
2 +++ b/drivers/net/wireless/ath/ath9k/xmit.c
3 @@ -1656,9 +1656,6 @@ static void ath_tx_start_dma(struct ath_
4                             bf->bf_buf_addr,
5                             txctl->txq->axq_qnum);
6  
7 -       if (bf->bf_state.bfs_paprd)
8 -               ar9003_hw_set_paprd_txdesc(ah, ds, bf->bf_state.bfs_paprd);
9 -
10         spin_lock_bh(&txctl->txq->axq_lock);
11  
12         if (bf_isht(bf) && (sc->sc_flags & SC_OP_TXAGGR) &&
13 @@ -1684,6 +1681,9 @@ static void ath_tx_start_dma(struct ath_
14                 bf->bf_state.bfs_ftype = txctl->frame_type;
15                 bf->bf_state.bfs_paprd = txctl->paprd;
16  
17 +               if (bf->bf_state.bfs_paprd)
18 +                       ar9003_hw_set_paprd_txdesc(ah, ds, bf->bf_state.bfs_paprd);
19 +
20                 if (txctl->paprd)
21                         bf->bf_state.bfs_paprd_timestamp = jiffies;
22