rt2x00: Fix MCS register intialization
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 17 Aug 2009 16:55:40 +0000 (18:55 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Aug 2009 15:36:01 +0000 (11:36 -0400)
According to the original Ralink driver,
LG_FBK_CFG0_OFDMMCS2FBK should be initialized to 9 rather then 3.

Based on a patch for rt2800pci from Benoit

Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800usb.c

index 3633e5878ee4e462b7ac1c2a1925c36e01b23a68..45e02f16d75bea185d9728092ee7224ee1ad308b 100644 (file)
@@ -1520,7 +1520,7 @@ static int rt2800usb_init_registers(struct rt2x00_dev *rt2x00dev)
        rt2x00usb_register_read(rt2x00dev, LG_FBK_CFG0, &reg);
        rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS0FBK, 8);
        rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS1FBK, 8);
-       rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS2FBK, 3);
+       rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS2FBK, 9);
        rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS3FBK, 10);
        rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS4FBK, 11);
        rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS5FBK, 12);