6f4ee27e07c969532e480c1ad017a41d96407b29
[linux-2.6.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
1 /******************************************************************************
2  *
3  * Copyright(c) 2008-2009 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
49 /* Highest firmware API version supported */
50 #define IWL6000_UCODE_API_MAX 4
51 #define IWL6050_UCODE_API_MAX 4
52
53 /* Lowest firmware API version supported */
54 #define IWL6000_UCODE_API_MIN 1
55 #define IWL6050_UCODE_API_MIN 1
56
57 #define IWL6000_FW_PRE "iwlwifi-6000-"
58 #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
59 #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
60
61 #define IWL6050_FW_PRE "iwlwifi-6050-"
62 #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
63 #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
64
65 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
66 {
67         /* want Celsius */
68         priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
69         priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
70 }
71
72 /* NIC configuration for 6000 series */
73 static void iwl6000_nic_config(struct iwl_priv *priv)
74 {
75         u16 radio_cfg;
76
77         radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
78
79         /* write radio config values to register */
80         if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
81                 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
82                             EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
83                             EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
84                             EEPROM_RF_CFG_DASH_MSK(radio_cfg));
85
86         /* set CSR_HW_CONFIG_REG for uCode use */
87         iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
88                     CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
89                     CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
90
91         /* no locking required for register write */
92         if (priv->cfg->pa_type == IWL_PA_HYBRID) {
93                 /* 2x2 hybrid phy type */
94                 iwl_write32(priv, CSR_GP_DRIVER_REG,
95                              CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
96         } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
97                 /* 2x2 IPA phy type */
98                 iwl_write32(priv, CSR_GP_DRIVER_REG,
99                              CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
100         }
101         /* else do nothing, uCode configured */
102 }
103
104 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
105         .min_nrg_cck = 97,
106         .max_nrg_cck = 0, /* not used, set to 0 */
107         .auto_corr_min_ofdm = 80,
108         .auto_corr_min_ofdm_mrc = 128,
109         .auto_corr_min_ofdm_x1 = 105,
110         .auto_corr_min_ofdm_mrc_x1 = 192,
111
112         .auto_corr_max_ofdm = 145,
113         .auto_corr_max_ofdm_mrc = 232,
114         .auto_corr_max_ofdm_x1 = 145,
115         .auto_corr_max_ofdm_mrc_x1 = 232,
116
117         .auto_corr_min_cck = 125,
118         .auto_corr_max_cck = 175,
119         .auto_corr_min_cck_mrc = 160,
120         .auto_corr_max_cck_mrc = 310,
121         .nrg_th_cck = 97,
122         .nrg_th_ofdm = 100,
123 };
124
125 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
126 {
127         if ((priv->cfg->mod_params->num_of_queues > IWL50_NUM_QUEUES) ||
128             (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) {
129                 IWL_ERR(priv,
130                         "invalid queues_num, should be between %d and %d\n",
131                         IWL_MIN_NUM_QUEUES, IWL50_NUM_QUEUES);
132                 return -EINVAL;
133         }
134
135         priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues;
136         priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
137         priv->hw_params.scd_bc_tbls_size =
138                         IWL50_NUM_QUEUES * sizeof(struct iwl5000_scd_bc_tbl);
139         priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
140         priv->hw_params.max_stations = IWL5000_STATION_COUNT;
141         priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
142
143         priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
144         priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
145
146         priv->hw_params.max_bsm_size = 0;
147         priv->hw_params.ht40_channel =  BIT(IEEE80211_BAND_2GHZ) |
148                                         BIT(IEEE80211_BAND_5GHZ);
149         priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
150
151         priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
152         priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
153         priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
154         priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
155
156         if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
157                 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
158
159         /* Set initial sensitivity parameters */
160         /* Set initial calibration set */
161         priv->hw_params.sens = &iwl6000_sensitivity;
162         priv->hw_params.calib_init_cfg =
163                         BIT(IWL_CALIB_XTAL)             |
164                         BIT(IWL_CALIB_LO)               |
165                         BIT(IWL_CALIB_TX_IQ)            |
166                         BIT(IWL_CALIB_TX_IQ_PERD)       |
167                         BIT(IWL_CALIB_BASE_BAND);
168
169         return 0;
170 }
171
172 static struct iwl_lib_ops iwl6000_lib = {
173         .set_hw_params = iwl6000_hw_set_hw_params,
174         .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
175         .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
176         .txq_set_sched = iwl5000_txq_set_sched,
177         .txq_agg_enable = iwl5000_txq_agg_enable,
178         .txq_agg_disable = iwl5000_txq_agg_disable,
179         .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
180         .txq_free_tfd = iwl_hw_txq_free_tfd,
181         .txq_init = iwl_hw_tx_queue_init,
182         .rx_handler_setup = iwl5000_rx_handler_setup,
183         .setup_deferred_work = iwl5000_setup_deferred_work,
184         .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
185         .load_ucode = iwl5000_load_ucode,
186         .dump_nic_event_log = iwl_dump_nic_event_log,
187         .dump_nic_error_log = iwl_dump_nic_error_log,
188         .init_alive_start = iwl5000_init_alive_start,
189         .alive_notify = iwl5000_alive_notify,
190         .send_tx_power = iwl5000_send_tx_power,
191         .update_chain_flags = iwl_update_chain_flags,
192         .apm_ops = {
193                 .init = iwl5000_apm_init,
194                 .reset = iwl5000_apm_reset,
195                 .stop = iwl5000_apm_stop,
196                 .config = iwl6000_nic_config,
197                 .set_pwr_src = iwl_set_pwr_src,
198         },
199         .eeprom_ops = {
200                 .regulatory_bands = {
201                         EEPROM_5000_REG_BAND_1_CHANNELS,
202                         EEPROM_5000_REG_BAND_2_CHANNELS,
203                         EEPROM_5000_REG_BAND_3_CHANNELS,
204                         EEPROM_5000_REG_BAND_4_CHANNELS,
205                         EEPROM_5000_REG_BAND_5_CHANNELS,
206                         EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
207                         EEPROM_5000_REG_BAND_52_HT40_CHANNELS
208                 },
209                 .verify_signature  = iwlcore_eeprom_verify_signature,
210                 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
211                 .release_semaphore = iwlcore_eeprom_release_semaphore,
212                 .calib_version  = iwl5000_eeprom_calib_version,
213                 .query_addr = iwl5000_eeprom_query_addr,
214                 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
215         },
216         .post_associate = iwl_post_associate,
217         .isr = iwl_isr_ict,
218         .config_ap = iwl_config_ap,
219         .temp_ops = {
220                 .temperature = iwl5000_temperature,
221                 .set_ct_kill = iwl6000_set_ct_threshold,
222          },
223 };
224
225 static struct iwl_ops iwl6000_ops = {
226         .ucode = &iwl5000_ucode,
227         .lib = &iwl6000_lib,
228         .hcmd = &iwl5000_hcmd,
229         .utils = &iwl5000_hcmd_utils,
230 };
231
232
233 /*
234  * "h": Hybrid configuration, use both internal and external Power Amplifier
235  */
236 struct iwl_cfg iwl6000h_2agn_cfg = {
237         .name = "6000 Series 2x2 AGN",
238         .fw_name_pre = IWL6000_FW_PRE,
239         .ucode_api_max = IWL6000_UCODE_API_MAX,
240         .ucode_api_min = IWL6000_UCODE_API_MIN,
241         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
242         .ops = &iwl6000_ops,
243         .eeprom_size = OTP_LOW_IMAGE_SIZE,
244         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
245         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
246         .mod_params = &iwl50_mod_params,
247         .valid_tx_ant = ANT_AB,
248         .valid_rx_ant = ANT_AB,
249         .need_pll_cfg = false,
250         .pa_type = IWL_PA_HYBRID,
251         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
252         .shadow_ram_support = true,
253         .ht_greenfield_support = true,
254         .led_compensation = 51,
255         .use_rts_for_ht = true, /* use rts/cts protection */
256         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
257         .supports_idle = true,
258 };
259
260 struct iwl_cfg iwl6000h_2abg_cfg = {
261         .name = "6000 Series 2x2 ABG",
262         .fw_name_pre = IWL6000_FW_PRE,
263         .ucode_api_max = IWL6000_UCODE_API_MAX,
264         .ucode_api_min = IWL6000_UCODE_API_MIN,
265         .sku = IWL_SKU_A|IWL_SKU_G,
266         .ops = &iwl6000_ops,
267         .eeprom_size = OTP_LOW_IMAGE_SIZE,
268         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
269         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
270         .mod_params = &iwl50_mod_params,
271         .valid_tx_ant = ANT_AB,
272         .valid_rx_ant = ANT_AB,
273         .need_pll_cfg = false,
274         .pa_type = IWL_PA_HYBRID,
275         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
276         .shadow_ram_support = true,
277         .ht_greenfield_support = true,
278         .led_compensation = 51,
279         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
280         .supports_idle = true,
281 };
282
283 struct iwl_cfg iwl6000h_2bg_cfg = {
284         .name = "6000 Series 2x2 BG",
285         .fw_name_pre = IWL6000_FW_PRE,
286         .ucode_api_max = IWL6000_UCODE_API_MAX,
287         .ucode_api_min = IWL6000_UCODE_API_MIN,
288         .sku = IWL_SKU_G,
289         .ops = &iwl6000_ops,
290         .eeprom_size = OTP_LOW_IMAGE_SIZE,
291         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
292         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
293         .mod_params = &iwl50_mod_params,
294         .valid_tx_ant = ANT_AB,
295         .valid_rx_ant = ANT_AB,
296         .need_pll_cfg = false,
297         .pa_type = IWL_PA_HYBRID,
298         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
299         .shadow_ram_support = true,
300         .ht_greenfield_support = true,
301         .led_compensation = 51,
302         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
303         .supports_idle = true,
304 };
305
306 /*
307  * "i": Internal configuration, use internal Power Amplifier
308  */
309 struct iwl_cfg iwl6000i_2agn_cfg = {
310         .name = "6000 Series 2x2 AGN",
311         .fw_name_pre = IWL6000_FW_PRE,
312         .ucode_api_max = IWL6000_UCODE_API_MAX,
313         .ucode_api_min = IWL6000_UCODE_API_MIN,
314         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
315         .ops = &iwl6000_ops,
316         .eeprom_size = OTP_LOW_IMAGE_SIZE,
317         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
318         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
319         .mod_params = &iwl50_mod_params,
320         .valid_tx_ant = ANT_BC,
321         .valid_rx_ant = ANT_BC,
322         .need_pll_cfg = false,
323         .pa_type = IWL_PA_INTERNAL,
324         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
325         .shadow_ram_support = true,
326         .ht_greenfield_support = true,
327         .led_compensation = 51,
328         .use_rts_for_ht = true, /* use rts/cts protection */
329         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
330         .supports_idle = true,
331 };
332
333 struct iwl_cfg iwl6000i_2abg_cfg = {
334         .name = "6000 Series 2x2 ABG",
335         .fw_name_pre = IWL6000_FW_PRE,
336         .ucode_api_max = IWL6000_UCODE_API_MAX,
337         .ucode_api_min = IWL6000_UCODE_API_MIN,
338         .sku = IWL_SKU_A|IWL_SKU_G,
339         .ops = &iwl6000_ops,
340         .eeprom_size = OTP_LOW_IMAGE_SIZE,
341         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
342         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
343         .mod_params = &iwl50_mod_params,
344         .valid_tx_ant = ANT_BC,
345         .valid_rx_ant = ANT_BC,
346         .need_pll_cfg = false,
347         .pa_type = IWL_PA_INTERNAL,
348         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
349         .shadow_ram_support = true,
350         .ht_greenfield_support = true,
351         .led_compensation = 51,
352         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
353         .supports_idle = true,
354 };
355
356 struct iwl_cfg iwl6000i_2bg_cfg = {
357         .name = "6000 Series 2x2 BG",
358         .fw_name_pre = IWL6000_FW_PRE,
359         .ucode_api_max = IWL6000_UCODE_API_MAX,
360         .ucode_api_min = IWL6000_UCODE_API_MIN,
361         .sku = IWL_SKU_G,
362         .ops = &iwl6000_ops,
363         .eeprom_size = OTP_LOW_IMAGE_SIZE,
364         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
365         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
366         .mod_params = &iwl50_mod_params,
367         .valid_tx_ant = ANT_BC,
368         .valid_rx_ant = ANT_BC,
369         .need_pll_cfg = false,
370         .pa_type = IWL_PA_INTERNAL,
371         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
372         .shadow_ram_support = true,
373         .ht_greenfield_support = true,
374         .led_compensation = 51,
375         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
376         .supports_idle = true,
377 };
378
379 struct iwl_cfg iwl6050_2agn_cfg = {
380         .name = "6050 Series 2x2 AGN",
381         .fw_name_pre = IWL6050_FW_PRE,
382         .ucode_api_max = IWL6050_UCODE_API_MAX,
383         .ucode_api_min = IWL6050_UCODE_API_MIN,
384         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
385         .ops = &iwl6000_ops,
386         .eeprom_size = OTP_LOW_IMAGE_SIZE,
387         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
388         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
389         .mod_params = &iwl50_mod_params,
390         .valid_tx_ant = ANT_AB,
391         .valid_rx_ant = ANT_AB,
392         .need_pll_cfg = false,
393         .pa_type = IWL_PA_SYSTEM,
394         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
395         .shadow_ram_support = true,
396         .ht_greenfield_support = true,
397         .led_compensation = 51,
398         .use_rts_for_ht = true, /* use rts/cts protection */
399         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
400         .supports_idle = true,
401 };
402
403 struct iwl_cfg iwl6050_2abg_cfg = {
404         .name = "6050 Series 2x2 ABG",
405         .fw_name_pre = IWL6050_FW_PRE,
406         .ucode_api_max = IWL6050_UCODE_API_MAX,
407         .ucode_api_min = IWL6050_UCODE_API_MIN,
408         .sku = IWL_SKU_A|IWL_SKU_G,
409         .ops = &iwl6000_ops,
410         .eeprom_size = OTP_LOW_IMAGE_SIZE,
411         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
412         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
413         .mod_params = &iwl50_mod_params,
414         .valid_tx_ant = ANT_AB,
415         .valid_rx_ant = ANT_AB,
416         .need_pll_cfg = false,
417         .pa_type = IWL_PA_SYSTEM,
418         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
419         .shadow_ram_support = true,
420         .ht_greenfield_support = true,
421         .led_compensation = 51,
422         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
423         .supports_idle = true,
424 };
425
426 struct iwl_cfg iwl6000_3agn_cfg = {
427         .name = "6000 Series 3x3 AGN",
428         .fw_name_pre = IWL6000_FW_PRE,
429         .ucode_api_max = IWL6000_UCODE_API_MAX,
430         .ucode_api_min = IWL6000_UCODE_API_MIN,
431         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
432         .ops = &iwl6000_ops,
433         .eeprom_size = OTP_LOW_IMAGE_SIZE,
434         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
435         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
436         .mod_params = &iwl50_mod_params,
437         .valid_tx_ant = ANT_ABC,
438         .valid_rx_ant = ANT_ABC,
439         .need_pll_cfg = false,
440         .pa_type = IWL_PA_SYSTEM,
441         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
442         .shadow_ram_support = true,
443         .ht_greenfield_support = true,
444         .led_compensation = 51,
445         .use_rts_for_ht = true, /* use rts/cts protection */
446         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
447         .supports_idle = true,
448 };
449
450 struct iwl_cfg iwl6050_3agn_cfg = {
451         .name = "6050 Series 3x3 AGN",
452         .fw_name_pre = IWL6050_FW_PRE,
453         .ucode_api_max = IWL6050_UCODE_API_MAX,
454         .ucode_api_min = IWL6050_UCODE_API_MIN,
455         .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
456         .ops = &iwl6000_ops,
457         .eeprom_size = OTP_LOW_IMAGE_SIZE,
458         .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
459         .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
460         .mod_params = &iwl50_mod_params,
461         .valid_tx_ant = ANT_ABC,
462         .valid_rx_ant = ANT_ABC,
463         .need_pll_cfg = false,
464         .pa_type = IWL_PA_SYSTEM,
465         .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
466         .shadow_ram_support = true,
467         .ht_greenfield_support = true,
468         .led_compensation = 51,
469         .use_rts_for_ht = true, /* use rts/cts protection */
470         .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
471         .supports_idle = true,
472 };
473
474 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
475 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));