Skip to content

Commit

Permalink
ath9k: reinitialize block ack window data when starting aggregation
Browse files Browse the repository at this point in the history
There might be some old stale data left, which could confuse tracking
of pending tx frames.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jan 19, 2011
1 parent 49447f2 commit 2ed7222
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,9 @@ int ath_tx_aggr_start(struct ath_softc *sc, struct ieee80211_sta *sta,
txtid->paused = true;
*ssn = txtid->seq_start = txtid->seq_next;

memset(txtid->tx_buf, 0, sizeof(txtid->tx_buf));
txtid->baw_head = txtid->baw_tail = 0;

return 0;
}

Expand Down

0 comments on commit 2ed7222

Please sign in to comment.