aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-1000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-1000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-1000.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index baf80111efaf..3da8cf27dcb9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -45,7 +45,6 @@
45#include "iwl-agn.h" 45#include "iwl-agn.h"
46#include "iwl-helpers.h" 46#include "iwl-helpers.h"
47#include "iwl-agn-hw.h" 47#include "iwl-agn-hw.h"
48#include "iwl-agn-debugfs.h"
49 48
50/* Highest firmware API version supported */ 49/* Highest firmware API version supported */
51#define IWL1000_UCODE_API_MAX 5 50#define IWL1000_UCODE_API_MAX 5
@@ -121,10 +120,10 @@ static struct iwl_sensitivity_ranges iwl1000_sensitivity = {
121 120
122static int iwl1000_hw_set_hw_params(struct iwl_priv *priv) 121static int iwl1000_hw_set_hw_params(struct iwl_priv *priv)
123{ 122{
124 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && 123 if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
125 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) 124 iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
126 priv->cfg->base_params->num_of_queues = 125 priv->cfg->base_params->num_of_queues =
127 priv->cfg->mod_params->num_of_queues; 126 iwlagn_mod_params.num_of_queues;
128 127
129 priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues; 128 priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
130 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; 129 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
@@ -197,21 +196,11 @@ static struct iwl_lib_ops iwl1000_lib = {
197 EEPROM_REG_BAND_24_HT40_CHANNELS, 196 EEPROM_REG_BAND_24_HT40_CHANNELS,
198 EEPROM_REGULATORY_BAND_NO_HT40, 197 EEPROM_REGULATORY_BAND_NO_HT40,
199 }, 198 },
200 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
201 .release_semaphore = iwlcore_eeprom_release_semaphore,
202 .calib_version = iwlagn_eeprom_calib_version,
203 .query_addr = iwlagn_eeprom_query_addr, 199 .query_addr = iwlagn_eeprom_query_addr,
204 }, 200 },
205 .temp_ops = { 201 .temp_ops = {
206 .temperature = iwlagn_temperature, 202 .temperature = iwlagn_temperature,
207 }, 203 },
208 .debugfs_ops = {
209 .rx_stats_read = iwl_ucode_rx_stats_read,
210 .tx_stats_read = iwl_ucode_tx_stats_read,
211 .general_stats_read = iwl_ucode_general_stats_read,
212 .bt_stats_read = iwl_ucode_bt_stats_read,
213 .reply_tx_error = iwl_reply_tx_error_read,
214 },
215 .txfifo_flush = iwlagn_txfifo_flush, 204 .txfifo_flush = iwlagn_txfifo_flush,
216 .dev_txfifo_flush = iwlagn_dev_txfifo_flush, 205 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
217}; 206};
@@ -249,7 +238,6 @@ static struct iwl_ht_params iwl1000_ht_params = {
249 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ 238 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \
250 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ 239 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
251 .ops = &iwl1000_ops, \ 240 .ops = &iwl1000_ops, \
252 .mod_params = &iwlagn_mod_params, \
253 .base_params = &iwl1000_base_params, \ 241 .base_params = &iwl1000_base_params, \
254 .led_mode = IWL_LED_BLINK 242 .led_mode = IWL_LED_BLINK
255 243
@@ -271,7 +259,6 @@ struct iwl_cfg iwl1000_bg_cfg = {
271 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ 259 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \
272 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ 260 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
273 .ops = &iwl1000_ops, \ 261 .ops = &iwl1000_ops, \
274 .mod_params = &iwlagn_mod_params, \
275 .base_params = &iwl1000_base_params, \ 262 .base_params = &iwl1000_base_params, \
276 .led_mode = IWL_LED_RF_STATE, \ 263 .led_mode = IWL_LED_RF_STATE, \
277 .rx_with_siso_diversity = true 264 .rx_with_siso_diversity = true