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)
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>

No differences found