]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Fix sequence number assignment for non-data frames
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 12 Mar 2014 09:37:55 +0000 (10:37 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2014 18:57:26 +0000 (14:57 -0400)
commit7d8ddfd2738553d4cdd15f0fa275ce4dc0e2b0f3
treeebbe73b9ba77942e7fef6fb0e111b42525696951
parent4276adc1cd9851889a99508452d97812964a98ce
ath9k: Fix sequence number assignment for non-data frames

Since commit 93d8344fb76afa1502a03c1a6c91bb7f1af484c6 (ath9k: fix
ps-poll responses under a-mpdu sessions) non-data frames would have
gotten a sequence number from a TIDs sequence counter instead of
using the global sequence counter.

This can lead to instable connections.

To fix this only select the correct TID if we are processing a
data frame. Furthermore, prevent non-data frames to get a sequence
number from a TID sequence counter by adding a check to
ath_tx_setup_buffer.

Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c