blob: f8c710db6e6f90345a8a1f42e7ce1b2d8a7d85aa [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
Wey-Yi Guy901069c2011-04-05 09:42:00 -07003 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
Jay Sternberge1228372009-01-19 15:30:34 -08004 *
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"
Johannes Berga1175122010-01-21 06:21:10 -080045#include "iwl-agn.h"
Jay Sternberge1228372009-01-19 15:30:34 -080046#include "iwl-helpers.h"
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -070047#include "iwl-agn-hw.h"
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -070048#include "iwl-6000-hw.h"
Jay Sternberge1228372009-01-19 15:30:34 -080049
50/* Highest firmware API version supported */
Wey-Yi Guyfcbaf8b2009-08-21 13:34:18 -070051#define IWL6000_UCODE_API_MAX 4
Wey-Yi Guy62cb3c62010-09-28 17:43:10 -070052#define IWL6050_UCODE_API_MAX 5
Johannes Berg670245e2010-08-23 07:56:55 -070053#define IWL6000G2_UCODE_API_MAX 5
Jay Sternberge1228372009-01-19 15:30:34 -080054
55/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070056#define IWL6000_UCODE_API_MIN 4
57#define IWL6050_UCODE_API_MIN 4
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070058#define IWL6000G2_UCODE_API_MIN 4
Jay Sternberge1228372009-01-19 15:30:34 -080059
60#define IWL6000_FW_PRE "iwlwifi-6000-"
root1d5cc5552011-03-28 16:12:43 -070061#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080062
63#define IWL6050_FW_PRE "iwlwifi-6050-"
root1d5cc5552011-03-28 16:12:43 -070064#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080065
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080066#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
root1d5cc5552011-03-28 16:12:43 -070067#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE #api ".ucode"
Shanyu Zhao95b13012010-04-21 11:46:33 -070068
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080069#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
root1d5cc5552011-03-28 16:12:43 -070070#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE #api ".ucode"
Shanyu Zhao18089722010-05-06 10:15:21 -070071
Wey-Yi Guy672639d2009-07-24 11:13:01 -070072static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
73{
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;
77}
78
Shanyu Zhao6b5ce502010-09-14 16:23:32 -070079static void iwl6050_additional_nic_config(struct iwl_priv *priv)
Abhijeet Kolekard5755932010-02-18 22:03:05 -080080{
Shanyu Zhao6b5ce502010-09-14 16:23:32 -070081 /* Indicate calibration version to uCode. */
Don Fry16b80b72011-04-20 15:25:14 -070082 if (iwlagn_eeprom_calib_version(priv) >= 6)
Abhijeet Kolekard5755932010-02-18 22:03:05 -080083 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
84 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
85}
86
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080087static void iwl6150_additional_nic_config(struct iwl_priv *priv)
Shanyu Zhao02796d72010-09-14 16:23:42 -070088{
89 /* Indicate calibration version to uCode. */
Don Fry16b80b72011-04-20 15:25:14 -070090 if (iwlagn_eeprom_calib_version(priv) >= 6)
Shanyu Zhao02796d72010-09-14 16:23:42 -070091 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);
95}
96
Wey-Yi Guy65b79982009-07-31 14:28:07 -070097/* NIC configuration for 6000 series */
98static void iwl6000_nic_config(struct iwl_priv *priv)
99{
Wey-Yi Guy9371d4e2009-09-11 10:38:10 -0700100 u16 radio_cfg;
101
102 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
103
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));
110
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);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700115
116 /* no locking required for register write */
Wey-Yi Guy740e7f52009-11-06 14:52:55 -0800117 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700118 /* 2x2 IPA phy type */
119 iwl_write32(priv, CSR_GP_DRIVER_REG,
120 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
121 }
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700122 /* 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);
126 }
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700127}
128
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700129static 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,
136
137 .auto_corr_max_ofdm = 145,
138 .auto_corr_max_ofdm_mrc = 232,
Wey-Yi Guy2494f632010-01-20 12:22:52 -0800139 .auto_corr_max_ofdm_x1 = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700140 .auto_corr_max_ofdm_mrc_x1 = 232,
141
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,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700148
149 .barker_corr_th_min = 190,
150 .barker_corr_th_min_mrc = 390,
151 .nrg_th_cca = 62,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700152};
153
154static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
155{
Don Fry9d143e92011-04-20 15:23:57 -0700156 if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
157 iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700158 priv->cfg->base_params->num_of_queues =
Don Fry9d143e92011-04-20 15:23:57 -0700159 iwlagn_mod_params.num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700160
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700161 priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700162 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
163 priv->hw_params.scd_bc_tbls_size =
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700164 priv->cfg->base_params->num_of_queues *
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700165 sizeof(struct iwlagn_scd_bc_tbl);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700166 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
Wey-Yi Guybf3c7fd2010-06-24 14:08:05 -0700167 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
Johannes Berga194e322010-08-27 08:53:46 -0700168 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700169
170 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
171 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
172
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700173 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;
176
177 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
Wey-Yi Guy17423ea2010-12-06 11:51:39 -0800178 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);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700183 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
184 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
185
Johannes Berg04536742010-09-22 18:02:08 +0200186 iwl6000_set_ct_threshold(priv);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700187
188 /* Set initial sensitivity parameters */
189 /* Set initial calibration set */
190 priv->hw_params.sens = &iwl6000_sensitivity;
Wey-Yi Guye517736a2010-04-19 18:49:40 -0700191 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);
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700196 if (priv->cfg->need_dc_calib)
Shanyu Zhao6d6a1af2010-09-14 18:13:31 -0700197 priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
Shanyu Zhaobf53f932010-09-21 16:54:01 -0700198 if (priv->cfg->need_temp_offset_calib)
199 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800200
Wey-Yi Guya0ee74c2010-05-06 08:54:10 -0700201 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
202
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700203 return 0;
204}
205
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700206static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
207 struct ieee80211_channel_switch *ch_switch)
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700208{
Johannes Berg246ed352010-08-23 10:46:32 +0200209 /*
210 * MULTI-FIXME
211 * See iwl_mac_channel_switch.
212 */
213 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700214 struct iwl6000_channel_switch_cmd cmd;
215 const struct iwl_channel_info *ch_info;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700216 u32 switch_time_in_usec, ucode_switch_time;
217 u16 ch;
218 u32 tsf_low;
219 u8 switch_count;
Johannes Berg246ed352010-08-23 10:46:32 +0200220 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
Johannes Berg8bd413e2010-08-23 10:46:40 +0200221 struct ieee80211_vif *vif = ctx->vif;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700222 struct iwl_host_cmd hcmd = {
223 .id = REPLY_CHANNEL_SWITCH,
Johannes Berg3fa50732011-05-04 07:50:38 -0700224 .len = { sizeof(cmd), },
Wey-Yi Guy3839f7c2010-05-18 09:18:06 -0700225 .flags = CMD_SYNC,
Johannes Berg3fa50732011-05-04 07:50:38 -0700226 .data = { &cmd, },
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700227 };
228
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700229 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
Shanyu Zhao81e95432010-07-28 13:40:27 -0700230 ch = ch_switch->channel->hw_value;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700231 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
Johannes Berg246ed352010-08-23 10:46:32 +0200232 ctx->active.channel, ch);
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700233 cmd.channel = cpu_to_le16(ch);
Johannes Berg246ed352010-08-23 10:46:32 +0200234 cmd.rxon_flags = ctx->staging.flags;
235 cmd.rxon_filter_flags = ctx->staging.filter_flags;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700236 switch_count = ch_switch->count;
237 tsf_low = ch_switch->timestamp & 0x0ffffffff;
238 /*
239 * calculate the ucode channel switch time
240 * adding TSF as one of the factor for when to switch
241 */
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;
249 }
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);
262 }
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);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700266 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",
Johannes Berg246ed352010-08-23 10:46:32 +0200270 ctx->active.channel, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700271 return -EFAULT;
272 }
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700273 priv->switch_rxon.channel = cmd.channel;
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800274 priv->switch_rxon.switch_in_progress = true;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700275
276 return iwl_send_cmd_sync(priv, &hcmd);
277}
278
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700279static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700280 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700281 .rx_handler_setup = iwlagn_rx_handler_setup,
282 .setup_deferred_work = iwlagn_setup_deferred_work,
283 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700284 .send_tx_power = iwlagn_send_tx_power,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700285 .update_chain_flags = iwl_update_chain_flags,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700286 .set_channel_switch = iwl6000_hw_channel_switch,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700287 .apm_ops = {
Ben Cahillfadb3582009-10-23 13:42:21 -0700288 .init = iwl_apm_init,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700289 .config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700290 },
291 .eeprom_ops = {
292 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700293 EEPROM_REG_BAND_1_CHANNELS,
294 EEPROM_REG_BAND_2_CHANNELS,
295 EEPROM_REG_BAND_3_CHANNELS,
296 EEPROM_REG_BAND_4_CHANNELS,
297 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700298 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700299 EEPROM_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700300 },
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700301 .query_addr = iwlagn_eeprom_query_addr,
Wey-Yi Guyab9fd1b2009-08-21 13:34:23 -0700302 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700303 },
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700304 .temp_ops = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700305 .temperature = iwlagn_temperature,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700306 },
Wey-Yi Guy716c74b2010-06-24 13:22:36 -0700307 .txfifo_flush = iwlagn_txfifo_flush,
Wey-Yi Guy65550632010-06-24 13:18:35 -0700308 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700309};
310
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800311static struct iwl_lib_ops iwl6030_lib = {
Johannes Berg9e4afc22010-08-23 07:56:57 -0700312 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700313 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
314 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
315 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700316 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700317 .send_tx_power = iwlagn_send_tx_power,
318 .update_chain_flags = iwl_update_chain_flags,
319 .set_channel_switch = iwl6000_hw_channel_switch,
320 .apm_ops = {
321 .init = iwl_apm_init,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700322 .config = iwl6000_nic_config,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700323 },
324 .eeprom_ops = {
325 .regulatory_bands = {
326 EEPROM_REG_BAND_1_CHANNELS,
327 EEPROM_REG_BAND_2_CHANNELS,
328 EEPROM_REG_BAND_3_CHANNELS,
329 EEPROM_REG_BAND_4_CHANNELS,
330 EEPROM_REG_BAND_5_CHANNELS,
331 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
332 EEPROM_REG_BAND_52_HT40_CHANNELS
333 },
Johannes Berg9e4afc22010-08-23 07:56:57 -0700334 .query_addr = iwlagn_eeprom_query_addr,
335 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
336 },
Johannes Berg9e4afc22010-08-23 07:56:57 -0700337 .temp_ops = {
338 .temperature = iwlagn_temperature,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700339 },
Johannes Berg9e4afc22010-08-23 07:56:57 -0700340 .txfifo_flush = iwlagn_txfifo_flush,
341 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700342};
343
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700344static struct iwl_nic_ops iwl6050_nic_ops = {
345 .additional_nic_config = &iwl6050_additional_nic_config,
346};
347
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800348static struct iwl_nic_ops iwl6150_nic_ops = {
349 .additional_nic_config = &iwl6150_additional_nic_config,
Shanyu Zhao02796d72010-09-14 16:23:42 -0700350};
351
Emese Revfy45d5d802009-12-14 00:59:53 +0100352static const struct iwl_ops iwl6000_ops = {
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700353 .lib = &iwl6000_lib,
Wey-Yi Guy7dc77db2010-03-16 10:23:31 -0700354 .hcmd = &iwlagn_hcmd,
355 .utils = &iwlagn_hcmd_utils,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800356};
357
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700358static const struct iwl_ops iwl6050_ops = {
359 .lib = &iwl6000_lib,
360 .hcmd = &iwlagn_hcmd,
361 .utils = &iwlagn_hcmd_utils,
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700362 .nic = &iwl6050_nic_ops,
363};
364
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800365static const struct iwl_ops iwl6150_ops = {
Shanyu Zhao02796d72010-09-14 16:23:42 -0700366 .lib = &iwl6000_lib,
367 .hcmd = &iwlagn_hcmd,
368 .utils = &iwlagn_hcmd_utils,
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800369 .nic = &iwl6150_nic_ops,
Shanyu Zhao02796d72010-09-14 16:23:42 -0700370};
371
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800372static const struct iwl_ops iwl6030_ops = {
373 .lib = &iwl6030_lib,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700374 .hcmd = &iwlagn_bt_hcmd,
Shanyu Zhao18089722010-05-06 10:15:21 -0700375 .utils = &iwlagn_hcmd_utils,
Shanyu Zhao18089722010-05-06 10:15:21 -0700376};
377
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700378static struct iwl_base_params iwl6000_base_params = {
Jay Sternberg0b5af202010-03-17 16:16:12 -0700379 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700380 .num_of_queues = IWLAGN_NUM_QUEUES,
381 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700382 .pll_cfg_val = 0,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700383 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
384 .shadow_ram_support = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700385 .led_compensation = 51,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700386 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700387 .adv_thermal_throttle = true,
388 .support_ct_kill_exit = true,
389 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
390 .chain_noise_scale = 1000,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100391 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Shanyu Zhao95b13012010-04-21 11:46:33 -0700392 .max_event_log_size = 512,
Wey-Yi Guyf81c1f42010-11-10 09:56:50 -0800393 .shadow_reg_enable = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700394};
395
396static struct iwl_base_params iwl6050_base_params = {
397 .eeprom_size = OTP_LOW_IMAGE_SIZE,
398 .num_of_queues = IWLAGN_NUM_QUEUES,
399 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
400 .pll_cfg_val = 0,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700401 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
402 .shadow_ram_support = true,
403 .led_compensation = 51,
404 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700405 .adv_thermal_throttle = true,
406 .support_ct_kill_exit = true,
407 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
408 .chain_noise_scale = 1500,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100409 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700410 .max_event_log_size = 1024,
Wey-Yi Guyf81c1f42010-11-10 09:56:50 -0800411 .shadow_reg_enable = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700412};
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800413static struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700414 .eeprom_size = OTP_LOW_IMAGE_SIZE,
415 .num_of_queues = IWLAGN_NUM_QUEUES,
416 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
417 .pll_cfg_val = 0,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700418 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
419 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800420 .led_compensation = 57,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700421 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700422 .adv_thermal_throttle = true,
423 .support_ct_kill_exit = true,
424 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
425 .chain_noise_scale = 1000,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100426 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700427 .max_event_log_size = 512,
Wey-Yi Guyf81c1f42010-11-10 09:56:50 -0800428 .shadow_reg_enable = true,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700429};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700430
431static struct iwl_ht_params iwl6000_ht_params = {
432 .ht_greenfield_support = true,
433 .use_rts_for_aggregation = true, /* use rts/cts protection */
434};
435
436static struct iwl_bt_params iwl6000_bt_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700437 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
438 .advanced_bt_coexist = true,
Wey-Yi Guy66e863a52010-11-08 14:54:37 -0800439 .agg_time_limit = BT_AGG_THRESHOLD_DEF,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700440 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
441 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Wey-Yi Guye3661762010-11-23 10:58:54 -0800442 .bt_sco_disable = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700443};
444
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800445#define IWL_DEVICE_6005 \
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800446 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800447 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
448 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800449 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
450 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800451 .ops = &iwl6000_ops, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800452 .base_params = &iwl6000_g2_base_params, \
453 .need_dc_calib = true, \
454 .need_temp_offset_calib = true, \
455 .led_mode = IWL_LED_RF_STATE
456
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800457struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800458 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800459 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700460 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700461};
462
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800463struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800464 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800465 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700466};
467
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800468struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800469 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800470 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700471};
472
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800473#define IWL_DEVICE_6030 \
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800474 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800475 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
476 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800477 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
478 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
479 .ops = &iwl6030_ops, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800480 .base_params = &iwl6000_g2_base_params, \
481 .bt_params = &iwl6000_bt_params, \
482 .need_dc_calib = true, \
483 .need_temp_offset_calib = true, \
484 .led_mode = IWL_LED_RF_STATE, \
Stanislaw Gruszkacd017f22010-12-23 15:12:30 +0100485 .adv_pm = true \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800486
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800487struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800488 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800489 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700490 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700491};
492
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800493struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800494 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800495 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700496};
497
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800498struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800499 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800500 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700501 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700502};
503
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800504struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800505 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800506 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700507};
508
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800509struct iwl_cfg iwl6035_2agn_cfg = {
510 .name = "6035 Series 2x2 AGN/BT",
511 IWL_DEVICE_6030,
512 .ht_params = &iwl6000_ht_params,
513};
514
515struct iwl_cfg iwl6035_2abg_cfg = {
516 .name = "6035 Series 2x2 ABG/BT",
517 IWL_DEVICE_6030,
518};
519
520struct iwl_cfg iwl6035_2bg_cfg = {
521 .name = "6035 Series 2x2 BG/BT",
522 IWL_DEVICE_6030,
523};
524
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800525struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800526 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800527 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700528 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700529};
530
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800531struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800532 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800533 IWL_DEVICE_6030,
534};
535
536struct iwl_cfg iwl130_bgn_cfg = {
537 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
538 IWL_DEVICE_6030,
539 .ht_params = &iwl6000_ht_params,
540 .rx_with_siso_diversity = true,
541};
542
543struct iwl_cfg iwl130_bg_cfg = {
544 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
545 IWL_DEVICE_6030,
546 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700547};
548
Shanyu Zhao95b13012010-04-21 11:46:33 -0700549/*
550 * "i": Internal configuration, use internal Power Amplifier
551 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800552#define IWL_DEVICE_6000i \
553 .fw_name_pre = IWL6000_FW_PRE, \
554 .ucode_api_max = IWL6000_UCODE_API_MAX, \
555 .ucode_api_min = IWL6000_UCODE_API_MIN, \
556 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
557 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
558 .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
559 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
560 .ops = &iwl6000_ops, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800561 .base_params = &iwl6000_base_params, \
562 .pa_type = IWL_PA_INTERNAL, \
563 .led_mode = IWL_LED_BLINK
564
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700565struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800566 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800567 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700568 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800569};
570
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700571struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800572 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800573 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700574};
575
576struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800577 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800578 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700579};
580
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800581#define IWL_DEVICE_6050 \
582 .fw_name_pre = IWL6050_FW_PRE, \
583 .ucode_api_max = IWL6050_UCODE_API_MAX, \
584 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800585 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
586 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800587 .ops = &iwl6050_ops, \
588 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
589 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800590 .base_params = &iwl6050_base_params, \
591 .need_dc_calib = true, \
592 .led_mode = IWL_LED_BLINK, \
593 .internal_wimax_coex = true
594
Jay Sternberge1228372009-01-19 15:30:34 -0800595struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800596 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800597 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700598 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800599};
600
601struct iwl_cfg iwl6050_2abg_cfg = {
602 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
603 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800604};
605
Wey-Yi Guy8b3ee292010-11-18 11:41:48 -0800606struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800607 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Shanyu Zhao03264332010-06-29 17:27:27 -0700608 .fw_name_pre = IWL6050_FW_PRE,
609 .ucode_api_max = IWL6050_UCODE_API_MAX,
610 .ucode_api_min = IWL6050_UCODE_API_MIN,
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800611 .eeprom_ver = EEPROM_6150_EEPROM_VERSION,
612 .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION,
613 .ops = &iwl6150_ops,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700614 .base_params = &iwl6050_base_params,
615 .ht_params = &iwl6000_ht_params,
Shanyu Zhao03264332010-06-29 17:27:27 -0700616 .need_dc_calib = true,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800617 .led_mode = IWL_LED_RF_STATE,
Wey-Yi Guy50619ac2010-12-07 08:06:31 -0800618 .internal_wimax_coex = true,
Shanyu Zhao03264332010-06-29 17:27:27 -0700619};
620
Jay Sternberge1228372009-01-19 15:30:34 -0800621struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800622 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800623 .fw_name_pre = IWL6000_FW_PRE,
624 .ucode_api_max = IWL6000_UCODE_API_MAX,
625 .ucode_api_min = IWL6000_UCODE_API_MIN,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700626 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
627 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
628 .ops = &iwl6000_ops,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700629 .base_params = &iwl6000_base_params,
630 .ht_params = &iwl6000_ht_params,
631 .need_dc_calib = true,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800632 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800633};
634
Jay Sternberge1228372009-01-19 15:30:34 -0800635MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
636MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800637MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
638MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));