diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-09-22 12:02:08 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-07 18:52:15 -0400 |
commit | 0453674c90be7b39c8925ba5e1d746447905f8ee (patch) | |
tree | 9630487b83e15fed50e740938f10ad8c79c25c95 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 84fac3d9604147db37bd8c68897f79442d7ed714 (diff) |
iwlwifi: remove set_ct_kill operation
This operation is only ever called from set_hw_params,
which is also already based on the config/ops, so that
there's no need to have a separate set_ct_kill op and
we can just call the right ct_threshold function.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 08d2dbc4efb3..c192856bb644 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -669,8 +669,8 @@ static int iwl4965_hw_set_hw_params(struct iwl_priv *priv) | |||
669 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); | 669 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); |
670 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | 670 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
671 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | 671 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
672 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) | 672 | |
673 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); | 673 | iwl4965_set_ct_threshold(priv); |
674 | 674 | ||
675 | priv->hw_params.sens = &iwl4965_sensitivity; | 675 | priv->hw_params.sens = &iwl4965_sensitivity; |
676 | priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; | 676 | priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; |
@@ -2292,7 +2292,6 @@ static struct iwl_lib_ops iwl4965_lib = { | |||
2292 | .isr = iwl_isr_legacy, | 2292 | .isr = iwl_isr_legacy, |
2293 | .temp_ops = { | 2293 | .temp_ops = { |
2294 | .temperature = iwl4965_temperature_calib, | 2294 | .temperature = iwl4965_temperature_calib, |
2295 | .set_ct_kill = iwl4965_set_ct_threshold, | ||
2296 | }, | 2295 | }, |
2297 | .manage_ibss_station = iwlagn_manage_ibss_station, | 2296 | .manage_ibss_station = iwlagn_manage_ibss_station, |
2298 | .update_bcast_stations = iwl_update_bcast_stations, | 2297 | .update_bcast_stations = iwl_update_bcast_stations, |