]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit5998be879719384af2014b79697eed6e38ee2706
treeebbe73b9ba77942e7fef6fb0e111b42525696951
parent105ff411c96c52c67261efbe245f0947d39ebce7
ath9k: Fix sequence number assignment for non-data frames

Since commit 558ff225de80ac95b132d3a115ddadcd64498b4f (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