]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: Use correct descriptor count when calculating next rx descriptor
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Nov 2012 14:07:57 +0000 (08:07 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Nov 2012 19:04:51 +0000 (14:04 -0500)
commitb9e6b024f0d9579fcfdbe89e61b4973025d0d2b5
tree57c99ee12e53730a67e5a34d841f5d3a4a96afa6
parent67d1b75480c2891d930eac548d7a4c129df89690
brcmsmac: Use correct descriptor count when calculating next rx descriptor

nextrxd() is calling txd(), which means that the tx descriptor count is
used to determine when to wrap for determining the next ring buffer
entry. This has worked so far since the driver has been using the same
number of rx and tx descriptors, but it's obviously going to be a
problem if different numbers of descriptors are used.

Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Tested-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/dma.c