blob: dd6dce2bb4722117d0942a8fa3397a0f974dbed0 [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
Wey-Yi Guy4e318262011-12-27 11:21:32 -08003 * Copyright(c) 2008 - 2012 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>
Jay Sternberge1228372009-01-19 15:30:34 -080030#include <linux/delay.h>
31#include <linux/skbuff.h>
32#include <linux/netdevice.h>
Jay Sternberge1228372009-01-19 15:30:34 -080033#include <net/mac80211.h>
34#include <linux/etherdevice.h>
35#include <asm/unaligned.h>
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070036#include <linux/stringify.h>
Jay Sternberge1228372009-01-19 15:30:34 -080037
38#include "iwl-eeprom.h"
39#include "iwl-dev.h"
40#include "iwl-core.h"
41#include "iwl-io.h"
Johannes Berga1175122010-01-21 06:21:10 -080042#include "iwl-agn.h"
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -070043#include "iwl-agn-hw.h"
Emmanuel Grumbachbdfbf092011-07-08 08:46:16 -070044#include "iwl-trans.h"
Emmanuel Grumbach48f20d32011-08-25 23:10:36 -070045#include "iwl-shared.h"
Johannes Bergcebcbd72011-09-15 11:46:46 -070046#include "iwl-cfg.h"
Jay Sternberge1228372009-01-19 15:30:34 -080047
48/* Highest firmware API version supported */
Johannes Bergb9148112011-11-04 07:22:37 -070049#define IWL6000_UCODE_API_MAX 6
Wey-Yi Guy62cb3c62010-09-28 17:43:10 -070050#define IWL6050_UCODE_API_MAX 5
Johannes Bergca9a4602011-07-23 10:24:45 -070051#define IWL6000G2_UCODE_API_MAX 6
Meenakshi Venkataramanadf26432012-06-05 20:24:37 +020052#define IWL6035_UCODE_API_MAX 6
Johannes Bergca9a4602011-07-23 10:24:45 -070053
54/* Oldest version we won't warn about */
Johannes Bergb9148112011-11-04 07:22:37 -070055#define IWL6000_UCODE_API_OK 4
Johannes Bergca9a4602011-07-23 10:24:45 -070056#define IWL6000G2_UCODE_API_OK 5
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -070057#define IWL6050_UCODE_API_OK 5
58#define IWL6000G2B_UCODE_API_OK 6
Meenakshi Venkataramanadf26432012-06-05 20:24:37 +020059#define IWL6035_UCODE_API_OK 6
Jay Sternberge1228372009-01-19 15:30:34 -080060
61/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070062#define IWL6000_UCODE_API_MIN 4
63#define IWL6050_UCODE_API_MIN 4
Meenakshi Venkataramanadf26432012-06-05 20:24:37 +020064#define IWL6000G2_UCODE_API_MIN 5
65#define IWL6035_UCODE_API_MIN 6
Jay Sternberge1228372009-01-19 15:30:34 -080066
67#define IWL6000_FW_PRE "iwlwifi-6000-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070068#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080069
70#define IWL6050_FW_PRE "iwlwifi-6050-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070071#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080072
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080073#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070074#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao95b13012010-04-21 11:46:33 -070075
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080076#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070077#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao18089722010-05-06 10:15:21 -070078
Wey-Yi Guy672639d2009-07-24 11:13:01 -070079static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
80{
81 /* want Celsius */
Emmanuel Grumbachd6189122011-08-25 23:10:39 -070082 hw_params(priv).ct_kill_threshold = CT_KILL_THRESHOLD;
83 hw_params(priv).ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
Wey-Yi Guy672639d2009-07-24 11:13:01 -070084}
85
Shanyu Zhao6b5ce502010-09-14 16:23:32 -070086static void iwl6050_additional_nic_config(struct iwl_priv *priv)
Abhijeet Kolekard5755932010-02-18 22:03:05 -080087{
Shanyu Zhao6b5ce502010-09-14 16:23:32 -070088 /* Indicate calibration version to uCode. */
Don Fryab36eab2011-11-30 15:37:32 -080089 if (iwl_eeprom_calib_version(priv->shrd) >= 6)
Emmanuel Grumbach1042db22012-01-03 16:56:15 +020090 iwl_set_bit(trans(priv), CSR_GP_DRIVER_REG,
Abhijeet Kolekard5755932010-02-18 22:03:05 -080091 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
92}
93
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080094static void iwl6150_additional_nic_config(struct iwl_priv *priv)
Shanyu Zhao02796d72010-09-14 16:23:42 -070095{
96 /* Indicate calibration version to uCode. */
Don Fryab36eab2011-11-30 15:37:32 -080097 if (iwl_eeprom_calib_version(priv->shrd) >= 6)
Emmanuel Grumbach1042db22012-01-03 16:56:15 +020098 iwl_set_bit(trans(priv), CSR_GP_DRIVER_REG,
Shanyu Zhao02796d72010-09-14 16:23:42 -070099 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
Emmanuel Grumbach1042db22012-01-03 16:56:15 +0200100 iwl_set_bit(trans(priv), CSR_GP_DRIVER_REG,
Shanyu Zhao02796d72010-09-14 16:23:42 -0700101 CSR_GP_DRIVER_REG_BIT_6050_1x2);
102}
103
Johannes Berg55bba9e2012-03-06 13:31:05 -0800104static void iwl6000i_additional_nic_config(struct iwl_priv *priv)
105{
106 /* 2x2 IPA phy type */
107 iwl_write32(trans(priv), CSR_GP_DRIVER_REG,
108 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
109}
110
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700111/* NIC configuration for 6000 series */
112static void iwl6000_nic_config(struct iwl_priv *priv)
113{
Wey-Yi Guy86cb3b42011-06-14 15:23:39 -0700114 iwl_rf_config(priv);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700115
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700116 /* do additional nic configuration if needed */
Don Fry38622412011-12-16 07:07:36 -0800117 if (cfg(priv)->additional_nic_config)
Johannes Berg55bba9e2012-03-06 13:31:05 -0800118 cfg(priv)->additional_nic_config(priv);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700119}
120
Johannes Berg9563fe12012-03-07 09:52:21 -0800121static const struct iwl_sensitivity_ranges iwl6000_sensitivity = {
Wey-Yi Guye7515ba2011-07-23 10:24:49 -0700122 .min_nrg_cck = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700123 .auto_corr_min_ofdm = 80,
124 .auto_corr_min_ofdm_mrc = 128,
125 .auto_corr_min_ofdm_x1 = 105,
126 .auto_corr_min_ofdm_mrc_x1 = 192,
127
128 .auto_corr_max_ofdm = 145,
129 .auto_corr_max_ofdm_mrc = 232,
Wey-Yi Guy2494f632010-01-20 12:22:52 -0800130 .auto_corr_max_ofdm_x1 = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700131 .auto_corr_max_ofdm_mrc_x1 = 232,
132
133 .auto_corr_min_cck = 125,
134 .auto_corr_max_cck = 175,
135 .auto_corr_min_cck_mrc = 160,
136 .auto_corr_max_cck_mrc = 310,
Wey-Yi Guye7515ba2011-07-23 10:24:49 -0700137 .nrg_th_cck = 110,
138 .nrg_th_ofdm = 110,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700139
140 .barker_corr_th_min = 190,
Wey-Yi Guye7515ba2011-07-23 10:24:49 -0700141 .barker_corr_th_min_mrc = 336,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700142 .nrg_th_cca = 62,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700143};
144
Emmanuel Grumbach6d4dec72012-02-17 10:52:03 -0800145static void iwl6000_hw_set_hw_params(struct iwl_priv *priv)
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700146{
Emmanuel Grumbachd6189122011-08-25 23:10:39 -0700147 hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700148 BIT(IEEE80211_BAND_5GHZ);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700149
Johannes Berg7e79a392012-03-05 11:24:32 -0800150 hw_params(priv).tx_chains_num =
151 num_of_ant(hw_params(priv).valid_tx_ant);
Don Fry38622412011-12-16 07:07:36 -0800152 if (cfg(priv)->rx_with_siso_diversity)
Emmanuel Grumbachd6189122011-08-25 23:10:39 -0700153 hw_params(priv).rx_chains_num = 1;
Wey-Yi Guy17423ea2010-12-06 11:51:39 -0800154 else
Emmanuel Grumbachd6189122011-08-25 23:10:39 -0700155 hw_params(priv).rx_chains_num =
Johannes Berg7e79a392012-03-05 11:24:32 -0800156 num_of_ant(hw_params(priv).valid_rx_ant);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700157
Johannes Berg04536742010-09-22 18:02:08 +0200158 iwl6000_set_ct_threshold(priv);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700159
160 /* Set initial sensitivity parameters */
Emmanuel Grumbachd6189122011-08-25 23:10:39 -0700161 hw_params(priv).sens = &iwl6000_sensitivity;
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800162
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700163}
164
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700165static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
166 struct ieee80211_channel_switch *ch_switch)
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700167{
Johannes Berg246ed352010-08-23 10:46:32 +0200168 /*
169 * MULTI-FIXME
Wey-Yi Guyade4c642011-10-10 07:27:11 -0700170 * See iwlagn_mac_channel_switch.
Johannes Berg246ed352010-08-23 10:46:32 +0200171 */
172 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
Johannes Berg0c4528e2012-09-25 16:40:12 +0200173 struct iwl6000_channel_switch_cmd *cmd;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700174 const struct iwl_channel_info *ch_info;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700175 u32 switch_time_in_usec, ucode_switch_time;
176 u16 ch;
177 u32 tsf_low;
178 u8 switch_count;
Johannes Berg246ed352010-08-23 10:46:32 +0200179 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
Johannes Berg8bd413e2010-08-23 10:46:40 +0200180 struct ieee80211_vif *vif = ctx->vif;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700181 struct iwl_host_cmd hcmd = {
182 .id = REPLY_CHANNEL_SWITCH,
Johannes Berg0c4528e2012-09-25 16:40:12 +0200183 .len = { sizeof(*cmd), },
Wey-Yi Guy3839f7c2010-05-18 09:18:06 -0700184 .flags = CMD_SYNC,
Johannes Berg0c4528e2012-09-25 16:40:12 +0200185 .dataflags[0] = IWL_HCMD_DFL_NOCOPY,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700186 };
Johannes Berg0c4528e2012-09-25 16:40:12 +0200187 int err;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700188
Johannes Berg0c4528e2012-09-25 16:40:12 +0200189 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
190 if (!cmd)
191 return -ENOMEM;
192
193 hcmd.data[0] = cmd;
194
195 cmd->band = priv->band == IEEE80211_BAND_2GHZ;
Shanyu Zhao81e95432010-07-28 13:40:27 -0700196 ch = ch_switch->channel->hw_value;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700197 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
Johannes Berg246ed352010-08-23 10:46:32 +0200198 ctx->active.channel, ch);
Johannes Berg0c4528e2012-09-25 16:40:12 +0200199 cmd->channel = cpu_to_le16(ch);
200 cmd->rxon_flags = ctx->staging.flags;
201 cmd->rxon_filter_flags = ctx->staging.filter_flags;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700202 switch_count = ch_switch->count;
203 tsf_low = ch_switch->timestamp & 0x0ffffffff;
204 /*
205 * calculate the ucode channel switch time
206 * adding TSF as one of the factor for when to switch
207 */
208 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
209 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
210 beacon_interval)) {
211 switch_count -= (priv->ucode_beacon_time -
212 tsf_low) / beacon_interval;
213 } else
214 switch_count = 0;
215 }
216 if (switch_count <= 1)
Johannes Berg0c4528e2012-09-25 16:40:12 +0200217 cmd->switch_time = cpu_to_le32(priv->ucode_beacon_time);
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700218 else {
219 switch_time_in_usec =
220 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
221 ucode_switch_time = iwl_usecs_to_beacons(priv,
222 switch_time_in_usec,
223 beacon_interval);
Johannes Berg0c4528e2012-09-25 16:40:12 +0200224 cmd->switch_time = iwl_add_beacon_time(priv,
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700225 priv->ucode_beacon_time,
226 ucode_switch_time,
227 beacon_interval);
228 }
229 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
Johannes Berg0c4528e2012-09-25 16:40:12 +0200230 cmd->switch_time);
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700231 ch_info = iwl_get_channel_info(priv, priv->band, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700232 if (ch_info)
Johannes Berg0c4528e2012-09-25 16:40:12 +0200233 cmd->expect_beacon = is_channel_radar(ch_info);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700234 else {
235 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
Johannes Berg246ed352010-08-23 10:46:32 +0200236 ctx->active.channel, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700237 return -EFAULT;
238 }
239
Johannes Berg0c4528e2012-09-25 16:40:12 +0200240 err = iwl_dvm_send_cmd(priv, &hcmd);
241 kfree(cmd);
242 return err;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700243}
244
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700245static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700246 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700247 .set_channel_switch = iwl6000_hw_channel_switch,
Fry, Donald He4c598b2011-07-08 08:46:18 -0700248 .nic_config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700249 .eeprom_ops = {
250 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700251 EEPROM_REG_BAND_1_CHANNELS,
252 EEPROM_REG_BAND_2_CHANNELS,
253 EEPROM_REG_BAND_3_CHANNELS,
254 EEPROM_REG_BAND_4_CHANNELS,
255 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700256 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700257 EEPROM_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700258 },
Johannes Berg51dc51d2012-03-07 09:52:20 -0800259 .enhanced_txpower = true,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700260 },
Wey-Yi Guy909fc3c2011-07-08 08:46:20 -0700261 .temperature = iwlagn_temperature,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700262};
263
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800264static struct iwl_lib_ops iwl6030_lib = {
Johannes Berg9e4afc22010-08-23 07:56:57 -0700265 .set_hw_params = iwl6000_hw_set_hw_params,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700266 .set_channel_switch = iwl6000_hw_channel_switch,
Fry, Donald He4c598b2011-07-08 08:46:18 -0700267 .nic_config = iwl6000_nic_config,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700268 .eeprom_ops = {
269 .regulatory_bands = {
270 EEPROM_REG_BAND_1_CHANNELS,
271 EEPROM_REG_BAND_2_CHANNELS,
272 EEPROM_REG_BAND_3_CHANNELS,
273 EEPROM_REG_BAND_4_CHANNELS,
274 EEPROM_REG_BAND_5_CHANNELS,
275 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
276 EEPROM_REG_BAND_52_HT40_CHANNELS
277 },
Johannes Berg51dc51d2012-03-07 09:52:20 -0800278 .enhanced_txpower = true,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700279 },
Wey-Yi Guy909fc3c2011-07-08 08:46:20 -0700280 .temperature = iwlagn_temperature,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700281};
282
Johannes Berg6794f3e2012-03-06 13:30:56 -0800283static const struct iwl_base_params iwl6000_base_params = {
Jay Sternberg0b5af202010-03-17 16:16:12 -0700284 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700285 .num_of_queues = IWLAGN_NUM_QUEUES,
286 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700287 .pll_cfg_val = 0,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700288 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
289 .shadow_ram_support = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700290 .led_compensation = 51,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700291 .adv_thermal_throttle = true,
292 .support_ct_kill_exit = true,
293 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
294 .chain_noise_scale = 1000,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100295 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Shanyu Zhao95b13012010-04-21 11:46:33 -0700296 .max_event_log_size = 512,
Meenakshi Venkataraman784c9702012-05-16 22:35:59 +0200297 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700298};
299
Johannes Berg6794f3e2012-03-06 13:30:56 -0800300static const struct iwl_base_params iwl6050_base_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700301 .eeprom_size = OTP_LOW_IMAGE_SIZE,
302 .num_of_queues = IWLAGN_NUM_QUEUES,
303 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
304 .pll_cfg_val = 0,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700305 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
306 .shadow_ram_support = true,
307 .led_compensation = 51,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700308 .adv_thermal_throttle = true,
309 .support_ct_kill_exit = true,
310 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
311 .chain_noise_scale = 1500,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100312 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700313 .max_event_log_size = 1024,
Meenakshi Venkataraman784c9702012-05-16 22:35:59 +0200314 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700315};
Johannes Berg6794f3e2012-03-06 13:30:56 -0800316
317static const struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700318 .eeprom_size = OTP_LOW_IMAGE_SIZE,
319 .num_of_queues = IWLAGN_NUM_QUEUES,
320 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
321 .pll_cfg_val = 0,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700322 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
323 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800324 .led_compensation = 57,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700325 .adv_thermal_throttle = true,
326 .support_ct_kill_exit = true,
327 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
328 .chain_noise_scale = 1000,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100329 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700330 .max_event_log_size = 512,
Meenakshi Venkataraman784c9702012-05-16 22:35:59 +0200331 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700332};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700333
Johannes Berg6794f3e2012-03-06 13:30:56 -0800334static const struct iwl_ht_params iwl6000_ht_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700335 .ht_greenfield_support = true,
336 .use_rts_for_aggregation = true, /* use rts/cts protection */
337};
338
Johannes Berg6794f3e2012-03-06 13:30:56 -0800339static const struct iwl_bt_params iwl6000_bt_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700340 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
341 .advanced_bt_coexist = true,
Wey-Yi Guy66e863a52010-11-08 14:54:37 -0800342 .agg_time_limit = BT_AGG_THRESHOLD_DEF,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700343 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
344 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Wey-Yi Guye3661762010-11-23 10:58:54 -0800345 .bt_sco_disable = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700346};
347
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800348#define IWL_DEVICE_6005 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700349 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800350 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Wey-Yi Guy1ed2ec32012-04-25 08:10:08 -0700351 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800352 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200353 .max_inst_size = IWL60_RTC_INST_SIZE, \
354 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800355 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
356 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy90c300c2011-07-07 08:33:01 -0700357 .lib = &iwl6000_lib, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800358 .base_params = &iwl6000_g2_base_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800359 .need_temp_offset_calib = true, \
360 .led_mode = IWL_LED_RF_STATE
361
Johannes Berg706c4ff2012-03-05 11:24:33 -0800362const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800363 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800364 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700365 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700366};
367
Johannes Berg706c4ff2012-03-05 11:24:33 -0800368const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800369 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800370 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700371};
372
Johannes Berg706c4ff2012-03-05 11:24:33 -0800373const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800374 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800375 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700376};
377
Johannes Berg706c4ff2012-03-05 11:24:33 -0800378const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700379 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
380 IWL_DEVICE_6005,
381 .ht_params = &iwl6000_ht_params,
382};
383
Johannes Berg706c4ff2012-03-05 11:24:33 -0800384const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700385 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
386 IWL_DEVICE_6005,
387 .ht_params = &iwl6000_ht_params,
388};
389
Johannes Berg706c4ff2012-03-05 11:24:33 -0800390const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800391 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
392 IWL_DEVICE_6005,
393 .ht_params = &iwl6000_ht_params,
394};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800395
396const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800397 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
398 IWL_DEVICE_6005,
399 .ht_params = &iwl6000_ht_params,
400};
401
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800402#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700403 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800404 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Wey-Yi Guy1ed2ec32012-04-25 08:10:08 -0700405 .ucode_api_ok = IWL6000G2B_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800406 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200407 .max_inst_size = IWL60_RTC_INST_SIZE, \
408 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -0800409 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
410 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy90c300c2011-07-07 08:33:01 -0700411 .lib = &iwl6030_lib, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800412 .base_params = &iwl6000_g2_base_params, \
413 .bt_params = &iwl6000_bt_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800414 .need_temp_offset_calib = true, \
415 .led_mode = IWL_LED_RF_STATE, \
Stanislaw Gruszkacd017f22010-12-23 15:12:30 +0100416 .adv_pm = true \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800417
Johannes Berg706c4ff2012-03-05 11:24:33 -0800418const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800419 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800420 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700421 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700422};
423
Johannes Berg706c4ff2012-03-05 11:24:33 -0800424const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800425 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800426 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700427};
428
Johannes Berg706c4ff2012-03-05 11:24:33 -0800429const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800430 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800431 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700432 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700433};
434
Johannes Berg706c4ff2012-03-05 11:24:33 -0800435const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800436 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800437 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700438};
439
Meenakshi Venkataramanadf26432012-06-05 20:24:37 +0200440#define IWL_DEVICE_6035 \
441 .fw_name_pre = IWL6030_FW_PRE, \
442 .ucode_api_max = IWL6035_UCODE_API_MAX, \
443 .ucode_api_ok = IWL6035_UCODE_API_OK, \
444 .ucode_api_min = IWL6035_UCODE_API_MIN, \
445 .max_inst_size = IWL60_RTC_INST_SIZE, \
446 .max_data_size = IWL60_RTC_DATA_SIZE, \
447 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
448 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
449 .lib = &iwl6030_lib, \
450 .base_params = &iwl6000_g2_base_params, \
451 .bt_params = &iwl6000_bt_params, \
452 .need_temp_offset_calib = true, \
453 .led_mode = IWL_LED_RF_STATE, \
454 .adv_pm = true
455
Johannes Berg706c4ff2012-03-05 11:24:33 -0800456const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800457 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramanadf26432012-06-05 20:24:37 +0200458 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800459 .ht_params = &iwl6000_ht_params,
460};
461
Emmanuel Grumbache87845b2014-02-27 09:53:02 +0800462const struct iwl_cfg iwl6035_2agn_sff_cfg = {
463 .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
464 IWL_DEVICE_6035,
465 .ht_params = &iwl6000_ht_params,
466};
467
Johannes Berg706c4ff2012-03-05 11:24:33 -0800468const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800469 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800470 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700471 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700472};
473
Johannes Berg706c4ff2012-03-05 11:24:33 -0800474const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800475 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800476 IWL_DEVICE_6030,
477};
478
Johannes Berg706c4ff2012-03-05 11:24:33 -0800479const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800480 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
481 IWL_DEVICE_6030,
482 .ht_params = &iwl6000_ht_params,
483 .rx_with_siso_diversity = true,
484};
485
Johannes Berg706c4ff2012-03-05 11:24:33 -0800486const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800487 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
488 IWL_DEVICE_6030,
489 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700490};
491
Shanyu Zhao95b13012010-04-21 11:46:33 -0700492/*
493 * "i": Internal configuration, use internal Power Amplifier
494 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800495#define IWL_DEVICE_6000i \
496 .fw_name_pre = IWL6000_FW_PRE, \
497 .ucode_api_max = IWL6000_UCODE_API_MAX, \
Johannes Bergb9148112011-11-04 07:22:37 -0700498 .ucode_api_ok = IWL6000_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800499 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200500 .max_inst_size = IWL60_RTC_INST_SIZE, \
501 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800502 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
503 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
504 .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
505 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy90c300c2011-07-07 08:33:01 -0700506 .lib = &iwl6000_lib, \
Johannes Berg55bba9e2012-03-06 13:31:05 -0800507 .additional_nic_config = iwl6000i_additional_nic_config,\
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800508 .base_params = &iwl6000_base_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800509 .led_mode = IWL_LED_BLINK
510
Johannes Berg706c4ff2012-03-05 11:24:33 -0800511const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800512 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800513 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700514 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800515};
516
Johannes Berg706c4ff2012-03-05 11:24:33 -0800517const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800518 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800519 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700520};
521
Johannes Berg706c4ff2012-03-05 11:24:33 -0800522const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800523 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800524 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700525};
526
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800527#define IWL_DEVICE_6050 \
528 .fw_name_pre = IWL6050_FW_PRE, \
529 .ucode_api_max = IWL6050_UCODE_API_MAX, \
530 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200531 .max_inst_size = IWL60_RTC_INST_SIZE, \
532 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800533 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
534 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Wey-Yi Guy90c300c2011-07-07 08:33:01 -0700535 .lib = &iwl6000_lib, \
Wey-Yi Guye4305fe2011-07-06 16:28:47 -0700536 .additional_nic_config = iwl6050_additional_nic_config, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800537 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
538 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800539 .base_params = &iwl6050_base_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800540 .led_mode = IWL_LED_BLINK, \
541 .internal_wimax_coex = true
542
Johannes Berg706c4ff2012-03-05 11:24:33 -0800543const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800544 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800545 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700546 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800547};
548
Johannes Berg706c4ff2012-03-05 11:24:33 -0800549const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800550 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
551 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800552};
553
Wey-Yi Guy11441812011-05-30 09:32:52 -0700554#define IWL_DEVICE_6150 \
555 .fw_name_pre = IWL6050_FW_PRE, \
556 .ucode_api_max = IWL6050_UCODE_API_MAX, \
557 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200558 .max_inst_size = IWL60_RTC_INST_SIZE, \
559 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy90c300c2011-07-07 08:33:01 -0700560 .lib = &iwl6000_lib, \
Wey-Yi Guye4305fe2011-07-06 16:28:47 -0700561 .additional_nic_config = iwl6150_additional_nic_config, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700562 .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \
563 .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
564 .base_params = &iwl6050_base_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700565 .led_mode = IWL_LED_BLINK, \
566 .internal_wimax_coex = true
567
Johannes Berg706c4ff2012-03-05 11:24:33 -0800568const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800569 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700570 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700571 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700572};
573
Johannes Berg706c4ff2012-03-05 11:24:33 -0800574const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700575 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
576 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700577};
578
Johannes Berg706c4ff2012-03-05 11:24:33 -0800579const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800580 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800581 .fw_name_pre = IWL6000_FW_PRE,
582 .ucode_api_max = IWL6000_UCODE_API_MAX,
Johannes Bergb9148112011-11-04 07:22:37 -0700583 .ucode_api_ok = IWL6000_UCODE_API_OK,
Jay Sternberge1228372009-01-19 15:30:34 -0800584 .ucode_api_min = IWL6000_UCODE_API_MIN,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200585 .max_inst_size = IWL60_RTC_INST_SIZE,
586 .max_data_size = IWL60_RTC_DATA_SIZE,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700587 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
588 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy90c300c2011-07-07 08:33:01 -0700589 .lib = &iwl6000_lib,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700590 .base_params = &iwl6000_base_params,
591 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800592 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800593};
594
Johannes Bergb9148112011-11-04 07:22:37 -0700595MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK));
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -0700596MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_OK));
597MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_OK));
598MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_OK));