Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376151
b: refs/heads/master
c: 0c585dd
h: refs/heads/master
i:
  376149: 5bd1c65
  376147: 2fc92c5
  376143: 805b2a0
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed May 17, 2013
1 parent 5abf9af commit d20c38b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16e23428024e4dc6b5ba5f6d36c57c49d33fe85b
refs/heads/master: 0c585dda3574e40f562c362eaa326a98b1e49d02
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ static void ath_tx_process_buffer(struct ath_softc *sc, struct ath_txq *txq,
struct ath_tx_status *ts, struct ath_buf *bf,
struct list_head *bf_head)
{
struct ieee80211_tx_info *info;
bool txok, flush;

txok = !(ts->ts_status & ATH9K_TXERR_MASK);
Expand All @@ -641,8 +642,12 @@ static void ath_tx_process_buffer(struct ath_softc *sc, struct ath_txq *txq,
txq->axq_ampdu_depth--;

if (!bf_isampdu(bf)) {
if (!flush)
if (!flush) {
info = IEEE80211_SKB_CB(bf->bf_mpdu);
memcpy(info->control.rates, bf->rates,
sizeof(info->control.rates));
ath_tx_rc_status(sc, bf, ts, 1, txok ? 0 : 1, txok);
}
ath_tx_complete_buf(sc, bf, txq, bf_head, ts, txok);
} else
ath_tx_complete_aggr(sc, txq, bf, bf_head, ts, txok);
Expand Down Expand Up @@ -686,7 +691,7 @@ static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf,

skb = bf->bf_mpdu;
tx_info = IEEE80211_SKB_CB(skb);
rates = tx_info->control.rates;
rates = bf->rates;

/*
* Find the lowest frame length among the rate series that will have a
Expand Down

0 comments on commit d20c38b

Please sign in to comment.