iwlagn: merge station management functions
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
blobaece578226c63172d92023baf70fff3c36672e00
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/delay.h>
31 #include <linux/skbuff.h>
32 #include <linux/netdevice.h>
33 #include <net/mac80211.h>
34 #include <linux/etherdevice.h>
35 #include <asm/unaligned.h>
36 #include <linux/stringify.h>
38 #include "iwl-eeprom.h"
39 #include "iwl-dev.h"
40 #include "iwl-core.h"
41 #include "iwl-io.h"
42 #include "iwl-agn.h"
43 #include "iwl-helpers.h"
44 #include "iwl-agn-hw.h"
45 #include "iwl-6000-hw.h"
46 #include "iwl-trans.h"
47 #include "iwl-shared.h"
48 #include "iwl-cfg.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 6
55 /* Oldest version we won't warn about */
56 #define IWL6000G2_UCODE_API_OK 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
63 #define IWL6000_FW_PRE "iwlwifi-6000-"
64 #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
66 #define IWL6050_FW_PRE "iwlwifi-6050-"
67 #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
69 #define IWL6005_FW_PRE "iwlwifi-6000g2a-"
70 #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
72 #define IWL6030_FW_PRE "iwlwifi-6000g2b-"
73 #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
75 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
77 /* want Celsius */
78 hw_params(priv).ct_kill_threshold = CT_KILL_THRESHOLD;
79 hw_params(priv).ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
82 static void iwl6050_additional_nic_config(struct iwl_priv *priv)
84 /* Indicate calibration version to uCode. */
85 if (iwlagn_eeprom_calib_version(priv) >= 6)
86 iwl_set_bit(bus(priv), CSR_GP_DRIVER_REG,
87 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
90 static void iwl6150_additional_nic_config(struct iwl_priv *priv)
92 /* Indicate calibration version to uCode. */
93 if (iwlagn_eeprom_calib_version(priv) >= 6)
94 iwl_set_bit(bus(priv), CSR_GP_DRIVER_REG,
95 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
96 iwl_set_bit(bus(priv), CSR_GP_DRIVER_REG,
97 CSR_GP_DRIVER_REG_BIT_6050_1x2);
100 /* NIC configuration for 6000 series */
101 static void iwl6000_nic_config(struct iwl_priv *priv)
103 iwl_rf_config(priv);
105 /* no locking required for register write */
106 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
107 /* 2x2 IPA phy type */
108 iwl_write32(bus(priv), CSR_GP_DRIVER_REG,
109 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
111 /* do additional nic configuration if needed */
112 if (priv->cfg->additional_nic_config)
113 priv->cfg->additional_nic_config(priv);
116 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
117 .min_nrg_cck = 110,
118 .max_nrg_cck = 0, /* not used, set to 0 */
119 .auto_corr_min_ofdm = 80,
120 .auto_corr_min_ofdm_mrc = 128,
121 .auto_corr_min_ofdm_x1 = 105,
122 .auto_corr_min_ofdm_mrc_x1 = 192,
124 .auto_corr_max_ofdm = 145,
125 .auto_corr_max_ofdm_mrc = 232,
126 .auto_corr_max_ofdm_x1 = 110,
127 .auto_corr_max_ofdm_mrc_x1 = 232,
129 .auto_corr_min_cck = 125,
130 .auto_corr_max_cck = 175,
131 .auto_corr_min_cck_mrc = 160,
132 .auto_corr_max_cck_mrc = 310,
133 .nrg_th_cck = 110,
134 .nrg_th_ofdm = 110,
136 .barker_corr_th_min = 190,
137 .barker_corr_th_min_mrc = 336,
138 .nrg_th_cca = 62,
141 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
143 if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
144 iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
145 priv->cfg->base_params->num_of_queues =
146 iwlagn_mod_params.num_of_queues;
148 hw_params(priv).max_txq_num = priv->cfg->base_params->num_of_queues;
149 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
151 hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE;
152 hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE;
154 hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
155 BIT(IEEE80211_BAND_5GHZ);
157 hw_params(priv).tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
158 if (priv->cfg->rx_with_siso_diversity)
159 hw_params(priv).rx_chains_num = 1;
160 else
161 hw_params(priv).rx_chains_num =
162 num_of_ant(priv->cfg->valid_rx_ant);
163 hw_params(priv).valid_tx_ant = priv->cfg->valid_tx_ant;
164 hw_params(priv).valid_rx_ant = priv->cfg->valid_rx_ant;
166 iwl6000_set_ct_threshold(priv);
168 /* Set initial sensitivity parameters */
169 /* Set initial calibration set */
170 hw_params(priv).sens = &iwl6000_sensitivity;
171 hw_params(priv).calib_init_cfg =
172 BIT(IWL_CALIB_XTAL) |
173 BIT(IWL_CALIB_LO) |
174 BIT(IWL_CALIB_TX_IQ) |
175 BIT(IWL_CALIB_BASE_BAND);
176 if (priv->cfg->need_dc_calib)
177 hw_params(priv).calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX;
178 if (priv->cfg->need_temp_offset_calib)
179 hw_params(priv).calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
181 return 0;
184 static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
185 struct ieee80211_channel_switch *ch_switch)
188 * MULTI-FIXME
189 * See iwlagn_mac_channel_switch.
191 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
192 struct iwl6000_channel_switch_cmd cmd;
193 const struct iwl_channel_info *ch_info;
194 u32 switch_time_in_usec, ucode_switch_time;
195 u16 ch;
196 u32 tsf_low;
197 u8 switch_count;
198 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
199 struct ieee80211_vif *vif = ctx->vif;
200 struct iwl_host_cmd hcmd = {
201 .id = REPLY_CHANNEL_SWITCH,
202 .len = { sizeof(cmd), },
203 .flags = CMD_SYNC,
204 .data = { &cmd, },
207 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
208 ch = ch_switch->channel->hw_value;
209 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
210 ctx->active.channel, ch);
211 cmd.channel = cpu_to_le16(ch);
212 cmd.rxon_flags = ctx->staging.flags;
213 cmd.rxon_filter_flags = ctx->staging.filter_flags;
214 switch_count = ch_switch->count;
215 tsf_low = ch_switch->timestamp & 0x0ffffffff;
217 * calculate the ucode channel switch time
218 * adding TSF as one of the factor for when to switch
220 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
221 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
222 beacon_interval)) {
223 switch_count -= (priv->ucode_beacon_time -
224 tsf_low) / beacon_interval;
225 } else
226 switch_count = 0;
228 if (switch_count <= 1)
229 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
230 else {
231 switch_time_in_usec =
232 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
233 ucode_switch_time = iwl_usecs_to_beacons(priv,
234 switch_time_in_usec,
235 beacon_interval);
236 cmd.switch_time = iwl_add_beacon_time(priv,
237 priv->ucode_beacon_time,
238 ucode_switch_time,
239 beacon_interval);
241 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
242 cmd.switch_time);
243 ch_info = iwl_get_channel_info(priv, priv->band, ch);
244 if (ch_info)
245 cmd.expect_beacon = is_channel_radar(ch_info);
246 else {
247 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
248 ctx->active.channel, ch);
249 return -EFAULT;
252 return iwl_trans_send_cmd(trans(priv), &hcmd);
255 static struct iwl_lib_ops iwl6000_lib = {
256 .set_hw_params = iwl6000_hw_set_hw_params,
257 .set_channel_switch = iwl6000_hw_channel_switch,
258 .nic_config = iwl6000_nic_config,
259 .eeprom_ops = {
260 .regulatory_bands = {
261 EEPROM_REG_BAND_1_CHANNELS,
262 EEPROM_REG_BAND_2_CHANNELS,
263 EEPROM_REG_BAND_3_CHANNELS,
264 EEPROM_REG_BAND_4_CHANNELS,
265 EEPROM_REG_BAND_5_CHANNELS,
266 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
267 EEPROM_REG_BAND_52_HT40_CHANNELS
269 .update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
271 .temperature = iwlagn_temperature,
274 static struct iwl_lib_ops iwl6030_lib = {
275 .set_hw_params = iwl6000_hw_set_hw_params,
276 .bt_rx_handler_setup = iwlagn_bt_rx_handler_setup,
277 .bt_setup_deferred_work = iwlagn_bt_setup_deferred_work,
278 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
279 .set_channel_switch = iwl6000_hw_channel_switch,
280 .nic_config = iwl6000_nic_config,
281 .eeprom_ops = {
282 .regulatory_bands = {
283 EEPROM_REG_BAND_1_CHANNELS,
284 EEPROM_REG_BAND_2_CHANNELS,
285 EEPROM_REG_BAND_3_CHANNELS,
286 EEPROM_REG_BAND_4_CHANNELS,
287 EEPROM_REG_BAND_5_CHANNELS,
288 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
289 EEPROM_REG_BAND_52_HT40_CHANNELS
291 .update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
293 .temperature = iwlagn_temperature,
296 static struct iwl_base_params iwl6000_base_params = {
297 .eeprom_size = OTP_LOW_IMAGE_SIZE,
298 .num_of_queues = IWLAGN_NUM_QUEUES,
299 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
300 .pll_cfg_val = 0,
301 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
302 .shadow_ram_support = true,
303 .led_compensation = 51,
304 .adv_thermal_throttle = true,
305 .support_ct_kill_exit = true,
306 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
307 .chain_noise_scale = 1000,
308 .wd_timeout = IWL_DEF_WD_TIMEOUT,
309 .max_event_log_size = 512,
310 .shadow_reg_enable = true,
313 static struct iwl_base_params iwl6050_base_params = {
314 .eeprom_size = OTP_LOW_IMAGE_SIZE,
315 .num_of_queues = IWLAGN_NUM_QUEUES,
316 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
317 .pll_cfg_val = 0,
318 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
319 .shadow_ram_support = true,
320 .led_compensation = 51,
321 .adv_thermal_throttle = true,
322 .support_ct_kill_exit = true,
323 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
324 .chain_noise_scale = 1500,
325 .wd_timeout = IWL_DEF_WD_TIMEOUT,
326 .max_event_log_size = 1024,
327 .shadow_reg_enable = true,
329 static struct iwl_base_params iwl6000_g2_base_params = {
330 .eeprom_size = OTP_LOW_IMAGE_SIZE,
331 .num_of_queues = IWLAGN_NUM_QUEUES,
332 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
333 .pll_cfg_val = 0,
334 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
335 .shadow_ram_support = true,
336 .led_compensation = 57,
337 .adv_thermal_throttle = true,
338 .support_ct_kill_exit = true,
339 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
340 .chain_noise_scale = 1000,
341 .wd_timeout = IWL_LONG_WD_TIMEOUT,
342 .max_event_log_size = 512,
343 .shadow_reg_enable = true,
346 static struct iwl_ht_params iwl6000_ht_params = {
347 .ht_greenfield_support = true,
348 .use_rts_for_aggregation = true, /* use rts/cts protection */
351 static struct iwl_bt_params iwl6000_bt_params = {
352 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
353 .advanced_bt_coexist = true,
354 .agg_time_limit = BT_AGG_THRESHOLD_DEF,
355 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
356 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
357 .bt_sco_disable = true,
360 #define IWL_DEVICE_6005 \
361 .fw_name_pre = IWL6005_FW_PRE, \
362 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
363 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
364 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
365 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
366 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
367 .lib = &iwl6000_lib, \
368 .base_params = &iwl6000_g2_base_params, \
369 .need_dc_calib = true, \
370 .need_temp_offset_calib = true, \
371 .led_mode = IWL_LED_RF_STATE
373 struct iwl_cfg iwl6005_2agn_cfg = {
374 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
375 IWL_DEVICE_6005,
376 .ht_params = &iwl6000_ht_params,
379 struct iwl_cfg iwl6005_2abg_cfg = {
380 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
381 IWL_DEVICE_6005,
384 struct iwl_cfg iwl6005_2bg_cfg = {
385 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
386 IWL_DEVICE_6005,
389 struct iwl_cfg iwl6005_2agn_sff_cfg = {
390 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
391 IWL_DEVICE_6005,
392 .ht_params = &iwl6000_ht_params,
395 struct iwl_cfg iwl6005_2agn_d_cfg = {
396 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
397 IWL_DEVICE_6005,
398 .ht_params = &iwl6000_ht_params,
401 #define IWL_DEVICE_6030 \
402 .fw_name_pre = IWL6030_FW_PRE, \
403 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
404 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
405 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
406 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
407 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
408 .lib = &iwl6030_lib, \
409 .base_params = &iwl6000_g2_base_params, \
410 .bt_params = &iwl6000_bt_params, \
411 .need_dc_calib = true, \
412 .need_temp_offset_calib = true, \
413 .led_mode = IWL_LED_RF_STATE, \
414 .adv_pm = true \
416 struct iwl_cfg iwl6030_2agn_cfg = {
417 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
418 IWL_DEVICE_6030,
419 .ht_params = &iwl6000_ht_params,
422 struct iwl_cfg iwl6030_2abg_cfg = {
423 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
424 IWL_DEVICE_6030,
427 struct iwl_cfg iwl6030_2bgn_cfg = {
428 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
429 IWL_DEVICE_6030,
430 .ht_params = &iwl6000_ht_params,
433 struct iwl_cfg iwl6030_2bg_cfg = {
434 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
435 IWL_DEVICE_6030,
438 struct iwl_cfg iwl6035_2agn_cfg = {
439 .name = "6035 Series 2x2 AGN/BT",
440 IWL_DEVICE_6030,
441 .ht_params = &iwl6000_ht_params,
444 struct iwl_cfg iwl6035_2abg_cfg = {
445 .name = "6035 Series 2x2 ABG/BT",
446 IWL_DEVICE_6030,
449 struct iwl_cfg iwl6035_2bg_cfg = {
450 .name = "6035 Series 2x2 BG/BT",
451 IWL_DEVICE_6030,
454 struct iwl_cfg iwl1030_bgn_cfg = {
455 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
456 IWL_DEVICE_6030,
457 .ht_params = &iwl6000_ht_params,
460 struct iwl_cfg iwl1030_bg_cfg = {
461 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
462 IWL_DEVICE_6030,
465 struct iwl_cfg iwl130_bgn_cfg = {
466 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
467 IWL_DEVICE_6030,
468 .ht_params = &iwl6000_ht_params,
469 .rx_with_siso_diversity = true,
472 struct iwl_cfg iwl130_bg_cfg = {
473 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
474 IWL_DEVICE_6030,
475 .rx_with_siso_diversity = true,
479 * "i": Internal configuration, use internal Power Amplifier
481 #define IWL_DEVICE_6000i \
482 .fw_name_pre = IWL6000_FW_PRE, \
483 .ucode_api_max = IWL6000_UCODE_API_MAX, \
484 .ucode_api_min = IWL6000_UCODE_API_MIN, \
485 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
486 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
487 .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
488 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
489 .lib = &iwl6000_lib, \
490 .base_params = &iwl6000_base_params, \
491 .pa_type = IWL_PA_INTERNAL, \
492 .led_mode = IWL_LED_BLINK
494 struct iwl_cfg iwl6000i_2agn_cfg = {
495 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
496 IWL_DEVICE_6000i,
497 .ht_params = &iwl6000_ht_params,
500 struct iwl_cfg iwl6000i_2abg_cfg = {
501 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
502 IWL_DEVICE_6000i,
505 struct iwl_cfg iwl6000i_2bg_cfg = {
506 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
507 IWL_DEVICE_6000i,
510 #define IWL_DEVICE_6050 \
511 .fw_name_pre = IWL6050_FW_PRE, \
512 .ucode_api_max = IWL6050_UCODE_API_MAX, \
513 .ucode_api_min = IWL6050_UCODE_API_MIN, \
514 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
515 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
516 .lib = &iwl6000_lib, \
517 .additional_nic_config = iwl6050_additional_nic_config, \
518 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
519 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
520 .base_params = &iwl6050_base_params, \
521 .need_dc_calib = true, \
522 .led_mode = IWL_LED_BLINK, \
523 .internal_wimax_coex = true
525 struct iwl_cfg iwl6050_2agn_cfg = {
526 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
527 IWL_DEVICE_6050,
528 .ht_params = &iwl6000_ht_params,
531 struct iwl_cfg iwl6050_2abg_cfg = {
532 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
533 IWL_DEVICE_6050,
536 #define IWL_DEVICE_6150 \
537 .fw_name_pre = IWL6050_FW_PRE, \
538 .ucode_api_max = IWL6050_UCODE_API_MAX, \
539 .ucode_api_min = IWL6050_UCODE_API_MIN, \
540 .lib = &iwl6000_lib, \
541 .additional_nic_config = iwl6150_additional_nic_config, \
542 .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \
543 .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
544 .base_params = &iwl6050_base_params, \
545 .need_dc_calib = true, \
546 .led_mode = IWL_LED_BLINK, \
547 .internal_wimax_coex = true
549 struct iwl_cfg iwl6150_bgn_cfg = {
550 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
551 IWL_DEVICE_6150,
552 .ht_params = &iwl6000_ht_params,
555 struct iwl_cfg iwl6150_bg_cfg = {
556 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
557 IWL_DEVICE_6150,
560 struct iwl_cfg iwl6000_3agn_cfg = {
561 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
562 .fw_name_pre = IWL6000_FW_PRE,
563 .ucode_api_max = IWL6000_UCODE_API_MAX,
564 .ucode_api_min = IWL6000_UCODE_API_MIN,
565 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
566 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
567 .lib = &iwl6000_lib,
568 .base_params = &iwl6000_base_params,
569 .ht_params = &iwl6000_ht_params,
570 .need_dc_calib = true,
571 .led_mode = IWL_LED_BLINK,
574 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
575 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
576 MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
577 MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));