Skip to content

Commit

Permalink
Staging: rt3090: Fix RT3090 scan AP function
Browse files Browse the repository at this point in the history
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: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Chen, Chien-Chia <machen@novell.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Chen, Chien-Chia authored and Greg Kroah-Hartman committed Dec 8, 2010
1 parent ea3398a commit 1226056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/staging/rt2860/chips/rt3090.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ void NICInitRT3090RFRegisters(struct rt_rtmp_adapter *pAd)
if (IS_RT3090(pAd)) {
/* Init RF calibration */
/* Driver should toggle RF R30 bit7 before init RF registers */
u32 RfReg = 0, data;
u8 RfReg;
u32 data;

RT30xxReadRFRegister(pAd, RF_R30, (u8 *)&RfReg);
RfReg |= 0x80;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rt2860/chips/rt30xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct rt_reg_pair RT30xx_RFRegTable[] = {
,
{RF_R06, 0x02}
,
{RF_R07, 0x70}
{RF_R07, 0x60}
,
{RF_R09, 0x0F}
,
Expand Down

0 comments on commit 1226056

Please sign in to comment.