aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-1000.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c5
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c8
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c5
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h1
5 files changed, 6 insertions, 17 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index 8c2db55df426..8aed9ead3a75 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -151,8 +151,7 @@ static int iwl1000_hw_set_hw_params(struct iwl_priv *priv)
151 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; 151 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
152 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; 152 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
153 153
154 if (priv->cfg->ops->lib->temp_ops.set_ct_kill) 154 iwl1000_set_ct_threshold(priv);
155 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
156 155
157 /* Set initial sensitivity parameters */ 156 /* Set initial sensitivity parameters */
158 /* Set initial calibration set */ 157 /* Set initial calibration set */
@@ -219,7 +218,6 @@ static struct iwl_lib_ops iwl1000_lib = {
219 .config_ap = iwl_config_ap, 218 .config_ap = iwl_config_ap,
220 .temp_ops = { 219 .temp_ops = {
221 .temperature = iwlagn_temperature, 220 .temperature = iwlagn_temperature,
222 .set_ct_kill = iwl1000_set_ct_threshold,
223 }, 221 },
224 .manage_ibss_station = iwlagn_manage_ibss_station, 222 .manage_ibss_station = iwlagn_manage_ibss_station,
225 .update_bcast_stations = iwl_update_bcast_stations, 223 .update_bcast_stations = iwl_update_bcast_stations,
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,
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index ddbbb9320aca..084271e5e468 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,
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index 198cd8f40de3..84f181443f02 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -192,8 +192,7 @@ static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
192 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; 192 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
193 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; 193 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
194 194
195 if (priv->cfg->ops->lib->temp_ops.set_ct_kill) 195 iwl6000_set_ct_threshold(priv);
196 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
197 196
198 /* Set initial sensitivity parameters */ 197 /* Set initial sensitivity parameters */
199 /* Set initial calibration set */ 198 /* Set initial calibration set */
@@ -334,7 +333,6 @@ static struct iwl_lib_ops iwl6000_lib = {
334 .config_ap = iwl_config_ap, 333 .config_ap = iwl_config_ap,
335 .temp_ops = { 334 .temp_ops = {
336 .temperature = iwlagn_temperature, 335 .temperature = iwlagn_temperature,
337 .set_ct_kill = iwl6000_set_ct_threshold,
338 }, 336 },
339 .manage_ibss_station = iwlagn_manage_ibss_station, 337 .manage_ibss_station = iwlagn_manage_ibss_station,
340 .update_bcast_stations = iwl_update_bcast_stations, 338 .update_bcast_stations = iwl_update_bcast_stations,
@@ -408,7 +406,6 @@ static struct iwl_lib_ops iwl6000g2b_lib = {
408 .config_ap = iwl_config_ap, 406 .config_ap = iwl_config_ap,
409 .temp_ops = { 407 .temp_ops = {
410 .temperature = iwlagn_temperature, 408 .temperature = iwlagn_temperature,
411 .set_ct_kill = iwl6000_set_ct_threshold,
412 }, 409 },
413 .manage_ibss_station = iwlagn_manage_ibss_station, 410 .manage_ibss_station = iwlagn_manage_ibss_station,
414 .update_bcast_stations = iwl_update_bcast_stations, 411 .update_bcast_stations = iwl_update_bcast_stations,
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index b02db31d7d5b..f3c3d8531505 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -137,7 +137,6 @@ struct iwl_debugfs_ops {
137 137
138struct iwl_temp_ops { 138struct iwl_temp_ops {
139 void (*temperature)(struct iwl_priv *priv); 139 void (*temperature)(struct iwl_priv *priv);
140 void (*set_ct_kill)(struct iwl_priv *priv);
141}; 140};
142 141
143struct iwl_tt_ops { 142struct iwl_tt_ops {