rtl8187: feedback transmitted packets using tx close descriptor for 8187B
commit3517afdefc3ad335b276eb5f8691841f48097abf
authorHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Thu, 13 Nov 2008 15:39:16 +0000 (13 10:39 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2008 21:41:33 +0000 (25 16:41 -0500)
tree150fb2ea5e8dcfe8f07523316a32dc45b94fba79
parentb4572a9264312fecdb530a3416b8c8336a3bb9a9
rtl8187: feedback transmitted packets using tx close descriptor for 8187B

Realtek 8187B has a receive command queue to feedback beacon interrupt
and transmitted packet status. Use it to feedback mac80211 about status
of transmitted packets. Unfortunately in the course of testing I found
that the sequence number reported by hardware includes entire sequence
control in a 12 bit only field, so a workaround is done to check only
lowest bits.

Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8187.h
drivers/net/wireless/rtl818x/rtl8187_dev.c