ath5k: use rx hw descriptor pointer for self-linked check
authorBob Copeland <me@bobcopeland.com>
Wed, 15 Apr 2009 11:57:35 +0000 (07:57 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:57:14 +0000 (16:57 -0400)
commitc57ca81576e7ca0369ea52c9ac5f35d0f6ca1270
treec121d33c69a2eccf0658c7f7953d6eb9435c8d44
parent46802a4f07cd2367d584bb1a2e6998d22d4d4f3a
ath5k: use rx hw descriptor pointer for self-linked check

This patch simplifies the code used to detect when the
self-linked DMA buffer is still in use by hardware, by
checking the hardware's rxdp register instead of looking
at the software buffer list.

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/base.c
drivers/net/wireless/ath/ath5k/base.h
drivers/net/wireless/ath/ath5k/dma.c