]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: rt3090: Fix RT3090 scan AP function
authorChien-Chia Chen <machen@novell.com>
Wed, 8 Dec 2010 22:20:33 +0000 (14:20 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:13:48 +0000 (15:13 -0800)
commit 1226056d9608d241db4b558a0d88a347ad5c66ae upstream.

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: Chun-Yi Lee <jlee@novell.com>
Signed-off-by: Chien-Chia Chen <machen@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/chips/rt3090.c
drivers/staging/rt2860/chips/rt30xx.c

index c2933c69bc0476fea8e2d12a498f4aa34a2c4847..cbc59f8a7c244547373785fb119f6357ac583677 100644 (file)
@@ -51,7 +51,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;
index 4367a196aeff18b9f4192b88a5c83e6d65464952..ebd92dbb42d58eaa9a4807f70a95698b19d71ad7 100644 (file)
@@ -53,7 +53,7 @@ struct rt_reg_pair RT30xx_RFRegTable[] = {
        ,
        {RF_R06, 0x02}
        ,
-       {RF_R07, 0x70}
+       {RF_R07, 0x60}
        ,
        {RF_R09, 0x0F}
        ,