From: Felix Fietkau Date: Tue, 11 Jan 2011 00:05:48 +0000 (-0700) Subject: ath9k: fix initial sequence number after starting an ampdu session X-Git-Tag: v2.6.39-rc1~468^2~448^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49447f2f9d47c4a57a76db702c9c1dab32fa7934;p=platform%2Fkernel%2Flinux-stable.git ath9k: fix initial sequence number after starting an ampdu session txtid->seq_start may not always be up to date, when there is HT non-AMPDU traffic just before starting an AMPDU session. Relying on txtid->seq_next is better, since it is also used to generate the sequence numbers for all QoS data frames. 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 1adfebc..6ddba4b 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -856,7 +856,7 @@ int ath_tx_aggr_start(struct ath_softc *sc, struct ieee80211_sta *sta, txtid->state |= AGGR_ADDBA_PROGRESS; txtid->paused = true; - *ssn = txtid->seq_start; + *ssn = txtid->seq_start = txtid->seq_next; return 0; }