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-5000.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-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index ddbbb9320ac..084271e5e46 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -195,8 +195,7 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
195 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | 195 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
196 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | 196 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
197 | 197 | ||
198 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) | 198 | iwl5000_set_ct_threshold(priv); |
199 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); | ||
200 | 199 | ||
201 | /* Set initial sensitivity parameters */ | 200 | /* Set initial sensitivity parameters */ |
202 | /* Set initial calibration set */ | 201 | /* Set initial calibration set */ |
@@ -242,8 +241,7 @@ static int iwl5150_hw_set_hw_params(struct iwl_priv *priv) | |||
242 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | 241 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
243 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | 242 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
244 | 243 | ||
245 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) | 244 | iwl5150_set_ct_threshold(priv); |
246 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); | ||
247 | 245 | ||
248 | /* Set initial sensitivity parameters */ | 246 | /* Set initial sensitivity parameters */ |
249 | /* Set initial calibration set */ | 247 | /* Set initial calibration set */ |
@@ -394,7 +392,6 @@ static struct iwl_lib_ops iwl5000_lib = { | |||
394 | .config_ap = iwl_config_ap, | 392 | .config_ap = iwl_config_ap, |
395 | .temp_ops = { | 393 | .temp_ops = { |
396 | .temperature = iwlagn_temperature, | 394 | .temperature = iwlagn_temperature, |
397 | .set_ct_kill = iwl5000_set_ct_threshold, | ||
398 | }, | 395 | }, |
399 | .manage_ibss_station = iwlagn_manage_ibss_station, | 396 | .manage_ibss_station = iwlagn_manage_ibss_station, |
400 | .update_bcast_stations = iwl_update_bcast_stations, | 397 | .update_bcast_stations = iwl_update_bcast_stations, |
@@ -465,7 +462,6 @@ static struct iwl_lib_ops iwl5150_lib = { | |||
465 | .config_ap = iwl_config_ap, | 462 | .config_ap = iwl_config_ap, |
466 | .temp_ops = { | 463 | .temp_ops = { |
467 | .temperature = iwl5150_temperature, | 464 | .temperature = iwl5150_temperature, |
468 | .set_ct_kill = iwl5150_set_ct_threshold, | ||
469 | }, | 465 | }, |
470 | .manage_ibss_station = iwlagn_manage_ibss_station, | 466 | .manage_ibss_station = iwlagn_manage_ibss_station, |
471 | .update_bcast_stations = iwl_update_bcast_stations, | 467 | .update_bcast_stations = iwl_update_bcast_stations, |