blob: 63d27e3e4e356cee1cb85ac263b562d9942fcc40 [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
Reinette Chatre1f447802010-01-15 13:43:41 -08003 * Copyright(c) 2008 - 2010 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"
Johannes Berge932a602009-10-02 13:44:03 -070049#include "iwl-agn-led.h"
Jay Sternberge1228372009-01-19 15:30:34 -080050
51/* Highest firmware API version supported */
Wey-Yi Guyfcbaf8b2009-08-21 13:34:18 -070052#define IWL6000_UCODE_API_MAX 4
53#define IWL6050_UCODE_API_MAX 4
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070054#define IWL6000G2_UCODE_API_MAX 4
Jay Sternberge1228372009-01-19 15:30:34 -080055
56/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070057#define IWL6000_UCODE_API_MIN 4
58#define IWL6050_UCODE_API_MIN 4
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070059#define IWL6000G2_UCODE_API_MIN 4
Jay Sternberge1228372009-01-19 15:30:34 -080060
61#define IWL6000_FW_PRE "iwlwifi-6000-"
62#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
63#define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
64
65#define IWL6050_FW_PRE "iwlwifi-6050-"
66#define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
67#define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
68
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070069#define IWL6000G2_FW_PRE "iwlwifi-6005-"
70#define _IWL6000G2_MODULE_FIRMWARE(api) IWL6000G2_FW_PRE #api ".ucode"
71#define IWL6000G2_MODULE_FIRMWARE(api) _IWL6000G2_MODULE_FIRMWARE(api)
72
Wey-Yi Guy672639d2009-07-24 11:13:01 -070073static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
74{
75 /* want Celsius */
76 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
77 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
78}
79
Abhijeet Kolekard5755932010-02-18 22:03:05 -080080/* Indicate calibration version to uCode. */
81static void iwl6050_set_calib_version(struct iwl_priv *priv)
82{
83 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
84 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
85 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
86}
87
Wey-Yi Guy65b79982009-07-31 14:28:07 -070088/* NIC configuration for 6000 series */
89static void iwl6000_nic_config(struct iwl_priv *priv)
90{
Wey-Yi Guy9371d4e2009-09-11 10:38:10 -070091 u16 radio_cfg;
92
93 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
94
95 /* write radio config values to register */
96 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
97 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
98 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
99 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
100 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
101
102 /* set CSR_HW_CONFIG_REG for uCode use */
103 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
104 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
105 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700106
107 /* no locking required for register write */
Wey-Yi Guy740e7f52009-11-06 14:52:55 -0800108 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700109 /* 2x2 IPA phy type */
110 iwl_write32(priv, CSR_GP_DRIVER_REG,
111 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
112 }
113 /* else do nothing, uCode configured */
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800114 if (priv->cfg->ops->lib->temp_ops.set_calib_version)
115 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700116}
117
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700118static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
119 .min_nrg_cck = 97,
120 .max_nrg_cck = 0, /* not used, set to 0 */
121 .auto_corr_min_ofdm = 80,
122 .auto_corr_min_ofdm_mrc = 128,
123 .auto_corr_min_ofdm_x1 = 105,
124 .auto_corr_min_ofdm_mrc_x1 = 192,
125
126 .auto_corr_max_ofdm = 145,
127 .auto_corr_max_ofdm_mrc = 232,
Wey-Yi Guy2494f632010-01-20 12:22:52 -0800128 .auto_corr_max_ofdm_x1 = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700129 .auto_corr_max_ofdm_mrc_x1 = 232,
130
131 .auto_corr_min_cck = 125,
132 .auto_corr_max_cck = 175,
133 .auto_corr_min_cck_mrc = 160,
134 .auto_corr_max_cck_mrc = 310,
135 .nrg_th_cck = 97,
136 .nrg_th_ofdm = 100,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700137
138 .barker_corr_th_min = 190,
139 .barker_corr_th_min_mrc = 390,
140 .nrg_th_cca = 62,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700141};
142
143static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
144{
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700145 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700146 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700147 priv->cfg->num_of_queues =
148 priv->cfg->mod_params->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700149
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700150 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700151 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
152 priv->hw_params.scd_bc_tbls_size =
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700153 priv->cfg->num_of_queues *
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700154 sizeof(struct iwlagn_scd_bc_tbl);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700155 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
156 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
157 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
158
159 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
160 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
161
162 priv->hw_params.max_bsm_size = 0;
163 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
164 BIT(IEEE80211_BAND_5GHZ);
165 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
166
167 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
168 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
169 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
170 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
171
172 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
173 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
174
175 /* Set initial sensitivity parameters */
176 /* Set initial calibration set */
177 priv->hw_params.sens = &iwl6000_sensitivity;
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800178 switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
179 case CSR_HW_REV_TYPE_6x50:
180 priv->hw_params.calib_init_cfg =
181 BIT(IWL_CALIB_XTAL) |
182 BIT(IWL_CALIB_DC) |
183 BIT(IWL_CALIB_LO) |
184 BIT(IWL_CALIB_TX_IQ) |
185 BIT(IWL_CALIB_BASE_BAND);
186
187 break;
188 default:
189 priv->hw_params.calib_init_cfg =
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700190 BIT(IWL_CALIB_XTAL) |
191 BIT(IWL_CALIB_LO) |
192 BIT(IWL_CALIB_TX_IQ) |
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700193 BIT(IWL_CALIB_BASE_BAND);
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800194 break;
195 }
196
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700197 return 0;
198}
199
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700200static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
201{
202 struct iwl6000_channel_switch_cmd cmd;
203 const struct iwl_channel_info *ch_info;
204 struct iwl_host_cmd hcmd = {
205 .id = REPLY_CHANNEL_SWITCH,
206 .len = sizeof(cmd),
207 .flags = CMD_SIZE_HUGE,
208 .data = &cmd,
209 };
210
211 IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
212 priv->active_rxon.channel, channel);
213
214 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
215 cmd.channel = cpu_to_le16(channel);
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800216 cmd.rxon_flags = priv->staging_rxon.flags;
217 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700218 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
219 ch_info = iwl_get_channel_info(priv, priv->band, channel);
220 if (ch_info)
221 cmd.expect_beacon = is_channel_radar(ch_info);
222 else {
223 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
224 priv->active_rxon.channel, channel);
225 return -EFAULT;
226 }
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800227 priv->switch_rxon.channel = cpu_to_le16(channel);
228 priv->switch_rxon.switch_in_progress = true;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700229
230 return iwl_send_cmd_sync(priv, &hcmd);
231}
232
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700233static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700234 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guyb305a082010-03-16 17:41:22 -0700235 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
236 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
237 .txq_set_sched = iwlagn_txq_set_sched,
238 .txq_agg_enable = iwlagn_txq_agg_enable,
239 .txq_agg_disable = iwlagn_txq_agg_disable,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700240 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
241 .txq_free_tfd = iwl_hw_txq_free_tfd,
242 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700243 .rx_handler_setup = iwlagn_rx_handler_setup,
244 .setup_deferred_work = iwlagn_setup_deferred_work,
245 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Wey-Yi Guy81b81762010-03-16 10:23:30 -0700246 .load_ucode = iwlagn_load_ucode,
Reinette Chatreb7a79402009-09-25 14:24:23 -0700247 .dump_nic_event_log = iwl_dump_nic_event_log,
248 .dump_nic_error_log = iwl_dump_nic_error_log,
Wey-Yi Guy696bdee2009-12-10 14:37:25 -0800249 .dump_csr = iwl_dump_csr,
Wey-Yi Guy1b3eb822010-01-15 13:43:39 -0800250 .dump_fh = iwl_dump_fh,
Wey-Yi Guy741a6262010-03-16 12:37:24 -0700251 .init_alive_start = iwlagn_init_alive_start,
252 .alive_notify = iwlagn_alive_notify,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700253 .send_tx_power = iwlagn_send_tx_power,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700254 .update_chain_flags = iwl_update_chain_flags,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700255 .set_channel_switch = iwl6000_hw_channel_switch,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700256 .apm_ops = {
Ben Cahillfadb3582009-10-23 13:42:21 -0700257 .init = iwl_apm_init,
Abhijeet Kolekard68b6032009-10-02 13:44:04 -0700258 .stop = iwl_apm_stop,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700259 .config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700260 .set_pwr_src = iwl_set_pwr_src,
261 },
262 .eeprom_ops = {
263 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700264 EEPROM_REG_BAND_1_CHANNELS,
265 EEPROM_REG_BAND_2_CHANNELS,
266 EEPROM_REG_BAND_3_CHANNELS,
267 EEPROM_REG_BAND_4_CHANNELS,
268 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700269 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700270 EEPROM_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700271 },
272 .verify_signature = iwlcore_eeprom_verify_signature,
273 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
274 .release_semaphore = iwlcore_eeprom_release_semaphore,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700275 .calib_version = iwlagn_eeprom_calib_version,
276 .query_addr = iwlagn_eeprom_query_addr,
Wey-Yi Guyab9fd1b2009-08-21 13:34:23 -0700277 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700278 },
279 .post_associate = iwl_post_associate,
280 .isr = iwl_isr_ict,
281 .config_ap = iwl_config_ap,
282 .temp_ops = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700283 .temperature = iwlagn_temperature,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700284 .set_ct_kill = iwl6000_set_ct_threshold,
285 },
Reinette Chatre3459ab52010-01-22 14:22:49 -0800286 .add_bcast_station = iwl_add_bcast_station,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800287 .recover_from_tx_stall = iwl_bg_monitor_recover,
Wey-Yi Guyfa8f1302010-03-05 14:22:46 -0800288 .check_plcp_health = iwl_good_plcp_health,
289 .check_ack_health = iwl_good_ack_health,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700290};
291
Emese Revfy45d5d802009-12-14 00:59:53 +0100292static const struct iwl_ops iwl6000_ops = {
Wey-Yi Guy792bc3c2010-03-16 10:23:29 -0700293 .ucode = &iwlagn_ucode,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700294 .lib = &iwl6000_lib,
Wey-Yi Guy7dc77db2010-03-16 10:23:31 -0700295 .hcmd = &iwlagn_hcmd,
296 .utils = &iwlagn_hcmd_utils,
Johannes Berge932a602009-10-02 13:44:03 -0700297 .led = &iwlagn_led_ops,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800298};
299
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800300static struct iwl_lib_ops iwl6050_lib = {
301 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guyb305a082010-03-16 17:41:22 -0700302 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
303 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
304 .txq_set_sched = iwlagn_txq_set_sched,
305 .txq_agg_enable = iwlagn_txq_agg_enable,
306 .txq_agg_disable = iwlagn_txq_agg_disable,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800307 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
308 .txq_free_tfd = iwl_hw_txq_free_tfd,
309 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700310 .rx_handler_setup = iwlagn_rx_handler_setup,
311 .setup_deferred_work = iwlagn_setup_deferred_work,
312 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Wey-Yi Guy81b81762010-03-16 10:23:30 -0700313 .load_ucode = iwlagn_load_ucode,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800314 .dump_nic_event_log = iwl_dump_nic_event_log,
315 .dump_nic_error_log = iwl_dump_nic_error_log,
316 .dump_csr = iwl_dump_csr,
317 .dump_fh = iwl_dump_fh,
Wey-Yi Guy741a6262010-03-16 12:37:24 -0700318 .init_alive_start = iwlagn_init_alive_start,
319 .alive_notify = iwlagn_alive_notify,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700320 .send_tx_power = iwlagn_send_tx_power,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800321 .update_chain_flags = iwl_update_chain_flags,
322 .set_channel_switch = iwl6000_hw_channel_switch,
323 .apm_ops = {
324 .init = iwl_apm_init,
325 .stop = iwl_apm_stop,
326 .config = iwl6000_nic_config,
327 .set_pwr_src = iwl_set_pwr_src,
328 },
329 .eeprom_ops = {
330 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700331 EEPROM_REG_BAND_1_CHANNELS,
332 EEPROM_REG_BAND_2_CHANNELS,
333 EEPROM_REG_BAND_3_CHANNELS,
334 EEPROM_REG_BAND_4_CHANNELS,
335 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700336 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700337 EEPROM_REG_BAND_52_HT40_CHANNELS
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800338 },
339 .verify_signature = iwlcore_eeprom_verify_signature,
340 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
341 .release_semaphore = iwlcore_eeprom_release_semaphore,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700342 .calib_version = iwlagn_eeprom_calib_version,
343 .query_addr = iwlagn_eeprom_query_addr,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800344 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
345 },
346 .post_associate = iwl_post_associate,
347 .isr = iwl_isr_ict,
348 .config_ap = iwl_config_ap,
349 .temp_ops = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700350 .temperature = iwlagn_temperature,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800351 .set_ct_kill = iwl6000_set_ct_threshold,
352 .set_calib_version = iwl6050_set_calib_version,
353 },
354 .add_bcast_station = iwl_add_bcast_station,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800355 .recover_from_tx_stall = iwl_bg_monitor_recover,
Wey-Yi Guyfa8f1302010-03-05 14:22:46 -0800356 .check_plcp_health = iwl_good_plcp_health,
357 .check_ack_health = iwl_good_ack_health,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800358};
359
360static const struct iwl_ops iwl6050_ops = {
Wey-Yi Guy792bc3c2010-03-16 10:23:29 -0700361 .ucode = &iwlagn_ucode,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800362 .lib = &iwl6050_lib,
Wey-Yi Guy7dc77db2010-03-16 10:23:31 -0700363 .hcmd = &iwlagn_hcmd,
364 .utils = &iwlagn_hcmd_utils,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800365 .led = &iwlagn_led_ops,
366};
367
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700368/*
369 * "i": Internal configuration, use internal Power Amplifier
370 */
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700371struct iwl_cfg iwl6000g2i_2agn_cfg = {
Jay Sternberg0b5af202010-03-17 16:16:12 -0700372 .name = "6000 Series 2x2 AGN Gen2",
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700373 .fw_name_pre = IWL6000G2_FW_PRE,
374 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
375 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700376 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
377 .ops = &iwl6000_ops,
378 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700379 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
380 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700381 .num_of_queues = IWLAGN_NUM_QUEUES,
382 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
383 .mod_params = &iwlagn_mod_params,
384 .valid_tx_ant = ANT_AB,
385 .valid_rx_ant = ANT_AB,
386 .pll_cfg_val = 0,
387 .set_l0s = true,
388 .use_bsm = false,
389 .pa_type = IWL_PA_INTERNAL,
390 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
391 .shadow_ram_support = true,
392 .ht_greenfield_support = true,
393 .led_compensation = 51,
394 .use_rts_for_ht = true, /* use rts/cts protection */
395 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
396 .supports_idle = true,
397 .adv_thermal_throttle = true,
398 .support_ct_kill_exit = true,
399 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
400 .chain_noise_scale = 1000,
401 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700402 .max_event_log_size = 1024,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700403};
404
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700405struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800406 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700407 .fw_name_pre = IWL6000_FW_PRE,
408 .ucode_api_max = IWL6000_UCODE_API_MAX,
409 .ucode_api_min = IWL6000_UCODE_API_MIN,
410 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
411 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700412 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700413 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700414 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700415 .num_of_queues = IWLAGN_NUM_QUEUES,
416 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7c2010-03-16 12:37:27 -0700417 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700418 .valid_tx_ant = ANT_BC,
419 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700420 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700421 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700422 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700423 .pa_type = IWL_PA_INTERNAL,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700424 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
425 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700426 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700427 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700428 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700429 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700430 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700431 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700432 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800433 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800434 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800435 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700436 .max_event_log_size = 1024,
Jay Sternberge1228372009-01-19 15:30:34 -0800437};
438
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700439struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800440 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700441 .fw_name_pre = IWL6000_FW_PRE,
442 .ucode_api_max = IWL6000_UCODE_API_MAX,
443 .ucode_api_min = IWL6000_UCODE_API_MIN,
444 .sku = IWL_SKU_A|IWL_SKU_G,
445 .ops = &iwl6000_ops,
446 .eeprom_size = OTP_LOW_IMAGE_SIZE,
447 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700448 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700449 .num_of_queues = IWLAGN_NUM_QUEUES,
450 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7c2010-03-16 12:37:27 -0700451 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700452 .valid_tx_ant = ANT_BC,
453 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700454 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700455 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700456 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700457 .pa_type = IWL_PA_INTERNAL,
458 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
459 .shadow_ram_support = true,
460 .ht_greenfield_support = true,
461 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700462 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700463 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700464 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700465 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800466 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800467 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800468 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700469 .max_event_log_size = 1024,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700470};
471
472struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800473 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700474 .fw_name_pre = IWL6000_FW_PRE,
475 .ucode_api_max = IWL6000_UCODE_API_MAX,
476 .ucode_api_min = IWL6000_UCODE_API_MIN,
477 .sku = IWL_SKU_G,
478 .ops = &iwl6000_ops,
479 .eeprom_size = OTP_LOW_IMAGE_SIZE,
480 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700481 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700482 .num_of_queues = IWLAGN_NUM_QUEUES,
483 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7c2010-03-16 12:37:27 -0700484 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700485 .valid_tx_ant = ANT_BC,
486 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700487 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700488 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700489 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700490 .pa_type = IWL_PA_INTERNAL,
491 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
492 .shadow_ram_support = true,
493 .ht_greenfield_support = true,
494 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700495 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700496 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700497 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700498 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800499 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800500 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800501 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700502 .max_event_log_size = 1024,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700503};
504
Jay Sternberge1228372009-01-19 15:30:34 -0800505struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800506 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800507 .fw_name_pre = IWL6050_FW_PRE,
508 .ucode_api_max = IWL6050_UCODE_API_MAX,
509 .ucode_api_min = IWL6050_UCODE_API_MIN,
510 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800511 .ops = &iwl6050_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700512 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700513 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700514 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700515 .num_of_queues = IWLAGN_NUM_QUEUES,
516 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7c2010-03-16 12:37:27 -0700517 .mod_params = &iwlagn_mod_params,
Jay Sternberg542cc792009-05-08 13:44:46 -0700518 .valid_tx_ant = ANT_AB,
519 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700520 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700521 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700522 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700523 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700524 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700525 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700526 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700527 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700528 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700529 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700530 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700531 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700532 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800533 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800534 .chain_noise_scale = 1500,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800535 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700536 .max_event_log_size = 1024,
Jay Sternberge1228372009-01-19 15:30:34 -0800537};
538
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700539struct iwl_cfg iwl6050_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800540 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700541 .fw_name_pre = IWL6050_FW_PRE,
542 .ucode_api_max = IWL6050_UCODE_API_MAX,
543 .ucode_api_min = IWL6050_UCODE_API_MIN,
544 .sku = IWL_SKU_A|IWL_SKU_G,
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800545 .ops = &iwl6050_ops,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700546 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700547 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700548 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700549 .num_of_queues = IWLAGN_NUM_QUEUES,
550 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7c2010-03-16 12:37:27 -0700551 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700552 .valid_tx_ant = ANT_AB,
553 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700554 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700555 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700556 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700557 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700558 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700559 .shadow_ram_support = true,
560 .ht_greenfield_support = true,
561 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700562 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700563 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700564 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700565 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800566 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800567 .chain_noise_scale = 1500,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800568 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700569 .max_event_log_size = 1024,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700570};
571
Jay Sternberge1228372009-01-19 15:30:34 -0800572struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800573 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800574 .fw_name_pre = IWL6000_FW_PRE,
575 .ucode_api_max = IWL6000_UCODE_API_MAX,
576 .ucode_api_min = IWL6000_UCODE_API_MIN,
577 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800578 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700579 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700580 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700581 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700582 .num_of_queues = IWLAGN_NUM_QUEUES,
583 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7c2010-03-16 12:37:27 -0700584 .mod_params = &iwlagn_mod_params,
Jay Sternbergc0bac762009-02-02 16:21:14 -0800585 .valid_tx_ant = ANT_ABC,
586 .valid_rx_ant = ANT_ABC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700587 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700588 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700589 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700590 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700591 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
592 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700593 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700594 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700595 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700596 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700597 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700598 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700599 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800600 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800601 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800602 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700603 .max_event_log_size = 1024,
Jay Sternberge1228372009-01-19 15:30:34 -0800604};
605
Jay Sternberge1228372009-01-19 15:30:34 -0800606MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
607MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700608MODULE_FIRMWARE(IWL6000G2_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));