rt2x00: Fix typo in rt2800_config_txpower
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 14 Jun 2010 20:11:32 +0000 (22:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jun 2010 20:00:50 +0000 (16:00 -0400)
Fix typo in rt2800_config_txpower.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c

index ae20e6728b1ee3e18d49e9d43e4d572333507600..f15832245e0ede5e6a1a69e96a3e6687e9054527 100644 (file)
@@ -1079,7 +1079,7 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev,
        u8 r1;
 
        rt2800_bbp_read(rt2x00dev, 1, &r1);
-       rt2x00_set_field8(&reg, BBP1_TX_POWER, 0);
+       rt2x00_set_field8(&r1, BBP1_TX_POWER, 0);
        rt2800_bbp_write(rt2x00dev, 1, r1);
 
        rt2800_register_read(rt2x00dev, TX_PWR_CFG_0, &reg);