提交 1226056d 编写于 作者: C Chen, Chien-Chia 提交者: Greg Kroah-Hartman

Staging: rt3090: Fix RT3090 scan AP function

Fix RT3090 scan AP function.

This patch fixes the rt3090 wireless module failed
to scan AP around due to  Windows driver causing
rt3090 module unable to scan AP in Linux.
Acked-by: NLee, Chun-Yi <jlee@novell.com>
Signed-off-by: NChen, Chien-Chia <machen@novell.com>
Cc: stable <stable@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ea3398a1
...@@ -52,7 +52,8 @@ void NICInitRT3090RFRegisters(struct rt_rtmp_adapter *pAd) ...@@ -52,7 +52,8 @@ void NICInitRT3090RFRegisters(struct rt_rtmp_adapter *pAd)
if (IS_RT3090(pAd)) { if (IS_RT3090(pAd)) {
/* Init RF calibration */ /* Init RF calibration */
/* Driver should toggle RF R30 bit7 before init RF registers */ /* Driver should toggle RF R30 bit7 before init RF registers */
u32 RfReg = 0, data; u8 RfReg;
u32 data;
RT30xxReadRFRegister(pAd, RF_R30, (u8 *)&RfReg); RT30xxReadRFRegister(pAd, RF_R30, (u8 *)&RfReg);
RfReg |= 0x80; RfReg |= 0x80;
......
...@@ -54,7 +54,7 @@ struct rt_reg_pair RT30xx_RFRegTable[] = { ...@@ -54,7 +54,7 @@ struct rt_reg_pair RT30xx_RFRegTable[] = {
, ,
{RF_R06, 0x02} {RF_R06, 0x02}
, ,
{RF_R07, 0x70} {RF_R07, 0x60}
, ,
{RF_R09, 0x0F} {RF_R09, 0x0F}
, ,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册