]> bbs.cooldavid.org Git - net-next-2.6.git/commit
rtl8187: Fix driver to return TX retry info for RTL8187L
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 23 Jan 2009 17:40:22 +0000 (11:40 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:30 +0000 (16:01 -0500)
commit2f47690ed42a85820783dee7f16ae47edadf8fad
treeb16e286a5e306bd178cbaff061274d255d5cb562
parent2a57cf3e83f89150f2ac9b6f01caf3fcdbb36486
rtl8187: Fix driver to return TX retry info for RTL8187L

Current code for the RTL8187 is not returning valid retry information, thus the
rate-setting mechanism is not functioning. As a further complication, this info
is only obtained by reading a register, which cannot be read while in interrupt
context.

This patch implements the TX status return to mac80211 through the use of a
work queue.

One additional problem is that the driver currently enables the rate fallback
mechanism of the device, which conflicts with the mac80211 rate-setting
algorithm. This version of the patch disables rate fallback.

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