iwlagn: remove unused variable
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
blob6045457cc72298d4771810eee427a5d29a0646f3
1 /******************************************************************************
3 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25 *****************************************************************************/
27 #include <linux/kernel.h>
28 #include <linux/module.h>
29 #include <linux/init.h>
30 #include <linux/pci.h>
31 #include <linux/dma-mapping.h>
32 #include <linux/delay.h>
33 #include <linux/skbuff.h>
34 #include <linux/netdevice.h>
35 #include <linux/wireless.h>
36 #include <net/mac80211.h>
37 #include <linux/etherdevice.h>
38 #include <asm/unaligned.h>
40 #include "iwl-eeprom.h"
41 #include "iwl-dev.h"
42 #include "iwl-core.h"
43 #include "iwl-io.h"
44 #include "iwl-sta.h"
45 #include "iwl-agn.h"
46 #include "iwl-helpers.h"
47 #include "iwl-agn-hw.h"
48 #include "iwl-6000-hw.h"
50 /* Highest firmware API version supported */
51 #define IWL6000_UCODE_API_MAX 4
52 #define IWL6050_UCODE_API_MAX 5
53 #define IWL6000G2_UCODE_API_MAX 5
55 /* Lowest firmware API version supported */
56 #define IWL6000_UCODE_API_MIN 4
57 #define IWL6050_UCODE_API_MIN 4
58 #define IWL6000G2_UCODE_API_MIN 4
60 #define IWL6000_FW_PRE "iwlwifi-6000-"
61 #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
63 #define IWL6050_FW_PRE "iwlwifi-6050-"
64 #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
66 #define IWL6005_FW_PRE "iwlwifi-6000g2a-"
67 #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE #api ".ucode"
69 #define IWL6030_FW_PRE "iwlwifi-6000g2b-"
70 #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE #api ".ucode"
72 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
74 /* want Celsius */
75 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
76 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
79 static void iwl6050_additional_nic_config(struct iwl_priv *priv)
81 /* Indicate calibration version to uCode. */
82 if (iwlagn_eeprom_calib_version(priv) >= 6)
83 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
84 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
87 static void iwl6150_additional_nic_config(struct iwl_priv *priv)
89 /* Indicate calibration version to uCode. */
90 if (iwlagn_eeprom_calib_version(priv) >= 6)
91 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
92 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
93 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
94 CSR_GP_DRIVER_REG_BIT_6050_1x2);
97 /* NIC configuration for 6000 series */
98 static void iwl6000_nic_config(struct iwl_priv *priv)
100 u16 radio_cfg;
102 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
104 /* write radio config values to register */
105 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
106 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
107 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
108 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
109 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
111 /* set CSR_HW_CONFIG_REG for uCode use */
112 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
113 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
114 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
116 /* no locking required for register write */
117 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
118 /* 2x2 IPA phy type */
119 iwl_write32(priv, CSR_GP_DRIVER_REG,
120 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
122 /* do additional nic configuration if needed */
123 if (priv->cfg->ops->nic &&
124 priv->cfg->ops->nic->additional_nic_config) {
125 priv->cfg->ops->nic->additional_nic_config(priv);
129 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
130 .min_nrg_cck = 97,
131 .max_nrg_cck = 0, /* not used, set to 0 */
132 .auto_corr_min_ofdm = 80,
133 .auto_corr_min_ofdm_mrc = 128,
134 .auto_corr_min_ofdm_x1 = 105,
135 .auto_corr_min_ofdm_mrc_x1 = 192,
137 .auto_corr_max_ofdm = 145,
138 .auto_corr_max_ofdm_mrc = 232,
139 .auto_corr_max_ofdm_x1 = 110,
140 .auto_corr_max_ofdm_mrc_x1 = 232,
142 .auto_corr_min_cck = 125,
143 .auto_corr_max_cck = 175,
144 .auto_corr_min_cck_mrc = 160,
145 .auto_corr_max_cck_mrc = 310,
146 .nrg_th_cck = 97,
147 .nrg_th_ofdm = 100,
149 .barker_corr_th_min = 190,
150 .barker_corr_th_min_mrc = 390,
151 .nrg_th_cca = 62,
154 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
156 if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
157 iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
158 priv->cfg->base_params->num_of_queues =
159 iwlagn_mod_params.num_of_queues;
161 priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
162 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
163 priv->hw_params.scd_bc_tbls_size =
164 priv->cfg->base_params->num_of_queues *
165 sizeof(struct iwlagn_scd_bc_tbl);
166 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
167 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
168 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
170 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
171 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
173 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
174 BIT(IEEE80211_BAND_5GHZ);
175 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
177 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
178 if (priv->cfg->rx_with_siso_diversity)
179 priv->hw_params.rx_chains_num = 1;
180 else
181 priv->hw_params.rx_chains_num =
182 num_of_ant(priv->cfg->valid_rx_ant);
183 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
184 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
186 iwl6000_set_ct_threshold(priv);
188 /* Set initial sensitivity parameters */
189 /* Set initial calibration set */
190 priv->hw_params.sens = &iwl6000_sensitivity;
191 priv->hw_params.calib_init_cfg =
192 BIT(IWL_CALIB_XTAL) |
193 BIT(IWL_CALIB_LO) |
194 BIT(IWL_CALIB_TX_IQ) |
195 BIT(IWL_CALIB_BASE_BAND);
196 if (priv->cfg->need_dc_calib)
197 priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
198 if (priv->cfg->need_temp_offset_calib)
199 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
201 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
203 return 0;
206 static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
207 struct ieee80211_channel_switch *ch_switch)
210 * MULTI-FIXME
211 * See iwl_mac_channel_switch.
213 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
214 struct iwl6000_channel_switch_cmd cmd;
215 const struct iwl_channel_info *ch_info;
216 u32 switch_time_in_usec, ucode_switch_time;
217 u16 ch;
218 u32 tsf_low;
219 u8 switch_count;
220 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
221 struct ieee80211_vif *vif = ctx->vif;
222 struct iwl_host_cmd hcmd = {
223 .id = REPLY_CHANNEL_SWITCH,
224 .len = sizeof(cmd),
225 .flags = CMD_SYNC,
226 .data = &cmd,
229 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
230 ch = ch_switch->channel->hw_value;
231 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
232 ctx->active.channel, ch);
233 cmd.channel = cpu_to_le16(ch);
234 cmd.rxon_flags = ctx->staging.flags;
235 cmd.rxon_filter_flags = ctx->staging.filter_flags;
236 switch_count = ch_switch->count;
237 tsf_low = ch_switch->timestamp & 0x0ffffffff;
239 * calculate the ucode channel switch time
240 * adding TSF as one of the factor for when to switch
242 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
243 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
244 beacon_interval)) {
245 switch_count -= (priv->ucode_beacon_time -
246 tsf_low) / beacon_interval;
247 } else
248 switch_count = 0;
250 if (switch_count <= 1)
251 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
252 else {
253 switch_time_in_usec =
254 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
255 ucode_switch_time = iwl_usecs_to_beacons(priv,
256 switch_time_in_usec,
257 beacon_interval);
258 cmd.switch_time = iwl_add_beacon_time(priv,
259 priv->ucode_beacon_time,
260 ucode_switch_time,
261 beacon_interval);
263 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
264 cmd.switch_time);
265 ch_info = iwl_get_channel_info(priv, priv->band, ch);
266 if (ch_info)
267 cmd.expect_beacon = is_channel_radar(ch_info);
268 else {
269 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
270 ctx->active.channel, ch);
271 return -EFAULT;
273 priv->switch_rxon.channel = cmd.channel;
274 priv->switch_rxon.switch_in_progress = true;
276 return iwl_send_cmd_sync(priv, &hcmd);
279 static struct iwl_lib_ops iwl6000_lib = {
280 .set_hw_params = iwl6000_hw_set_hw_params,
281 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
282 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
283 .txq_set_sched = iwlagn_txq_set_sched,
284 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
285 .txq_free_tfd = iwl_hw_txq_free_tfd,
286 .txq_init = iwl_hw_tx_queue_init,
287 .rx_handler_setup = iwlagn_rx_handler_setup,
288 .setup_deferred_work = iwlagn_setup_deferred_work,
289 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
290 .send_tx_power = iwlagn_send_tx_power,
291 .update_chain_flags = iwl_update_chain_flags,
292 .set_channel_switch = iwl6000_hw_channel_switch,
293 .apm_ops = {
294 .init = iwl_apm_init,
295 .config = iwl6000_nic_config,
297 .eeprom_ops = {
298 .regulatory_bands = {
299 EEPROM_REG_BAND_1_CHANNELS,
300 EEPROM_REG_BAND_2_CHANNELS,
301 EEPROM_REG_BAND_3_CHANNELS,
302 EEPROM_REG_BAND_4_CHANNELS,
303 EEPROM_REG_BAND_5_CHANNELS,
304 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
305 EEPROM_REG_BAND_52_HT40_CHANNELS
307 .query_addr = iwlagn_eeprom_query_addr,
308 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
310 .temp_ops = {
311 .temperature = iwlagn_temperature,
313 .txfifo_flush = iwlagn_txfifo_flush,
314 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
317 static struct iwl_lib_ops iwl6030_lib = {
318 .set_hw_params = iwl6000_hw_set_hw_params,
319 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
320 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
321 .txq_set_sched = iwlagn_txq_set_sched,
322 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
323 .txq_free_tfd = iwl_hw_txq_free_tfd,
324 .txq_init = iwl_hw_tx_queue_init,
325 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
326 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
327 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
328 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
329 .send_tx_power = iwlagn_send_tx_power,
330 .update_chain_flags = iwl_update_chain_flags,
331 .set_channel_switch = iwl6000_hw_channel_switch,
332 .apm_ops = {
333 .init = iwl_apm_init,
334 .config = iwl6000_nic_config,
336 .eeprom_ops = {
337 .regulatory_bands = {
338 EEPROM_REG_BAND_1_CHANNELS,
339 EEPROM_REG_BAND_2_CHANNELS,
340 EEPROM_REG_BAND_3_CHANNELS,
341 EEPROM_REG_BAND_4_CHANNELS,
342 EEPROM_REG_BAND_5_CHANNELS,
343 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
344 EEPROM_REG_BAND_52_HT40_CHANNELS
346 .query_addr = iwlagn_eeprom_query_addr,
347 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
349 .temp_ops = {
350 .temperature = iwlagn_temperature,
352 .txfifo_flush = iwlagn_txfifo_flush,
353 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
356 static struct iwl_nic_ops iwl6050_nic_ops = {
357 .additional_nic_config = &iwl6050_additional_nic_config,
360 static struct iwl_nic_ops iwl6150_nic_ops = {
361 .additional_nic_config = &iwl6150_additional_nic_config,
364 static const struct iwl_ops iwl6000_ops = {
365 .lib = &iwl6000_lib,
366 .hcmd = &iwlagn_hcmd,
367 .utils = &iwlagn_hcmd_utils,
370 static const struct iwl_ops iwl6050_ops = {
371 .lib = &iwl6000_lib,
372 .hcmd = &iwlagn_hcmd,
373 .utils = &iwlagn_hcmd_utils,
374 .nic = &iwl6050_nic_ops,
377 static const struct iwl_ops iwl6150_ops = {
378 .lib = &iwl6000_lib,
379 .hcmd = &iwlagn_hcmd,
380 .utils = &iwlagn_hcmd_utils,
381 .nic = &iwl6150_nic_ops,
384 static const struct iwl_ops iwl6030_ops = {
385 .lib = &iwl6030_lib,
386 .hcmd = &iwlagn_bt_hcmd,
387 .utils = &iwlagn_hcmd_utils,
390 static struct iwl_base_params iwl6000_base_params = {
391 .eeprom_size = OTP_LOW_IMAGE_SIZE,
392 .num_of_queues = IWLAGN_NUM_QUEUES,
393 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
394 .pll_cfg_val = 0,
395 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
396 .shadow_ram_support = true,
397 .led_compensation = 51,
398 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
399 .adv_thermal_throttle = true,
400 .support_ct_kill_exit = true,
401 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
402 .chain_noise_scale = 1000,
403 .wd_timeout = IWL_DEF_WD_TIMEOUT,
404 .max_event_log_size = 512,
405 .shadow_reg_enable = true,
408 static struct iwl_base_params iwl6050_base_params = {
409 .eeprom_size = OTP_LOW_IMAGE_SIZE,
410 .num_of_queues = IWLAGN_NUM_QUEUES,
411 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
412 .pll_cfg_val = 0,
413 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
414 .shadow_ram_support = true,
415 .led_compensation = 51,
416 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
417 .adv_thermal_throttle = true,
418 .support_ct_kill_exit = true,
419 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
420 .chain_noise_scale = 1500,
421 .wd_timeout = IWL_DEF_WD_TIMEOUT,
422 .max_event_log_size = 1024,
423 .shadow_reg_enable = true,
425 static struct iwl_base_params iwl6000_g2_base_params = {
426 .eeprom_size = OTP_LOW_IMAGE_SIZE,
427 .num_of_queues = IWLAGN_NUM_QUEUES,
428 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
429 .pll_cfg_val = 0,
430 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
431 .shadow_ram_support = true,
432 .led_compensation = 57,
433 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
434 .adv_thermal_throttle = true,
435 .support_ct_kill_exit = true,
436 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
437 .chain_noise_scale = 1000,
438 .wd_timeout = IWL_LONG_WD_TIMEOUT,
439 .max_event_log_size = 512,
440 .shadow_reg_enable = true,
443 static struct iwl_ht_params iwl6000_ht_params = {
444 .ht_greenfield_support = true,
445 .use_rts_for_aggregation = true, /* use rts/cts protection */
448 static struct iwl_bt_params iwl6000_bt_params = {
449 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
450 .advanced_bt_coexist = true,
451 .agg_time_limit = BT_AGG_THRESHOLD_DEF,
452 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
453 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
454 .bt_sco_disable = true,
457 #define IWL_DEVICE_6005 \
458 .fw_name_pre = IWL6005_FW_PRE, \
459 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
460 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
461 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
462 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
463 .ops = &iwl6000_ops, \
464 .base_params = &iwl6000_g2_base_params, \
465 .need_dc_calib = true, \
466 .need_temp_offset_calib = true, \
467 .led_mode = IWL_LED_RF_STATE
469 struct iwl_cfg iwl6005_2agn_cfg = {
470 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
471 IWL_DEVICE_6005,
472 .ht_params = &iwl6000_ht_params,
475 struct iwl_cfg iwl6005_2abg_cfg = {
476 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
477 IWL_DEVICE_6005,
480 struct iwl_cfg iwl6005_2bg_cfg = {
481 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
482 IWL_DEVICE_6005,
485 #define IWL_DEVICE_6030 \
486 .fw_name_pre = IWL6030_FW_PRE, \
487 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
488 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
489 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
490 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
491 .ops = &iwl6030_ops, \
492 .base_params = &iwl6000_g2_base_params, \
493 .bt_params = &iwl6000_bt_params, \
494 .need_dc_calib = true, \
495 .need_temp_offset_calib = true, \
496 .led_mode = IWL_LED_RF_STATE, \
497 .adv_pm = true \
499 struct iwl_cfg iwl6030_2agn_cfg = {
500 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
501 IWL_DEVICE_6030,
502 .ht_params = &iwl6000_ht_params,
505 struct iwl_cfg iwl6030_2abg_cfg = {
506 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
507 IWL_DEVICE_6030,
510 struct iwl_cfg iwl6030_2bgn_cfg = {
511 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
512 IWL_DEVICE_6030,
513 .ht_params = &iwl6000_ht_params,
516 struct iwl_cfg iwl6030_2bg_cfg = {
517 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
518 IWL_DEVICE_6030,
521 struct iwl_cfg iwl6035_2agn_cfg = {
522 .name = "6035 Series 2x2 AGN/BT",
523 IWL_DEVICE_6030,
524 .ht_params = &iwl6000_ht_params,
527 struct iwl_cfg iwl6035_2abg_cfg = {
528 .name = "6035 Series 2x2 ABG/BT",
529 IWL_DEVICE_6030,
532 struct iwl_cfg iwl6035_2bg_cfg = {
533 .name = "6035 Series 2x2 BG/BT",
534 IWL_DEVICE_6030,
537 struct iwl_cfg iwl1030_bgn_cfg = {
538 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
539 IWL_DEVICE_6030,
540 .ht_params = &iwl6000_ht_params,
543 struct iwl_cfg iwl1030_bg_cfg = {
544 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
545 IWL_DEVICE_6030,
548 struct iwl_cfg iwl130_bgn_cfg = {
549 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
550 IWL_DEVICE_6030,
551 .ht_params = &iwl6000_ht_params,
552 .rx_with_siso_diversity = true,
555 struct iwl_cfg iwl130_bg_cfg = {
556 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
557 IWL_DEVICE_6030,
558 .rx_with_siso_diversity = true,
562 * "i": Internal configuration, use internal Power Amplifier
564 #define IWL_DEVICE_6000i \
565 .fw_name_pre = IWL6000_FW_PRE, \
566 .ucode_api_max = IWL6000_UCODE_API_MAX, \
567 .ucode_api_min = IWL6000_UCODE_API_MIN, \
568 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
569 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
570 .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
571 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
572 .ops = &iwl6000_ops, \
573 .base_params = &iwl6000_base_params, \
574 .pa_type = IWL_PA_INTERNAL, \
575 .led_mode = IWL_LED_BLINK
577 struct iwl_cfg iwl6000i_2agn_cfg = {
578 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
579 IWL_DEVICE_6000i,
580 .ht_params = &iwl6000_ht_params,
583 struct iwl_cfg iwl6000i_2abg_cfg = {
584 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
585 IWL_DEVICE_6000i,
588 struct iwl_cfg iwl6000i_2bg_cfg = {
589 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
590 IWL_DEVICE_6000i,
593 #define IWL_DEVICE_6050 \
594 .fw_name_pre = IWL6050_FW_PRE, \
595 .ucode_api_max = IWL6050_UCODE_API_MAX, \
596 .ucode_api_min = IWL6050_UCODE_API_MIN, \
597 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
598 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
599 .ops = &iwl6050_ops, \
600 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
601 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
602 .base_params = &iwl6050_base_params, \
603 .need_dc_calib = true, \
604 .led_mode = IWL_LED_BLINK, \
605 .internal_wimax_coex = true
607 struct iwl_cfg iwl6050_2agn_cfg = {
608 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
609 IWL_DEVICE_6050,
610 .ht_params = &iwl6000_ht_params,
613 struct iwl_cfg iwl6050_2abg_cfg = {
614 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
615 IWL_DEVICE_6050,
618 struct iwl_cfg iwl6150_bgn_cfg = {
619 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
620 .fw_name_pre = IWL6050_FW_PRE,
621 .ucode_api_max = IWL6050_UCODE_API_MAX,
622 .ucode_api_min = IWL6050_UCODE_API_MIN,
623 .eeprom_ver = EEPROM_6150_EEPROM_VERSION,
624 .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION,
625 .ops = &iwl6150_ops,
626 .base_params = &iwl6050_base_params,
627 .ht_params = &iwl6000_ht_params,
628 .need_dc_calib = true,
629 .led_mode = IWL_LED_RF_STATE,
630 .internal_wimax_coex = true,
633 struct iwl_cfg iwl6000_3agn_cfg = {
634 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
635 .fw_name_pre = IWL6000_FW_PRE,
636 .ucode_api_max = IWL6000_UCODE_API_MAX,
637 .ucode_api_min = IWL6000_UCODE_API_MIN,
638 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
639 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
640 .ops = &iwl6000_ops,
641 .base_params = &iwl6000_base_params,
642 .ht_params = &iwl6000_ht_params,
643 .need_dc_calib = true,
644 .led_mode = IWL_LED_BLINK,
647 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
648 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
649 MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
650 MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));