1 /******************************************************************************
3 * Copyright(c) 2008 - 2010 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
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"
46 #include "iwl-helpers.h"
47 #include "iwl-agn-hw.h"
48 #include "iwl-6000-hw.h"
49 #include "iwl-agn-led.h"
50 #include "iwl-agn-debugfs.h"
52 /* Highest firmware API version supported */
53 #define IWL6000_UCODE_API_MAX 4
54 #define IWL6050_UCODE_API_MAX 5
55 #define IWL6000G2_UCODE_API_MAX 5
56 #define IWL130_UCODE_API_MAX 5
58 /* Lowest firmware API version supported */
59 #define IWL6000_UCODE_API_MIN 4
60 #define IWL6050_UCODE_API_MIN 4
61 #define IWL6000G2_UCODE_API_MIN 4
62 #define IWL130_UCODE_API_MIN 5
64 #define IWL6000_FW_PRE "iwlwifi-6000-"
65 #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
66 #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
68 #define IWL6050_FW_PRE "iwlwifi-6050-"
69 #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
70 #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
72 #define IWL6000G2A_FW_PRE "iwlwifi-6000g2a-"
73 #define _IWL6000G2A_MODULE_FIRMWARE(api) IWL6000G2A_FW_PRE #api ".ucode"
74 #define IWL6000G2A_MODULE_FIRMWARE(api) _IWL6000G2A_MODULE_FIRMWARE(api)
76 #define IWL6000G2B_FW_PRE "iwlwifi-6000g2b-"
77 #define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode"
78 #define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api)
80 #define IWL130_FW_PRE "iwlwifi-130-"
81 #define _IWL130_MODULE_FIRMWARE(api) IWL130_FW_PRE #api ".ucode"
82 #define IWL130_MODULE_FIRMWARE(api) _IWL130_MODULE_FIRMWARE(api)
84 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
87 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
88 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
91 static void iwl6050_additional_nic_config(struct iwl_priv *priv)
93 /* Indicate calibration version to uCode. */
94 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
95 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
96 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
99 static void iwl6050g2_additional_nic_config(struct iwl_priv *priv)
101 /* Indicate calibration version to uCode. */
102 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
103 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
104 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
105 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
106 CSR_GP_DRIVER_REG_BIT_6050_1x2);
109 /* NIC configuration for 6000 series */
110 static void iwl6000_nic_config(struct iwl_priv *priv)
114 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
116 /* write radio config values to register */
117 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
118 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
119 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
120 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
121 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
123 /* set CSR_HW_CONFIG_REG for uCode use */
124 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
125 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
126 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
128 /* no locking required for register write */
129 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
130 /* 2x2 IPA phy type */
131 iwl_write32(priv, CSR_GP_DRIVER_REG,
132 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
134 /* do additional nic configuration if needed */
135 if (priv->cfg->ops->nic &&
136 priv->cfg->ops->nic->additional_nic_config) {
137 priv->cfg->ops->nic->additional_nic_config(priv);
141 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
143 .max_nrg_cck = 0, /* not used, set to 0 */
144 .auto_corr_min_ofdm = 80,
145 .auto_corr_min_ofdm_mrc = 128,
146 .auto_corr_min_ofdm_x1 = 105,
147 .auto_corr_min_ofdm_mrc_x1 = 192,
149 .auto_corr_max_ofdm = 145,
150 .auto_corr_max_ofdm_mrc = 232,
151 .auto_corr_max_ofdm_x1 = 110,
152 .auto_corr_max_ofdm_mrc_x1 = 232,
154 .auto_corr_min_cck = 125,
155 .auto_corr_max_cck = 175,
156 .auto_corr_min_cck_mrc = 160,
157 .auto_corr_max_cck_mrc = 310,
161 .barker_corr_th_min = 190,
162 .barker_corr_th_min_mrc = 390,
166 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
168 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
169 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
170 priv->cfg->base_params->num_of_queues =
171 priv->cfg->mod_params->num_of_queues;
173 priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
174 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
175 priv->hw_params.scd_bc_tbls_size =
176 priv->cfg->base_params->num_of_queues *
177 sizeof(struct iwlagn_scd_bc_tbl);
178 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
179 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
180 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
182 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
183 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
185 priv->hw_params.max_bsm_size = 0;
186 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
187 BIT(IEEE80211_BAND_5GHZ);
188 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
190 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
191 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_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;
195 iwl6000_set_ct_threshold(priv);
197 /* Set initial sensitivity parameters */
198 /* Set initial calibration set */
199 priv->hw_params.sens = &iwl6000_sensitivity;
200 priv->hw_params.calib_init_cfg =
201 BIT(IWL_CALIB_XTAL) |
203 BIT(IWL_CALIB_TX_IQ) |
204 BIT(IWL_CALIB_BASE_BAND);
205 if (priv->cfg->need_dc_calib)
206 priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
208 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
213 static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
214 struct ieee80211_channel_switch *ch_switch)
218 * See iwl_mac_channel_switch.
220 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
221 struct iwl6000_channel_switch_cmd cmd;
222 const struct iwl_channel_info *ch_info;
223 u32 switch_time_in_usec, ucode_switch_time;
227 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
228 struct ieee80211_vif *vif = ctx->vif;
229 struct iwl_host_cmd hcmd = {
230 .id = REPLY_CHANNEL_SWITCH,
236 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
237 ch = ch_switch->channel->hw_value;
238 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
239 ctx->active.channel, ch);
240 cmd.channel = cpu_to_le16(ch);
241 cmd.rxon_flags = ctx->staging.flags;
242 cmd.rxon_filter_flags = ctx->staging.filter_flags;
243 switch_count = ch_switch->count;
244 tsf_low = ch_switch->timestamp & 0x0ffffffff;
246 * calculate the ucode channel switch time
247 * adding TSF as one of the factor for when to switch
249 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
250 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
252 switch_count -= (priv->ucode_beacon_time -
253 tsf_low) / beacon_interval;
257 if (switch_count <= 1)
258 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
260 switch_time_in_usec =
261 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
262 ucode_switch_time = iwl_usecs_to_beacons(priv,
265 cmd.switch_time = iwl_add_beacon_time(priv,
266 priv->ucode_beacon_time,
270 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
272 ch_info = iwl_get_channel_info(priv, priv->band, ch);
274 cmd.expect_beacon = is_channel_radar(ch_info);
276 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
277 ctx->active.channel, ch);
280 priv->switch_rxon.channel = cmd.channel;
281 priv->switch_rxon.switch_in_progress = true;
283 return iwl_send_cmd_sync(priv, &hcmd);
286 static struct iwl_lib_ops iwl6000_lib = {
287 .set_hw_params = iwl6000_hw_set_hw_params,
288 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
289 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
290 .txq_set_sched = iwlagn_txq_set_sched,
291 .txq_agg_enable = iwlagn_txq_agg_enable,
292 .txq_agg_disable = iwlagn_txq_agg_disable,
293 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
294 .txq_free_tfd = iwl_hw_txq_free_tfd,
295 .txq_init = iwl_hw_tx_queue_init,
296 .rx_handler_setup = iwlagn_rx_handler_setup,
297 .setup_deferred_work = iwlagn_setup_deferred_work,
298 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
299 .load_ucode = iwlagn_load_ucode,
300 .dump_nic_event_log = iwl_dump_nic_event_log,
301 .dump_nic_error_log = iwl_dump_nic_error_log,
302 .dump_csr = iwl_dump_csr,
303 .dump_fh = iwl_dump_fh,
304 .init_alive_start = iwlagn_init_alive_start,
305 .alive_notify = iwlagn_alive_notify,
306 .send_tx_power = iwlagn_send_tx_power,
307 .update_chain_flags = iwl_update_chain_flags,
308 .set_channel_switch = iwl6000_hw_channel_switch,
310 .init = iwl_apm_init,
311 .config = iwl6000_nic_config,
314 .regulatory_bands = {
315 EEPROM_REG_BAND_1_CHANNELS,
316 EEPROM_REG_BAND_2_CHANNELS,
317 EEPROM_REG_BAND_3_CHANNELS,
318 EEPROM_REG_BAND_4_CHANNELS,
319 EEPROM_REG_BAND_5_CHANNELS,
320 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
321 EEPROM_REG_BAND_52_HT40_CHANNELS
323 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
324 .release_semaphore = iwlcore_eeprom_release_semaphore,
325 .calib_version = iwlagn_eeprom_calib_version,
326 .query_addr = iwlagn_eeprom_query_addr,
327 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
329 .post_associate = iwl_post_associate,
331 .config_ap = iwl_config_ap,
333 .temperature = iwlagn_temperature,
335 .manage_ibss_station = iwlagn_manage_ibss_station,
336 .update_bcast_stations = iwl_update_bcast_stations,
338 .rx_stats_read = iwl_ucode_rx_stats_read,
339 .tx_stats_read = iwl_ucode_tx_stats_read,
340 .general_stats_read = iwl_ucode_general_stats_read,
341 .bt_stats_read = iwl_ucode_bt_stats_read,
342 .reply_tx_error = iwl_reply_tx_error_read,
344 .recover_from_tx_stall = iwl_bg_monitor_recover,
345 .check_plcp_health = iwl_good_plcp_health,
346 .check_ack_health = iwl_good_ack_health,
347 .txfifo_flush = iwlagn_txfifo_flush,
348 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
350 .lower_power_detection = iwl_tt_is_low_power_state,
351 .tt_power_mode = iwl_tt_current_power_mode,
352 .ct_kill_check = iwl_check_for_ct_kill,
356 static struct iwl_lib_ops iwl6000g2b_lib = {
357 .set_hw_params = iwl6000_hw_set_hw_params,
358 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
359 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
360 .txq_set_sched = iwlagn_txq_set_sched,
361 .txq_agg_enable = iwlagn_txq_agg_enable,
362 .txq_agg_disable = iwlagn_txq_agg_disable,
363 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
364 .txq_free_tfd = iwl_hw_txq_free_tfd,
365 .txq_init = iwl_hw_tx_queue_init,
366 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
367 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
368 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
369 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
370 .load_ucode = iwlagn_load_ucode,
371 .dump_nic_event_log = iwl_dump_nic_event_log,
372 .dump_nic_error_log = iwl_dump_nic_error_log,
373 .dump_csr = iwl_dump_csr,
374 .dump_fh = iwl_dump_fh,
375 .init_alive_start = iwlagn_init_alive_start,
376 .alive_notify = iwlagn_alive_notify,
377 .send_tx_power = iwlagn_send_tx_power,
378 .update_chain_flags = iwl_update_chain_flags,
379 .set_channel_switch = iwl6000_hw_channel_switch,
381 .init = iwl_apm_init,
382 .config = iwl6000_nic_config,
385 .regulatory_bands = {
386 EEPROM_REG_BAND_1_CHANNELS,
387 EEPROM_REG_BAND_2_CHANNELS,
388 EEPROM_REG_BAND_3_CHANNELS,
389 EEPROM_REG_BAND_4_CHANNELS,
390 EEPROM_REG_BAND_5_CHANNELS,
391 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
392 EEPROM_REG_BAND_52_HT40_CHANNELS
394 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
395 .release_semaphore = iwlcore_eeprom_release_semaphore,
396 .calib_version = iwlagn_eeprom_calib_version,
397 .query_addr = iwlagn_eeprom_query_addr,
398 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
400 .post_associate = iwl_post_associate,
402 .config_ap = iwl_config_ap,
404 .temperature = iwlagn_temperature,
406 .manage_ibss_station = iwlagn_manage_ibss_station,
407 .update_bcast_stations = iwl_update_bcast_stations,
409 .rx_stats_read = iwl_ucode_rx_stats_read,
410 .tx_stats_read = iwl_ucode_tx_stats_read,
411 .general_stats_read = iwl_ucode_general_stats_read,
412 .bt_stats_read = iwl_ucode_bt_stats_read,
413 .reply_tx_error = iwl_reply_tx_error_read,
415 .recover_from_tx_stall = iwl_bg_monitor_recover,
416 .check_plcp_health = iwl_good_plcp_health,
417 .check_ack_health = iwl_good_ack_health,
418 .txfifo_flush = iwlagn_txfifo_flush,
419 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
421 .lower_power_detection = iwl_tt_is_low_power_state,
422 .tt_power_mode = iwl_tt_current_power_mode,
423 .ct_kill_check = iwl_check_for_ct_kill,
427 static struct iwl_nic_ops iwl6050_nic_ops = {
428 .additional_nic_config = &iwl6050_additional_nic_config,
431 static struct iwl_nic_ops iwl6050g2_nic_ops = {
432 .additional_nic_config = &iwl6050g2_additional_nic_config,
435 static const struct iwl_ops iwl6000_ops = {
437 .hcmd = &iwlagn_hcmd,
438 .utils = &iwlagn_hcmd_utils,
439 .led = &iwlagn_led_ops,
442 static const struct iwl_ops iwl6050_ops = {
444 .hcmd = &iwlagn_hcmd,
445 .utils = &iwlagn_hcmd_utils,
446 .led = &iwlagn_led_ops,
447 .nic = &iwl6050_nic_ops,
450 static const struct iwl_ops iwl6050g2_ops = {
452 .hcmd = &iwlagn_hcmd,
453 .utils = &iwlagn_hcmd_utils,
454 .led = &iwlagn_led_ops,
455 .nic = &iwl6050g2_nic_ops,
458 static const struct iwl_ops iwl6000g2b_ops = {
459 .lib = &iwl6000g2b_lib,
460 .hcmd = &iwlagn_bt_hcmd,
461 .utils = &iwlagn_hcmd_utils,
462 .led = &iwlagn_led_ops,
465 static struct iwl_base_params iwl6000_base_params = {
466 .eeprom_size = OTP_LOW_IMAGE_SIZE,
467 .num_of_queues = IWLAGN_NUM_QUEUES,
468 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
472 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
473 .shadow_ram_support = true,
474 .led_compensation = 51,
475 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
476 .supports_idle = true,
477 .adv_thermal_throttle = true,
478 .support_ct_kill_exit = true,
479 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
480 .chain_noise_scale = 1000,
481 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
482 .max_event_log_size = 512,
483 .ucode_tracing = true,
484 .sensitivity_calib_by_driver = true,
485 .chain_noise_calib_by_driver = true,
488 static struct iwl_base_params iwl6050_base_params = {
489 .eeprom_size = OTP_LOW_IMAGE_SIZE,
490 .num_of_queues = IWLAGN_NUM_QUEUES,
491 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
495 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
496 .shadow_ram_support = true,
497 .led_compensation = 51,
498 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
499 .supports_idle = true,
500 .adv_thermal_throttle = true,
501 .support_ct_kill_exit = true,
502 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
503 .chain_noise_scale = 1500,
504 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
505 .max_event_log_size = 1024,
506 .ucode_tracing = true,
507 .sensitivity_calib_by_driver = true,
508 .chain_noise_calib_by_driver = true,
511 static struct iwl_ht_params iwl6000_ht_params = {
512 .ht_greenfield_support = true,
513 .use_rts_for_aggregation = true, /* use rts/cts protection */
516 static struct iwl_bt_params iwl6000_bt_params = {
517 .bt_statistics = true,
518 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
519 .advanced_bt_coexist = true,
520 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
521 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
524 struct iwl_cfg iwl6000g2a_2agn_cfg = {
525 .name = "6000 Series 2x2 AGN Gen2a",
526 .fw_name_pre = IWL6000G2A_FW_PRE,
527 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
528 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
529 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
530 .valid_tx_ant = ANT_AB,
531 .valid_rx_ant = ANT_AB,
532 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
533 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
535 .mod_params = &iwlagn_mod_params,
536 .base_params = &iwl6000_base_params,
537 .ht_params = &iwl6000_ht_params,
538 .need_dc_calib = true,
541 struct iwl_cfg iwl6000g2a_2abg_cfg = {
542 .name = "6000 Series 2x2 ABG Gen2a",
543 .fw_name_pre = IWL6000G2A_FW_PRE,
544 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
545 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
546 .sku = IWL_SKU_A|IWL_SKU_G,
547 .valid_tx_ant = ANT_AB,
548 .valid_rx_ant = ANT_AB,
549 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
550 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
552 .mod_params = &iwlagn_mod_params,
553 .base_params = &iwl6000_base_params,
554 .need_dc_calib = true,
557 struct iwl_cfg iwl6000g2a_2bg_cfg = {
558 .name = "6000 Series 2x2 BG Gen2a",
559 .fw_name_pre = IWL6000G2A_FW_PRE,
560 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
561 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
563 .valid_tx_ant = ANT_AB,
564 .valid_rx_ant = ANT_AB,
565 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
566 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
568 .mod_params = &iwlagn_mod_params,
569 .base_params = &iwl6000_base_params,
570 .need_dc_calib = true,
573 struct iwl_cfg iwl6000g2b_2agn_cfg = {
574 .name = "6000 Series 2x2 AGN Gen2b",
575 .fw_name_pre = IWL6000G2B_FW_PRE,
576 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
577 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
578 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
579 .valid_tx_ant = ANT_AB,
580 .valid_rx_ant = ANT_AB,
581 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
582 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
583 .ops = &iwl6000g2b_ops,
584 .mod_params = &iwlagn_mod_params,
585 .base_params = &iwl6000_base_params,
586 .bt_params = &iwl6000_bt_params,
587 .ht_params = &iwl6000_ht_params,
588 .need_dc_calib = true,
589 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
590 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
593 struct iwl_cfg iwl6000g2b_2abg_cfg = {
594 .name = "6000 Series 2x2 ABG Gen2b",
595 .fw_name_pre = IWL6000G2B_FW_PRE,
596 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
597 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
598 .sku = IWL_SKU_A|IWL_SKU_G,
599 .valid_tx_ant = ANT_AB,
600 .valid_rx_ant = ANT_AB,
601 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
602 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
603 .ops = &iwl6000g2b_ops,
604 .mod_params = &iwlagn_mod_params,
605 .base_params = &iwl6000_base_params,
606 .bt_params = &iwl6000_bt_params,
607 .need_dc_calib = true,
608 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
609 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
612 struct iwl_cfg iwl6000g2b_2bgn_cfg = {
613 .name = "6000 Series 2x2 BGN Gen2b",
614 .fw_name_pre = IWL6000G2B_FW_PRE,
615 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
616 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
617 .sku = IWL_SKU_G|IWL_SKU_N,
618 .valid_tx_ant = ANT_AB,
619 .valid_rx_ant = ANT_AB,
620 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
621 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
622 .ops = &iwl6000g2b_ops,
623 .mod_params = &iwlagn_mod_params,
624 .base_params = &iwl6000_base_params,
625 .bt_params = &iwl6000_bt_params,
626 .ht_params = &iwl6000_ht_params,
627 .need_dc_calib = true,
628 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
629 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
632 struct iwl_cfg iwl6000g2b_2bg_cfg = {
633 .name = "6000 Series 2x2 BG Gen2b",
634 .fw_name_pre = IWL6000G2B_FW_PRE,
635 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
636 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
638 .valid_tx_ant = ANT_AB,
639 .valid_rx_ant = ANT_AB,
640 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
641 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
642 .ops = &iwl6000g2b_ops,
643 .mod_params = &iwlagn_mod_params,
644 .base_params = &iwl6000_base_params,
645 .bt_params = &iwl6000_bt_params,
646 .need_dc_calib = true,
647 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
648 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
651 struct iwl_cfg iwl6000g2b_bgn_cfg = {
652 .name = "6000 Series 1x2 BGN Gen2b",
653 .fw_name_pre = IWL6000G2B_FW_PRE,
654 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
655 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
656 .sku = IWL_SKU_G|IWL_SKU_N,
657 .valid_tx_ant = ANT_A,
658 .valid_rx_ant = ANT_AB,
659 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
660 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
661 .ops = &iwl6000g2b_ops,
662 .mod_params = &iwlagn_mod_params,
663 .base_params = &iwl6000_base_params,
664 .bt_params = &iwl6000_bt_params,
665 .ht_params = &iwl6000_ht_params,
666 .need_dc_calib = true,
667 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
668 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
671 struct iwl_cfg iwl6000g2b_bg_cfg = {
672 .name = "6000 Series 1x2 BG Gen2b",
673 .fw_name_pre = IWL6000G2B_FW_PRE,
674 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
675 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
677 .valid_tx_ant = ANT_A,
678 .valid_rx_ant = ANT_AB,
679 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
680 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
681 .ops = &iwl6000g2b_ops,
682 .mod_params = &iwlagn_mod_params,
683 .base_params = &iwl6000_base_params,
684 .bt_params = &iwl6000_bt_params,
685 .need_dc_calib = true,
686 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
687 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
691 * "i": Internal configuration, use internal Power Amplifier
693 struct iwl_cfg iwl6000i_2agn_cfg = {
694 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
695 .fw_name_pre = IWL6000_FW_PRE,
696 .ucode_api_max = IWL6000_UCODE_API_MAX,
697 .ucode_api_min = IWL6000_UCODE_API_MIN,
698 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
699 .valid_tx_ant = ANT_BC,
700 .valid_rx_ant = ANT_BC,
701 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
702 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
704 .mod_params = &iwlagn_mod_params,
705 .base_params = &iwl6000_base_params,
706 .ht_params = &iwl6000_ht_params,
707 .pa_type = IWL_PA_INTERNAL,
710 struct iwl_cfg iwl6000i_2abg_cfg = {
711 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
712 .fw_name_pre = IWL6000_FW_PRE,
713 .ucode_api_max = IWL6000_UCODE_API_MAX,
714 .ucode_api_min = IWL6000_UCODE_API_MIN,
715 .sku = IWL_SKU_A|IWL_SKU_G,
716 .valid_tx_ant = ANT_BC,
717 .valid_rx_ant = ANT_BC,
718 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
719 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
721 .mod_params = &iwlagn_mod_params,
722 .base_params = &iwl6000_base_params,
723 .pa_type = IWL_PA_INTERNAL,
726 struct iwl_cfg iwl6000i_2bg_cfg = {
727 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
728 .fw_name_pre = IWL6000_FW_PRE,
729 .ucode_api_max = IWL6000_UCODE_API_MAX,
730 .ucode_api_min = IWL6000_UCODE_API_MIN,
732 .valid_tx_ant = ANT_BC,
733 .valid_rx_ant = ANT_BC,
734 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
735 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
737 .mod_params = &iwlagn_mod_params,
738 .base_params = &iwl6000_base_params,
739 .pa_type = IWL_PA_INTERNAL,
742 struct iwl_cfg iwl6050_2agn_cfg = {
743 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
744 .fw_name_pre = IWL6050_FW_PRE,
745 .ucode_api_max = IWL6050_UCODE_API_MAX,
746 .ucode_api_min = IWL6050_UCODE_API_MIN,
747 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
748 .valid_tx_ant = ANT_AB,
749 .valid_rx_ant = ANT_AB,
751 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
752 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
753 .mod_params = &iwlagn_mod_params,
754 .base_params = &iwl6050_base_params,
755 .ht_params = &iwl6000_ht_params,
756 .need_dc_calib = true,
759 struct iwl_cfg iwl6050g2_bgn_cfg = {
760 .name = "6050 Series 1x2 BGN Gen2",
761 .fw_name_pre = IWL6050_FW_PRE,
762 .ucode_api_max = IWL6050_UCODE_API_MAX,
763 .ucode_api_min = IWL6050_UCODE_API_MIN,
764 .sku = IWL_SKU_G|IWL_SKU_N,
765 .valid_tx_ant = ANT_A,
766 .valid_rx_ant = ANT_AB,
767 .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
768 .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
769 .ops = &iwl6050g2_ops,
770 .mod_params = &iwlagn_mod_params,
771 .base_params = &iwl6050_base_params,
772 .ht_params = &iwl6000_ht_params,
773 .need_dc_calib = true,
776 struct iwl_cfg iwl6050_2abg_cfg = {
777 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
778 .fw_name_pre = IWL6050_FW_PRE,
779 .ucode_api_max = IWL6050_UCODE_API_MAX,
780 .ucode_api_min = IWL6050_UCODE_API_MIN,
781 .sku = IWL_SKU_A|IWL_SKU_G,
782 .valid_tx_ant = ANT_AB,
783 .valid_rx_ant = ANT_AB,
784 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
785 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
787 .mod_params = &iwlagn_mod_params,
788 .base_params = &iwl6050_base_params,
789 .need_dc_calib = true,
792 struct iwl_cfg iwl6000_3agn_cfg = {
793 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
794 .fw_name_pre = IWL6000_FW_PRE,
795 .ucode_api_max = IWL6000_UCODE_API_MAX,
796 .ucode_api_min = IWL6000_UCODE_API_MIN,
797 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
798 .valid_tx_ant = ANT_ABC,
799 .valid_rx_ant = ANT_ABC,
800 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
801 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
803 .mod_params = &iwlagn_mod_params,
804 .base_params = &iwl6000_base_params,
805 .ht_params = &iwl6000_ht_params,
806 .need_dc_calib = true,
809 struct iwl_cfg iwl130_bgn_cfg = {
810 .name = "Intel(R) 130 Series 1x1 BGN",
811 .fw_name_pre = IWL6000G2B_FW_PRE,
812 .ucode_api_max = IWL130_UCODE_API_MAX,
813 .ucode_api_min = IWL130_UCODE_API_MIN,
814 .sku = IWL_SKU_G|IWL_SKU_N,
815 .valid_tx_ant = ANT_A,
816 .valid_rx_ant = ANT_A,
817 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
818 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
819 .ops = &iwl6000g2b_ops,
820 .mod_params = &iwlagn_mod_params,
821 .base_params = &iwl6000_base_params,
822 .bt_params = &iwl6000_bt_params,
823 .ht_params = &iwl6000_ht_params,
824 .need_dc_calib = true,
825 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
826 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
829 struct iwl_cfg iwl130_bg_cfg = {
830 .name = "Intel(R) 130 Series 1x2 BG",
831 .fw_name_pre = IWL6000G2B_FW_PRE,
832 .ucode_api_max = IWL130_UCODE_API_MAX,
833 .ucode_api_min = IWL130_UCODE_API_MIN,
835 .valid_tx_ant = ANT_A,
836 .valid_rx_ant = ANT_A,
837 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
838 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
839 .ops = &iwl6000g2b_ops,
840 .mod_params = &iwlagn_mod_params,
841 .base_params = &iwl6000_base_params,
842 .bt_params = &iwl6000_bt_params,
843 .need_dc_calib = true,
844 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
845 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
848 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
849 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
850 MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
851 MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
852 MODULE_FIRMWARE(IWL130_MODULE_FIRMWARE(IWL130_UCODE_API_MAX));