From: Felix Fietkau Date: Sat, 15 Jan 2011 13:30:15 +0000 (+0100) Subject: ath9k: fix excessive BAR sending when a frame exceeds its retry limit X-Git-Tag: v2.6.39-rc1~468^2~448^2~42 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f0b8220c64242e19f41ad1b4eec3225d53715cbe;p=~emulex%2Finfiniband.git ath9k: fix excessive BAR sending when a frame exceeds its retry limit Because the sendbar variable was not reset to zero, the stack would send Block ACK requests for all subframes following the one that failed, which could mess up the receiver side block ack window. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index fffd13d204b..ad569e152d7 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -429,7 +429,7 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq, ath_tx_count_frames(sc, bf, ts, txok, &nframes, &nbad); while (bf) { - txfail = txpending = 0; + txfail = txpending = sendbar = 0; bf_next = bf->bf_next; skb = bf->bf_mpdu;