b43legacy: Avoid packet losses in the dma worker code
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 22 Dec 2011 00:47:59 +0000 (18:47 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:43 +0000 (14:30 -0500)
commit5d07a3d62f63f3a9ce769c37108f8411c014903e
tree8545015a8ee333adad1a1f98dc1fbd0c05025539
parent9bd2857188d920f358cfb740fc6f88e1a17a837e
b43legacy: Avoid packet losses in the dma worker code

This patch addresses a bug in the dma worker code that keeps draining
packets even when the hardware queues are full. In such cases packets
can not be passed down to the device and are erroneusly dropped by the
code. It is based on commit bad6919469662b7c92bc6353642aaaa777b36bac,
which fixes the same problem in b43.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/b43legacy.h
drivers/net/wireless/b43legacy/dma.c
drivers/net/wireless/b43legacy/dma.h
drivers/net/wireless/b43legacy/main.c