Staging: rtl8192u: Fix duplicate conditional branch
authorVaishali Thakkar <vthakkar1994@gmail.com>
Tue, 3 Mar 2015 07:39:23 +0000 (13:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:34 +0000 (09:54 -0800)
Replace duplicate branch with correct value. This branch
is supposed to work for low thresh value.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_dm.c

index 719961643dedc7d1fc285a04083ee22472112f0d..5a01b7d405b1a2df98d95ce3edb898a61a8d4ed7 100644 (file)
@@ -1628,8 +1628,8 @@ void dm_change_dynamic_initgain_thresh(struct net_device *dev, u32 dm_type,
                dm_digtable.rssi_low_thresh = dm_value;
        } else if (dm_type == DIG_TYPE_THRESH_HIGHPWR_HIGH) {
                dm_digtable.rssi_high_power_highthresh = dm_value;
-       } else if (dm_type == DIG_TYPE_THRESH_HIGHPWR_HIGH) {
-               dm_digtable.rssi_high_power_highthresh = dm_value;
+       } else if (dm_type == DIG_TYPE_THRESH_HIGHPWR_LOW) {
+               dm_digtable.rssi_high_power_lowthresh = dm_value;
        } else if (dm_type == DIG_TYPE_ENABLE) {
                dm_digtable.dig_state           = DM_STA_DIG_MAX;
                dm_digtable.dig_enable_flag     = true;