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: MMI-PSA29.97-13-9~20520^2~448^2~55 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49447f2f9d47c4a57a76db702c9c1dab32fa7934;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 1adfebcd9b9a..6ddba4b361fd 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; }