diff options
author | Herton Ronaldo Krzesinski <herton@mandriva.com.br> | 2010-11-01 20:59:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:25:48 -0500 |
commit | daeeb074105a80a34f90a454c24efc14e9a8d3c3 (patch) | |
tree | b9f428744631af5cd4f8ffa72e9651031abe3a03 /drivers/net/wireless/rtl818x | |
parent | 998606cfd75e7a8169ed0d324061a8d6bc60716a (diff) |
rtl8187: restore anaparam registers after reset with 8187B
Current 8187B initialization misses anaparam registers restore after
8187 reset. This causes ANAPARAM register to stay zeroed out (ANAPARAM2
kept its value on my tests). To avoid this, call rtl8187_set_anaparam
right after chip reset (to be on the safe side, as it makes sure we
restore all ANAPARAM registers).
Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: seno <senada@t-online.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187_dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c index 4448647d6cf6..eeee244fcaab 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c | |||
@@ -771,6 +771,8 @@ static int rtl8187b_init_hw(struct ieee80211_hw *dev) | |||
771 | if (res) | 771 | if (res) |
772 | return res; | 772 | return res; |
773 | 773 | ||
774 | rtl8187_set_anaparam(priv, true); | ||
775 | |||
774 | /* BRSR (Basic Rate Set Register) on 8187B looks to be the same as | 776 | /* BRSR (Basic Rate Set Register) on 8187B looks to be the same as |
775 | * RESP_RATE on 8187L in Realtek sources: each bit should be each | 777 | * RESP_RATE on 8187L in Realtek sources: each bit should be each |
776 | * one of the 12 rates, all are enabled */ | 778 | * one of the 12 rates, all are enabled */ |