]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/net/wireless/iwlwifi/iwl-6000.c
iwlwifi: Add chain noise scaling factor
[mirror_ubuntu-artful-kernel.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
1 /******************************************************************************
2 *
3 * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
4 *
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.
8 *
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.
13 *
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
17 *
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
20 *
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
24 *
25 *****************************************************************************/
26
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>
39
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-helpers.h"
46 #include "iwl-5000-hw.h"
47 #include "iwl-6000-hw.h"
48 #include "iwl-agn-led.h"
49
50 /* Highest firmware API version supported */
51 #define IWL6000_UCODE_API_MAX 4
52 #define IWL6050_UCODE_API_MAX 4
53
54 /* Lowest firmware API version supported */
55 #define IWL6000_UCODE_API_MIN 4
56 #define IWL6050_UCODE_API_MIN 4
57
58 #define IWL6000_FW_PRE "iwlwifi-6000-"
59 #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
60 #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
61
62 #define IWL6050_FW_PRE "iwlwifi-6050-"
63 #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
64 #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
65
66 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
67 {
68 /* want Celsius */
69 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
70 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
71 }
72
73 /* NIC configuration for 6000 series */
74 static void iwl6000_nic_config(struct iwl_priv *priv)
75 {
76 u16 radio_cfg;
77
78 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
79
80 /* write radio config values to register */
81 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
82 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
83 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
84 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
85 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
86
87 /* set CSR_HW_CONFIG_REG for uCode use */
88 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
89 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
90 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
91
92 /* no locking required for register write */
93 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
94 /* 2x2 IPA phy type */
95 iwl_write32(priv, CSR_GP_DRIVER_REG,
96 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
97 }
98 /* else do nothing, uCode configured */
99 }
100
101 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
102 .min_nrg_cck = 97,
103 .max_nrg_cck = 0, /* not used, set to 0 */
104 .auto_corr_min_ofdm = 80,
105 .auto_corr_min_ofdm_mrc = 128,
106 .auto_corr_min_ofdm_x1 = 105,
107 .auto_corr_min_ofdm_mrc_x1 = 192,
108
109 .auto_corr_max_ofdm = 145,
110 .auto_corr_max_ofdm_mrc = 232,
111 .auto_corr_max_ofdm_x1 = 110,
112 .auto_corr_max_ofdm_mrc_x1 = 232,
113
114 .auto_corr_min_cck = 125,
115 .auto_corr_max_cck = 175,
116 .auto_corr_min_cck_mrc = 160,
117 .auto_corr_max_cck_mrc = 310,
118 .nrg_th_cck = 97,
119 .nrg_th_ofdm = 100,
120
121 .barker_corr_th_min = 190,
122 .barker_corr_th_min_mrc = 390,
123 .nrg_th_cca = 62,
124 };
125
126 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
127 {
128 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
129 priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
130 priv->cfg->num_of_queues =
131 priv->cfg->mod_params->num_of_queues;
132
133 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
134 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
135 priv->hw_params.scd_bc_tbls_size =
136 priv->cfg->num_of_queues *
137 sizeof(struct iwl5000_scd_bc_tbl);
138 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
139 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
140 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
141
142 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
143 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
144
145 priv->hw_params.max_bsm_size = 0;
146 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
147 BIT(IEEE80211_BAND_5GHZ);
148 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
149
150 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
151 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
152 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
153 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
154
155 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
156 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
157
158 /* Set initial sensitivity parameters */
159 /* Set initial calibration set */
160 priv->hw_params.sens = &iwl6000_sensitivity;
161 switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
162 case CSR_HW_REV_TYPE_6x50:
163 priv->hw_params.calib_init_cfg =
164 BIT(IWL_CALIB_XTAL) |
165 BIT(IWL_CALIB_DC) |
166 BIT(IWL_CALIB_LO) |
167 BIT(IWL_CALIB_TX_IQ) |
168 BIT(IWL_CALIB_BASE_BAND);
169
170 break;
171 default:
172 priv->hw_params.calib_init_cfg =
173 BIT(IWL_CALIB_XTAL) |
174 BIT(IWL_CALIB_LO) |
175 BIT(IWL_CALIB_TX_IQ) |
176 BIT(IWL_CALIB_BASE_BAND);
177 break;
178 }
179
180 return 0;
181 }
182
183 static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
184 {
185 struct iwl6000_channel_switch_cmd cmd;
186 const struct iwl_channel_info *ch_info;
187 struct iwl_host_cmd hcmd = {
188 .id = REPLY_CHANNEL_SWITCH,
189 .len = sizeof(cmd),
190 .flags = CMD_SIZE_HUGE,
191 .data = &cmd,
192 };
193
194 IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
195 priv->active_rxon.channel, channel);
196
197 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
198 cmd.channel = cpu_to_le16(channel);
199 cmd.rxon_flags = priv->staging_rxon.flags;
200 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
201 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
202 ch_info = iwl_get_channel_info(priv, priv->band, channel);
203 if (ch_info)
204 cmd.expect_beacon = is_channel_radar(ch_info);
205 else {
206 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
207 priv->active_rxon.channel, channel);
208 return -EFAULT;
209 }
210 priv->switch_rxon.channel = cpu_to_le16(channel);
211 priv->switch_rxon.switch_in_progress = true;
212
213 return iwl_send_cmd_sync(priv, &hcmd);
214 }
215
216 static struct iwl_lib_ops iwl6000_lib = {
217 .set_hw_params = iwl6000_hw_set_hw_params,
218 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
219 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
220 .txq_set_sched = iwl5000_txq_set_sched,
221 .txq_agg_enable = iwl5000_txq_agg_enable,
222 .txq_agg_disable = iwl5000_txq_agg_disable,
223 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
224 .txq_free_tfd = iwl_hw_txq_free_tfd,
225 .txq_init = iwl_hw_tx_queue_init,
226 .rx_handler_setup = iwl5000_rx_handler_setup,
227 .setup_deferred_work = iwl5000_setup_deferred_work,
228 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
229 .load_ucode = iwl5000_load_ucode,
230 .dump_nic_event_log = iwl_dump_nic_event_log,
231 .dump_nic_error_log = iwl_dump_nic_error_log,
232 .dump_csr = iwl_dump_csr,
233 .dump_fh = iwl_dump_fh,
234 .init_alive_start = iwl5000_init_alive_start,
235 .alive_notify = iwl5000_alive_notify,
236 .send_tx_power = iwl5000_send_tx_power,
237 .update_chain_flags = iwl_update_chain_flags,
238 .set_channel_switch = iwl6000_hw_channel_switch,
239 .apm_ops = {
240 .init = iwl_apm_init,
241 .stop = iwl_apm_stop,
242 .config = iwl6000_nic_config,
243 .set_pwr_src = iwl_set_pwr_src,
244 },
245 .eeprom_ops = {
246 .regulatory_bands = {
247 EEPROM_5000_REG_BAND_1_CHANNELS,
248 EEPROM_5000_REG_BAND_2_CHANNELS,
249 EEPROM_5000_REG_BAND_3_CHANNELS,
250 EEPROM_5000_REG_BAND_4_CHANNELS,
251 EEPROM_5000_REG_BAND_5_CHANNELS,
252 EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
253 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
254 },
255 .verify_signature = iwlcore_eeprom_verify_signature,
256 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
257 .release_semaphore = iwlcore_eeprom_release_semaphore,
258 .calib_version = iwl5000_eeprom_calib_version,
259 .query_addr = iwl5000_eeprom_query_addr,
260 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
261 },
262 .post_associate = iwl_post_associate,
263 .isr = iwl_isr_ict,
264 .config_ap = iwl_config_ap,
265 .temp_ops = {
266 .temperature = iwl5000_temperature,
267 .set_ct_kill = iwl6000_set_ct_threshold,
268 },
269 .add_bcast_station = iwl_add_bcast_station,
270 };
271
272 static const struct iwl_ops iwl6000_ops = {
273 .ucode = &iwl5000_ucode,
274 .lib = &iwl6000_lib,
275 .hcmd = &iwl5000_hcmd,
276 .utils = &iwl5000_hcmd_utils,
277 .led = &iwlagn_led_ops,
278 };
279
280 static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
281 .get_hcmd_size = iwl5000_get_hcmd_size,
282 .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
283 .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
284 .calc_rssi = iwl5000_calc_rssi,
285 };
286
287 static const struct iwl_ops iwl6050_ops = {
288 .ucode = &iwl5000_ucode,
289 .lib = &iwl6000_lib,
290 .hcmd = &iwl5000_hcmd,
291 .utils = &iwl6050_hcmd_utils,
292 .led = &iwlagn_led_ops,
293 };
294
295 /*
296 * "i": Internal configuration, use internal Power Amplifier
297 */
298 struct iwl_cfg iwl6000i_2agn_cfg = {
299 .name = "6000 Series 2x2 AGN",
300 .fw_name_pre = IWL6000_FW_PRE,
301 .ucode_api_max = IWL6000_UCODE_API_MAX,
302 .ucode_api_min = IWL6000_UCODE_API_MIN,
303 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
304 .ops = &iwl6000_ops,
305 .eeprom_size = OTP_LOW_IMAGE_SIZE,
306 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
307 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
308 .num_of_queues = IWL50_NUM_QUEUES,
309 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
310 .mod_params = &iwl50_mod_params,
311 .valid_tx_ant = ANT_BC,
312 .valid_rx_ant = ANT_BC,
313 .pll_cfg_val = 0,
314 .set_l0s = true,
315 .use_bsm = false,
316 .pa_type = IWL_PA_INTERNAL,
317 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
318 .shadow_ram_support = true,
319 .ht_greenfield_support = true,
320 .led_compensation = 51,
321 .use_rts_for_ht = true, /* use rts/cts protection */
322 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
323 .supports_idle = true,
324 .adv_thermal_throttle = true,
325 .support_ct_kill_exit = true,
326 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
327 .chain_noise_scale = 1000,
328 };
329
330 struct iwl_cfg iwl6000i_2abg_cfg = {
331 .name = "6000 Series 2x2 ABG",
332 .fw_name_pre = IWL6000_FW_PRE,
333 .ucode_api_max = IWL6000_UCODE_API_MAX,
334 .ucode_api_min = IWL6000_UCODE_API_MIN,
335 .sku = IWL_SKU_A|IWL_SKU_G,
336 .ops = &iwl6000_ops,
337 .eeprom_size = OTP_LOW_IMAGE_SIZE,
338 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
339 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
340 .num_of_queues = IWL50_NUM_QUEUES,
341 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
342 .mod_params = &iwl50_mod_params,
343 .valid_tx_ant = ANT_BC,
344 .valid_rx_ant = ANT_BC,
345 .pll_cfg_val = 0,
346 .set_l0s = true,
347 .use_bsm = false,
348 .pa_type = IWL_PA_INTERNAL,
349 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
350 .shadow_ram_support = true,
351 .ht_greenfield_support = true,
352 .led_compensation = 51,
353 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
354 .supports_idle = true,
355 .adv_thermal_throttle = true,
356 .support_ct_kill_exit = true,
357 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
358 .chain_noise_scale = 1000,
359 };
360
361 struct iwl_cfg iwl6000i_2bg_cfg = {
362 .name = "6000 Series 2x2 BG",
363 .fw_name_pre = IWL6000_FW_PRE,
364 .ucode_api_max = IWL6000_UCODE_API_MAX,
365 .ucode_api_min = IWL6000_UCODE_API_MIN,
366 .sku = IWL_SKU_G,
367 .ops = &iwl6000_ops,
368 .eeprom_size = OTP_LOW_IMAGE_SIZE,
369 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
370 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
371 .num_of_queues = IWL50_NUM_QUEUES,
372 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
373 .mod_params = &iwl50_mod_params,
374 .valid_tx_ant = ANT_BC,
375 .valid_rx_ant = ANT_BC,
376 .pll_cfg_val = 0,
377 .set_l0s = true,
378 .use_bsm = false,
379 .pa_type = IWL_PA_INTERNAL,
380 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
381 .shadow_ram_support = true,
382 .ht_greenfield_support = true,
383 .led_compensation = 51,
384 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
385 .supports_idle = true,
386 .adv_thermal_throttle = true,
387 .support_ct_kill_exit = true,
388 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
389 .chain_noise_scale = 1000,
390 };
391
392 struct iwl_cfg iwl6050_2agn_cfg = {
393 .name = "6050 Series 2x2 AGN",
394 .fw_name_pre = IWL6050_FW_PRE,
395 .ucode_api_max = IWL6050_UCODE_API_MAX,
396 .ucode_api_min = IWL6050_UCODE_API_MIN,
397 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
398 .ops = &iwl6050_ops,
399 .eeprom_size = OTP_LOW_IMAGE_SIZE,
400 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
401 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
402 .num_of_queues = IWL50_NUM_QUEUES,
403 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
404 .mod_params = &iwl50_mod_params,
405 .valid_tx_ant = ANT_AB,
406 .valid_rx_ant = ANT_AB,
407 .pll_cfg_val = 0,
408 .set_l0s = true,
409 .use_bsm = false,
410 .pa_type = IWL_PA_SYSTEM,
411 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
412 .shadow_ram_support = true,
413 .ht_greenfield_support = true,
414 .led_compensation = 51,
415 .use_rts_for_ht = true, /* use rts/cts protection */
416 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
417 .supports_idle = true,
418 .adv_thermal_throttle = true,
419 .support_ct_kill_exit = true,
420 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
421 .chain_noise_scale = 1500,
422 };
423
424 struct iwl_cfg iwl6050_2abg_cfg = {
425 .name = "6050 Series 2x2 ABG",
426 .fw_name_pre = IWL6050_FW_PRE,
427 .ucode_api_max = IWL6050_UCODE_API_MAX,
428 .ucode_api_min = IWL6050_UCODE_API_MIN,
429 .sku = IWL_SKU_A|IWL_SKU_G,
430 .ops = &iwl6050_ops,
431 .eeprom_size = OTP_LOW_IMAGE_SIZE,
432 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
433 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
434 .num_of_queues = IWL50_NUM_QUEUES,
435 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
436 .mod_params = &iwl50_mod_params,
437 .valid_tx_ant = ANT_AB,
438 .valid_rx_ant = ANT_AB,
439 .pll_cfg_val = 0,
440 .set_l0s = true,
441 .use_bsm = false,
442 .pa_type = IWL_PA_SYSTEM,
443 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
444 .shadow_ram_support = true,
445 .ht_greenfield_support = true,
446 .led_compensation = 51,
447 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
448 .supports_idle = true,
449 .adv_thermal_throttle = true,
450 .support_ct_kill_exit = true,
451 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
452 .chain_noise_scale = 1500,
453 };
454
455 struct iwl_cfg iwl6000_3agn_cfg = {
456 .name = "6000 Series 3x3 AGN",
457 .fw_name_pre = IWL6000_FW_PRE,
458 .ucode_api_max = IWL6000_UCODE_API_MAX,
459 .ucode_api_min = IWL6000_UCODE_API_MIN,
460 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
461 .ops = &iwl6000_ops,
462 .eeprom_size = OTP_LOW_IMAGE_SIZE,
463 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
464 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
465 .num_of_queues = IWL50_NUM_QUEUES,
466 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
467 .mod_params = &iwl50_mod_params,
468 .valid_tx_ant = ANT_ABC,
469 .valid_rx_ant = ANT_ABC,
470 .pll_cfg_val = 0,
471 .set_l0s = true,
472 .use_bsm = false,
473 .pa_type = IWL_PA_SYSTEM,
474 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
475 .shadow_ram_support = true,
476 .ht_greenfield_support = true,
477 .led_compensation = 51,
478 .use_rts_for_ht = true, /* use rts/cts protection */
479 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
480 .supports_idle = true,
481 .adv_thermal_throttle = true,
482 .support_ct_kill_exit = true,
483 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
484 .chain_noise_scale = 1000,
485 };
486
487 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
488 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));