]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ath5k: fix setup for CAB queue
authorBob Copeland <me@bobcopeland.com>
Thu, 21 Jan 2010 04:51:04 +0000 (23:51 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Jan 2010 21:11:31 +0000 (16:11 -0500)
commita951ae2176b982574ffa197455db6c89359fd5eb
treee2b821cf406a85541439b0eea2b0cc06a71381ce
parent5d6ce628f986d1a3c523cbb0a5a52095c48cc332
ath5k: fix setup for CAB queue

The beacon sent gating doesn't seem to work with any combination
of flags.  Thus, buffered frames tend to stay buffered forever,
using up tx descriptors.

Instead, use the DBA gating and hold transmission of the buffered
frames until 80% of the beacon interval has elapsed using the ready
time.  This fixes the following error in AP mode:

   ath5k phy0: no further txbuf available, dropping packet

Add a comment to acknowledge that this isn't the best solution.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/qcu.c