staging: rtl8192e: Delete unused dm_change_dynamic_initgain_thresh
authorMike McCormack <mikem@ring3k.org>
Thu, 3 Mar 2011 13:46:32 +0000 (22:46 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Mar 2011 21:31:45 +0000 (13:31 -0800)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E_dm.c
drivers/staging/rtl8192e/r8192E_dm.h

index 50e276f8f34b66891edb192a3d47d75b7d1bfad7..974555bd3c6fe52f97f5b8df74d44411686fa6ff 100644 (file)
@@ -1111,76 +1111,6 @@ void dm_cck_txpower_adjust(struct r8192_priv *priv, bool binch14)
                dm_CCKTxPowerAdjust_ThermalMeter(priv, binch14);
 }
 
-
-void dm_change_dynamic_initgain_thresh(struct net_device *dev, u32 dm_type, u32        dm_value)
-{
-       if (dm_type == DIG_TYPE_THRESH_HIGH)
-       {
-               dm_digtable.rssi_high_thresh = dm_value;
-       }
-       else if (dm_type == DIG_TYPE_THRESH_LOW)
-       {
-               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_ENABLE)
-       {
-               dm_digtable.dig_state           = DM_STA_DIG_MAX;
-               dm_digtable.dig_enable_flag     = true;
-       }
-       else if (dm_type == DIG_TYPE_DISABLE)
-       {
-               dm_digtable.dig_state           = DM_STA_DIG_MAX;
-               dm_digtable.dig_enable_flag     = false;
-       }
-       else if (dm_type == DIG_TYPE_DBG_MODE)
-       {
-               if(dm_value >= DM_DBG_MAX)
-                       dm_value = DM_DBG_OFF;
-               dm_digtable.dbg_mode            = (u8)dm_value;
-       }
-       else if (dm_type == DIG_TYPE_RSSI)
-       {
-               if(dm_value > 100)
-                       dm_value = 30;
-               dm_digtable.rssi_val                    = (long)dm_value;
-       }
-       else if (dm_type == DIG_TYPE_ALGORITHM)
-       {
-               if (dm_value >= DIG_ALGO_MAX)
-                       dm_value = DIG_ALGO_BY_FALSE_ALARM;
-               if(dm_digtable.dig_algorithm != (u8)dm_value)
-                       dm_digtable.dig_algorithm_switch = 1;
-               dm_digtable.dig_algorithm       = (u8)dm_value;
-       }
-       else if (dm_type == DIG_TYPE_BACKOFF)
-       {
-               if(dm_value > 30)
-                       dm_value = 30;
-               dm_digtable.backoff_val         = (u8)dm_value;
-       }
-       else if(dm_type == DIG_TYPE_RX_GAIN_MIN)
-       {
-               if(dm_value == 0)
-                       dm_value = 0x1;
-               dm_digtable.rx_gain_range_min = (u8)dm_value;
-       }
-       else if(dm_type == DIG_TYPE_RX_GAIN_MAX)
-       {
-               if(dm_value > 0x50)
-                       dm_value = 0x50;
-               dm_digtable.rx_gain_range_max = (u8)dm_value;
-       }
-}
-
-
 /* Set DIG scheme init value. */
 static void dm_dig_init(struct r8192_priv *priv)
 {
index 16dcb033a9ebbc68b33bc87b5e6d5f7e0f3546e6..de72a335107dbcfde83ff04e62d78129e0d259e9 100644 (file)
@@ -221,8 +221,6 @@ void init_rate_adaptive(struct net_device *dev);
 void dm_txpower_trackingcallback(struct work_struct *work);
 void dm_restore_dynamic_mechanism_state(struct net_device *dev);
 void dm_backup_dynamic_mechanism_state(struct net_device *dev);
-void dm_change_dynamic_initgain_thresh(struct net_device *dev, u32 dm_type,
-                                       u32 dm_value);
 void DM_ChangeFsyncSetting(struct net_device *dev, s32 DM_Type, s32 DM_Value);
 void dm_force_tx_fw_info(struct net_device *dev, u32 force_type,
                         u32 force_value);