wireless: rt2800lib: Fix typo on checking
authorFelipe Pena <felipensp@gmail.com>
Sat, 19 Oct 2013 00:20:42 +0000 (21:20 -0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Nov 2013 19:38:55 +0000 (14:38 -0500)
On rt2800_config_channel_rf53xx function the member default_power1 is checked
for bound limit, but default_power2 is used instead.

Signed-off-by: Felipe Pena <felipensp@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c

index c5738f14c4ba21b7a60453ab282309089134bdc2..776aff3678ff23bddda925dfbb48bde925cb7b82 100644 (file)
@@ -2640,7 +2640,7 @@ static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev,
 
        if (rt2x00_rt(rt2x00dev, RT5392)) {
                rt2800_rfcsr_read(rt2x00dev, 50, &rfcsr);
-               if (info->default_power1 > POWER_BOUND)
+               if (info->default_power2 > POWER_BOUND)
                        rt2x00_set_field8(&rfcsr, RFCSR50_TX, POWER_BOUND);
                else
                        rt2x00_set_field8(&rfcsr, RFCSR50_TX,