blob: c909a9c5e5e1058b4acb6d82f3bac827380cfcd4 [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"
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -070050#include "iwl-agn-debugfs.h"
Jay Sternberge1228372009-01-19 15:30:34 -080051
52/* Highest firmware API version supported */
Wey-Yi Guyfcbaf8b2009-08-21 13:34:18 -070053#define IWL6000_UCODE_API_MAX 4
54#define IWL6050_UCODE_API_MAX 4
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070055#define IWL6000G2_UCODE_API_MAX 4
Jay Sternberge1228372009-01-19 15:30:34 -080056
57/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070058#define IWL6000_UCODE_API_MIN 4
59#define IWL6050_UCODE_API_MIN 4
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070060#define IWL6000G2_UCODE_API_MIN 4
Jay Sternberge1228372009-01-19 15:30:34 -080061
62#define IWL6000_FW_PRE "iwlwifi-6000-"
63#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
64#define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
65
66#define IWL6050_FW_PRE "iwlwifi-6050-"
67#define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
68#define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
69
Shanyu Zhao95b13012010-04-21 11:46:33 -070070#define IWL6000G2A_FW_PRE "iwlwifi-6000g2a-"
71#define _IWL6000G2A_MODULE_FIRMWARE(api) IWL6000G2A_FW_PRE #api ".ucode"
72#define IWL6000G2A_MODULE_FIRMWARE(api) _IWL6000G2A_MODULE_FIRMWARE(api)
73
Shanyu Zhao18089722010-05-06 10:15:21 -070074#define IWL6000G2B_FW_PRE "iwlwifi-6000g2b-"
75#define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode"
76#define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api)
77
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070078
Wey-Yi Guy672639d2009-07-24 11:13:01 -070079static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
80{
81 /* want Celsius */
82 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
83 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
84}
85
Abhijeet Kolekard5755932010-02-18 22:03:05 -080086/* Indicate calibration version to uCode. */
Wey-Yi Guy178d1592010-06-15 16:14:53 -070087static void iwl6000_set_calib_version(struct iwl_priv *priv)
Abhijeet Kolekard5755932010-02-18 22:03:05 -080088{
Wey-Yi Guy178d1592010-06-15 16:14:53 -070089 if (priv->cfg->need_dc_calib &&
90 (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6))
Abhijeet Kolekard5755932010-02-18 22:03:05 -080091 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
92 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
93}
94
Wey-Yi Guy65b79982009-07-31 14:28:07 -070095/* NIC configuration for 6000 series */
96static void iwl6000_nic_config(struct iwl_priv *priv)
97{
Wey-Yi Guy9371d4e2009-09-11 10:38:10 -070098 u16 radio_cfg;
99
100 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
101
102 /* write radio config values to register */
103 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
104 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
105 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
106 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
107 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
108
109 /* set CSR_HW_CONFIG_REG for uCode use */
110 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
111 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
112 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700113
114 /* no locking required for register write */
Wey-Yi Guy740e7f52009-11-06 14:52:55 -0800115 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700116 /* 2x2 IPA phy type */
117 iwl_write32(priv, CSR_GP_DRIVER_REG,
118 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
119 }
120 /* else do nothing, uCode configured */
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800121 if (priv->cfg->ops->lib->temp_ops.set_calib_version)
122 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700123}
124
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700125static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
126 .min_nrg_cck = 97,
127 .max_nrg_cck = 0, /* not used, set to 0 */
128 .auto_corr_min_ofdm = 80,
129 .auto_corr_min_ofdm_mrc = 128,
130 .auto_corr_min_ofdm_x1 = 105,
131 .auto_corr_min_ofdm_mrc_x1 = 192,
132
133 .auto_corr_max_ofdm = 145,
134 .auto_corr_max_ofdm_mrc = 232,
Wey-Yi Guy2494f632010-01-20 12:22:52 -0800135 .auto_corr_max_ofdm_x1 = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700136 .auto_corr_max_ofdm_mrc_x1 = 232,
137
138 .auto_corr_min_cck = 125,
139 .auto_corr_max_cck = 175,
140 .auto_corr_min_cck_mrc = 160,
141 .auto_corr_max_cck_mrc = 310,
142 .nrg_th_cck = 97,
143 .nrg_th_ofdm = 100,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700144
145 .barker_corr_th_min = 190,
146 .barker_corr_th_min_mrc = 390,
147 .nrg_th_cca = 62,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700148};
149
150static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
151{
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700152 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700153 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700154 priv->cfg->num_of_queues =
155 priv->cfg->mod_params->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700156
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700157 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700158 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
159 priv->hw_params.scd_bc_tbls_size =
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700160 priv->cfg->num_of_queues *
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700161 sizeof(struct iwlagn_scd_bc_tbl);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700162 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
163 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
164 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
165
166 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
167 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
168
169 priv->hw_params.max_bsm_size = 0;
170 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
171 BIT(IEEE80211_BAND_5GHZ);
172 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
173
174 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
175 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
176 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
177 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
178
179 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
180 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
181
182 /* Set initial sensitivity parameters */
183 /* Set initial calibration set */
184 priv->hw_params.sens = &iwl6000_sensitivity;
Wey-Yi Guye517736a2010-04-19 18:49:40 -0700185 priv->hw_params.calib_init_cfg =
186 BIT(IWL_CALIB_XTAL) |
187 BIT(IWL_CALIB_LO) |
188 BIT(IWL_CALIB_TX_IQ) |
189 BIT(IWL_CALIB_BASE_BAND);
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700190 if (priv->cfg->need_dc_calib)
191 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800192
Wey-Yi Guya0ee74c2010-05-06 08:54:10 -0700193 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
194
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700195 return 0;
196}
197
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700198static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
199 struct ieee80211_channel_switch *ch_switch)
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700200{
201 struct iwl6000_channel_switch_cmd cmd;
202 const struct iwl_channel_info *ch_info;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700203 u32 switch_time_in_usec, ucode_switch_time;
204 u16 ch;
205 u32 tsf_low;
206 u8 switch_count;
207 u16 beacon_interval = le16_to_cpu(priv->rxon_timing.beacon_interval);
208 struct ieee80211_vif *vif = priv->vif;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700209 struct iwl_host_cmd hcmd = {
210 .id = REPLY_CHANNEL_SWITCH,
211 .len = sizeof(cmd),
Wey-Yi Guy3839f7c2010-05-18 09:18:06 -0700212 .flags = CMD_SYNC,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700213 .data = &cmd,
214 };
215
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700216 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700217 ch = ieee80211_frequency_to_channel(ch_switch->channel->center_freq);
218 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
219 priv->active_rxon.channel, ch);
220 cmd.channel = cpu_to_le16(ch);
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800221 cmd.rxon_flags = priv->staging_rxon.flags;
222 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700223 switch_count = ch_switch->count;
224 tsf_low = ch_switch->timestamp & 0x0ffffffff;
225 /*
226 * calculate the ucode channel switch time
227 * adding TSF as one of the factor for when to switch
228 */
229 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
230 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
231 beacon_interval)) {
232 switch_count -= (priv->ucode_beacon_time -
233 tsf_low) / beacon_interval;
234 } else
235 switch_count = 0;
236 }
237 if (switch_count <= 1)
238 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
239 else {
240 switch_time_in_usec =
241 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
242 ucode_switch_time = iwl_usecs_to_beacons(priv,
243 switch_time_in_usec,
244 beacon_interval);
245 cmd.switch_time = iwl_add_beacon_time(priv,
246 priv->ucode_beacon_time,
247 ucode_switch_time,
248 beacon_interval);
249 }
250 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
251 cmd.switch_time);
252 ch_info = iwl_get_channel_info(priv, priv->band, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700253 if (ch_info)
254 cmd.expect_beacon = is_channel_radar(ch_info);
255 else {
256 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700257 priv->active_rxon.channel, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700258 return -EFAULT;
259 }
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700260 priv->switch_rxon.channel = cmd.channel;
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800261 priv->switch_rxon.switch_in_progress = true;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700262
263 return iwl_send_cmd_sync(priv, &hcmd);
264}
265
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700266static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700267 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guyb305a082010-03-16 17:41:22 -0700268 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
269 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
270 .txq_set_sched = iwlagn_txq_set_sched,
271 .txq_agg_enable = iwlagn_txq_agg_enable,
272 .txq_agg_disable = iwlagn_txq_agg_disable,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700273 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
274 .txq_free_tfd = iwl_hw_txq_free_tfd,
275 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700276 .rx_handler_setup = iwlagn_rx_handler_setup,
277 .setup_deferred_work = iwlagn_setup_deferred_work,
278 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Wey-Yi Guy81b81762010-03-16 10:23:30 -0700279 .load_ucode = iwlagn_load_ucode,
Reinette Chatreb7a79402009-09-25 14:24:23 -0700280 .dump_nic_event_log = iwl_dump_nic_event_log,
281 .dump_nic_error_log = iwl_dump_nic_error_log,
Wey-Yi Guy696bdee2009-12-10 14:37:25 -0800282 .dump_csr = iwl_dump_csr,
Wey-Yi Guy1b3eb822010-01-15 13:43:39 -0800283 .dump_fh = iwl_dump_fh,
Wey-Yi Guy741a6262010-03-16 12:37:24 -0700284 .init_alive_start = iwlagn_init_alive_start,
285 .alive_notify = iwlagn_alive_notify,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700286 .send_tx_power = iwlagn_send_tx_power,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700287 .update_chain_flags = iwl_update_chain_flags,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700288 .set_channel_switch = iwl6000_hw_channel_switch,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700289 .apm_ops = {
Ben Cahillfadb3582009-10-23 13:42:21 -0700290 .init = iwl_apm_init,
Abhijeet Kolekard68b6032009-10-02 13:44:04 -0700291 .stop = iwl_apm_stop,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700292 .config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700293 .set_pwr_src = iwl_set_pwr_src,
294 },
295 .eeprom_ops = {
296 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700297 EEPROM_REG_BAND_1_CHANNELS,
298 EEPROM_REG_BAND_2_CHANNELS,
299 EEPROM_REG_BAND_3_CHANNELS,
300 EEPROM_REG_BAND_4_CHANNELS,
301 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700302 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700303 EEPROM_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700304 },
305 .verify_signature = iwlcore_eeprom_verify_signature,
306 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
307 .release_semaphore = iwlcore_eeprom_release_semaphore,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700308 .calib_version = iwlagn_eeprom_calib_version,
309 .query_addr = iwlagn_eeprom_query_addr,
Wey-Yi Guyab9fd1b2009-08-21 13:34:23 -0700310 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700311 },
312 .post_associate = iwl_post_associate,
313 .isr = iwl_isr_ict,
314 .config_ap = iwl_config_ap,
315 .temp_ops = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700316 .temperature = iwlagn_temperature,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700317 .set_ct_kill = iwl6000_set_ct_threshold,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700318 .set_calib_version = iwl6000_set_calib_version,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700319 },
Johannes Berg1fa61b22010-04-28 08:44:52 -0700320 .manage_ibss_station = iwlagn_manage_ibss_station,
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -0700321 .debugfs_ops = {
322 .rx_stats_read = iwl_ucode_rx_stats_read,
323 .tx_stats_read = iwl_ucode_tx_stats_read,
324 .general_stats_read = iwl_ucode_general_stats_read,
325 },
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800326 .recover_from_tx_stall = iwl_bg_monitor_recover,
Wey-Yi Guyfa8f1302010-03-05 14:22:46 -0800327 .check_plcp_health = iwl_good_plcp_health,
328 .check_ack_health = iwl_good_ack_health,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700329};
330
Emese Revfy45d5d802009-12-14 00:59:53 +0100331static const struct iwl_ops iwl6000_ops = {
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700332 .lib = &iwl6000_lib,
Wey-Yi Guy7dc77db2010-03-16 10:23:31 -0700333 .hcmd = &iwlagn_hcmd,
334 .utils = &iwlagn_hcmd_utils,
Johannes Berge932a602009-10-02 13:44:03 -0700335 .led = &iwlagn_led_ops,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800336};
337
Shanyu Zhao18089722010-05-06 10:15:21 -0700338static void do_not_send_bt_config(struct iwl_priv *priv)
339{
340}
341
342static struct iwl_hcmd_ops iwl6000g2b_hcmd = {
343 .rxon_assoc = iwlagn_send_rxon_assoc,
344 .commit_rxon = iwl_commit_rxon,
345 .set_rxon_chain = iwl_set_rxon_chain,
346 .set_tx_ant = iwlagn_send_tx_ant_config,
347 .send_bt_config = do_not_send_bt_config,
348};
349
350static const struct iwl_ops iwl6000g2b_ops = {
351 .lib = &iwl6000_lib,
352 .hcmd = &iwl6000g2b_hcmd,
353 .utils = &iwlagn_hcmd_utils,
354 .led = &iwlagn_led_ops,
355};
356
Shanyu Zhao95b13012010-04-21 11:46:33 -0700357struct iwl_cfg iwl6000g2a_2agn_cfg = {
358 .name = "6000 Series 2x2 AGN Gen2a",
359 .fw_name_pre = IWL6000G2A_FW_PRE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700360 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
361 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700362 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
363 .ops = &iwl6000_ops,
364 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700365 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
366 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700367 .num_of_queues = IWLAGN_NUM_QUEUES,
368 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
369 .mod_params = &iwlagn_mod_params,
370 .valid_tx_ant = ANT_AB,
371 .valid_rx_ant = ANT_AB,
372 .pll_cfg_val = 0,
373 .set_l0s = true,
374 .use_bsm = false,
Wey-Yi Guy33e6f812010-04-09 09:36:11 -0700375 .pa_type = IWL_PA_SYSTEM,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700376 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
377 .shadow_ram_support = true,
378 .ht_greenfield_support = true,
379 .led_compensation = 51,
380 .use_rts_for_ht = true, /* use rts/cts protection */
381 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
382 .supports_idle = true,
383 .adv_thermal_throttle = true,
384 .support_ct_kill_exit = true,
385 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
386 .chain_noise_scale = 1000,
387 .monitor_recover_period = IWL_MONITORING_PERIOD,
Shanyu Zhao95b13012010-04-21 11:46:33 -0700388 .max_event_log_size = 512,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700389 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700390 .sensitivity_calib_by_driver = true,
391 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700392 .need_dc_calib = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700393};
394
Shanyu Zhao18089722010-05-06 10:15:21 -0700395struct iwl_cfg iwl6000g2a_2abg_cfg = {
396 .name = "6000 Series 2x2 ABG Gen2a",
397 .fw_name_pre = IWL6000G2A_FW_PRE,
398 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
399 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
400 .sku = IWL_SKU_A|IWL_SKU_G,
401 .ops = &iwl6000_ops,
402 .eeprom_size = OTP_LOW_IMAGE_SIZE,
403 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
404 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
405 .num_of_queues = IWLAGN_NUM_QUEUES,
406 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
407 .mod_params = &iwlagn_mod_params,
408 .valid_tx_ant = ANT_AB,
409 .valid_rx_ant = ANT_AB,
410 .pll_cfg_val = 0,
411 .set_l0s = true,
412 .use_bsm = false,
413 .pa_type = IWL_PA_SYSTEM,
414 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
415 .shadow_ram_support = true,
416 .led_compensation = 51,
417 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
418 .supports_idle = true,
419 .adv_thermal_throttle = true,
420 .support_ct_kill_exit = true,
421 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
422 .chain_noise_scale = 1000,
423 .monitor_recover_period = IWL_MONITORING_PERIOD,
424 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700425 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700426};
427
428struct iwl_cfg iwl6000g2a_2bg_cfg = {
429 .name = "6000 Series 2x2 BG Gen2a",
430 .fw_name_pre = IWL6000G2A_FW_PRE,
431 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
432 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
433 .sku = IWL_SKU_G,
434 .ops = &iwl6000_ops,
435 .eeprom_size = OTP_LOW_IMAGE_SIZE,
436 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
437 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
438 .num_of_queues = IWLAGN_NUM_QUEUES,
439 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
440 .mod_params = &iwlagn_mod_params,
441 .valid_tx_ant = ANT_AB,
442 .valid_rx_ant = ANT_AB,
443 .pll_cfg_val = 0,
444 .set_l0s = true,
445 .use_bsm = false,
446 .pa_type = IWL_PA_SYSTEM,
447 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
448 .shadow_ram_support = true,
449 .led_compensation = 51,
450 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
451 .supports_idle = true,
452 .adv_thermal_throttle = true,
453 .support_ct_kill_exit = true,
454 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
455 .chain_noise_scale = 1000,
456 .monitor_recover_period = IWL_MONITORING_PERIOD,
457 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700458 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700459};
460
461struct iwl_cfg iwl6000g2b_2agn_cfg = {
462 .name = "6000 Series 2x2 AGN Gen2b",
463 .fw_name_pre = IWL6000G2B_FW_PRE,
464 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
465 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
466 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
467 .ops = &iwl6000g2b_ops,
468 .eeprom_size = OTP_LOW_IMAGE_SIZE,
469 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
470 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
471 .num_of_queues = IWLAGN_NUM_QUEUES,
472 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
473 .mod_params = &iwlagn_mod_params,
474 .valid_tx_ant = ANT_AB,
475 .valid_rx_ant = ANT_AB,
476 .pll_cfg_val = 0,
477 .set_l0s = true,
478 .use_bsm = false,
479 .pa_type = IWL_PA_SYSTEM,
480 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
481 .shadow_ram_support = true,
482 .ht_greenfield_support = true,
483 .led_compensation = 51,
484 .use_rts_for_ht = true, /* use rts/cts protection */
485 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
486 .supports_idle = true,
487 .adv_thermal_throttle = true,
488 .support_ct_kill_exit = true,
489 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
490 .chain_noise_scale = 1000,
491 .monitor_recover_period = IWL_MONITORING_PERIOD,
492 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700493 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700494};
495
496struct iwl_cfg iwl6000g2b_2abg_cfg = {
497 .name = "6000 Series 2x2 ABG Gen2b",
498 .fw_name_pre = IWL6000G2B_FW_PRE,
499 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
500 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
501 .sku = IWL_SKU_A|IWL_SKU_G,
502 .ops = &iwl6000g2b_ops,
503 .eeprom_size = OTP_LOW_IMAGE_SIZE,
504 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
505 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
506 .num_of_queues = IWLAGN_NUM_QUEUES,
507 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
508 .mod_params = &iwlagn_mod_params,
509 .valid_tx_ant = ANT_AB,
510 .valid_rx_ant = ANT_AB,
511 .pll_cfg_val = 0,
512 .set_l0s = true,
513 .use_bsm = false,
514 .pa_type = IWL_PA_SYSTEM,
515 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
516 .shadow_ram_support = true,
517 .led_compensation = 51,
518 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
519 .supports_idle = true,
520 .adv_thermal_throttle = true,
521 .support_ct_kill_exit = true,
522 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
523 .chain_noise_scale = 1000,
524 .monitor_recover_period = IWL_MONITORING_PERIOD,
525 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700526 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700527};
528
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700529struct iwl_cfg iwl6000g2b_2bgn_cfg = {
530 .name = "6000 Series 2x2 BGN Gen2b",
531 .fw_name_pre = IWL6000G2B_FW_PRE,
532 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
533 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
534 .sku = IWL_SKU_G|IWL_SKU_N,
535 .ops = &iwl6000g2b_ops,
536 .eeprom_size = OTP_LOW_IMAGE_SIZE,
537 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
538 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
539 .num_of_queues = IWLAGN_NUM_QUEUES,
540 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
541 .mod_params = &iwlagn_mod_params,
542 .valid_tx_ant = ANT_AB,
543 .valid_rx_ant = ANT_AB,
544 .pll_cfg_val = 0,
545 .set_l0s = true,
546 .use_bsm = false,
547 .pa_type = IWL_PA_SYSTEM,
548 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
549 .shadow_ram_support = true,
550 .ht_greenfield_support = true,
551 .led_compensation = 51,
552 .use_rts_for_ht = true, /* use rts/cts protection */
553 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
554 .supports_idle = true,
555 .adv_thermal_throttle = true,
556 .support_ct_kill_exit = true,
557 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
558 .chain_noise_scale = 1000,
559 .monitor_recover_period = IWL_MONITORING_PERIOD,
560 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700561 .need_dc_calib = true,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700562};
563
Shanyu Zhao18089722010-05-06 10:15:21 -0700564struct iwl_cfg iwl6000g2b_2bg_cfg = {
565 .name = "6000 Series 2x2 BG Gen2b",
566 .fw_name_pre = IWL6000G2B_FW_PRE,
567 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
568 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
569 .sku = IWL_SKU_G,
570 .ops = &iwl6000g2b_ops,
571 .eeprom_size = OTP_LOW_IMAGE_SIZE,
572 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
573 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
574 .num_of_queues = IWLAGN_NUM_QUEUES,
575 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
576 .mod_params = &iwlagn_mod_params,
577 .valid_tx_ant = ANT_AB,
578 .valid_rx_ant = ANT_AB,
579 .pll_cfg_val = 0,
580 .set_l0s = true,
581 .use_bsm = false,
582 .pa_type = IWL_PA_SYSTEM,
583 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
584 .shadow_ram_support = true,
585 .led_compensation = 51,
586 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
587 .supports_idle = true,
588 .adv_thermal_throttle = true,
589 .support_ct_kill_exit = true,
590 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
591 .chain_noise_scale = 1000,
592 .monitor_recover_period = IWL_MONITORING_PERIOD,
593 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700594 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700595};
596
597struct iwl_cfg iwl6000g2b_bgn_cfg = {
598 .name = "6000 Series 1x2 BGN Gen2b",
599 .fw_name_pre = IWL6000G2B_FW_PRE,
600 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
601 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
602 .sku = IWL_SKU_G|IWL_SKU_N,
603 .ops = &iwl6000g2b_ops,
604 .eeprom_size = OTP_LOW_IMAGE_SIZE,
605 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
606 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
607 .num_of_queues = IWLAGN_NUM_QUEUES,
608 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
609 .mod_params = &iwlagn_mod_params,
610 .valid_tx_ant = ANT_A,
611 .valid_rx_ant = ANT_AB,
612 .pll_cfg_val = 0,
613 .set_l0s = true,
614 .use_bsm = false,
615 .pa_type = IWL_PA_SYSTEM,
616 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
617 .shadow_ram_support = true,
618 .ht_greenfield_support = true,
619 .led_compensation = 51,
620 .use_rts_for_ht = true, /* use rts/cts protection */
621 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
622 .supports_idle = true,
623 .adv_thermal_throttle = true,
624 .support_ct_kill_exit = true,
625 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
626 .chain_noise_scale = 1000,
627 .monitor_recover_period = IWL_MONITORING_PERIOD,
628 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700629 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700630};
631
632struct iwl_cfg iwl6000g2b_bg_cfg = {
633 .name = "6000 Series 1x2 BG Gen2b",
634 .fw_name_pre = IWL6000G2B_FW_PRE,
635 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
636 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
637 .sku = IWL_SKU_G,
638 .ops = &iwl6000g2b_ops,
639 .eeprom_size = OTP_LOW_IMAGE_SIZE,
640 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
641 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
642 .num_of_queues = IWLAGN_NUM_QUEUES,
643 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
644 .mod_params = &iwlagn_mod_params,
645 .valid_tx_ant = ANT_A,
646 .valid_rx_ant = ANT_AB,
647 .pll_cfg_val = 0,
648 .set_l0s = true,
649 .use_bsm = false,
650 .pa_type = IWL_PA_SYSTEM,
651 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
652 .shadow_ram_support = true,
653 .led_compensation = 51,
654 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
655 .supports_idle = true,
656 .adv_thermal_throttle = true,
657 .support_ct_kill_exit = true,
658 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
659 .chain_noise_scale = 1000,
660 .monitor_recover_period = IWL_MONITORING_PERIOD,
661 .max_event_log_size = 512,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700662 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700663};
664
Shanyu Zhao95b13012010-04-21 11:46:33 -0700665/*
666 * "i": Internal configuration, use internal Power Amplifier
667 */
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700668struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800669 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700670 .fw_name_pre = IWL6000_FW_PRE,
671 .ucode_api_max = IWL6000_UCODE_API_MAX,
672 .ucode_api_min = IWL6000_UCODE_API_MIN,
673 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
674 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700675 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700676 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700677 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700678 .num_of_queues = IWLAGN_NUM_QUEUES,
679 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700680 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700681 .valid_tx_ant = ANT_BC,
682 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700683 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700684 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700685 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700686 .pa_type = IWL_PA_INTERNAL,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700687 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
688 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700689 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700690 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700691 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700692 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700693 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700694 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700695 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800696 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800697 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800698 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700699 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700700 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700701 .sensitivity_calib_by_driver = true,
702 .chain_noise_calib_by_driver = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800703};
704
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700705struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800706 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700707 .fw_name_pre = IWL6000_FW_PRE,
708 .ucode_api_max = IWL6000_UCODE_API_MAX,
709 .ucode_api_min = IWL6000_UCODE_API_MIN,
710 .sku = IWL_SKU_A|IWL_SKU_G,
711 .ops = &iwl6000_ops,
712 .eeprom_size = OTP_LOW_IMAGE_SIZE,
713 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700714 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700715 .num_of_queues = IWLAGN_NUM_QUEUES,
716 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700717 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700718 .valid_tx_ant = ANT_BC,
719 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700720 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700721 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700722 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700723 .pa_type = IWL_PA_INTERNAL,
724 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
725 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700726 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700727 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700728 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700729 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700730 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800731 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800732 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800733 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700734 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700735 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700736 .sensitivity_calib_by_driver = true,
737 .chain_noise_calib_by_driver = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700738};
739
740struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800741 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700742 .fw_name_pre = IWL6000_FW_PRE,
743 .ucode_api_max = IWL6000_UCODE_API_MAX,
744 .ucode_api_min = IWL6000_UCODE_API_MIN,
745 .sku = IWL_SKU_G,
746 .ops = &iwl6000_ops,
747 .eeprom_size = OTP_LOW_IMAGE_SIZE,
748 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700749 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700750 .num_of_queues = IWLAGN_NUM_QUEUES,
751 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700752 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700753 .valid_tx_ant = ANT_BC,
754 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700755 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700756 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700757 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700758 .pa_type = IWL_PA_INTERNAL,
759 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
760 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700761 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700762 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700763 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700764 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700765 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800766 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800767 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800768 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700769 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700770 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700771 .sensitivity_calib_by_driver = true,
772 .chain_noise_calib_by_driver = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700773};
774
Jay Sternberge1228372009-01-19 15:30:34 -0800775struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800776 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800777 .fw_name_pre = IWL6050_FW_PRE,
778 .ucode_api_max = IWL6050_UCODE_API_MAX,
779 .ucode_api_min = IWL6050_UCODE_API_MIN,
780 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700781 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700782 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700783 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700784 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700785 .num_of_queues = IWLAGN_NUM_QUEUES,
786 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700787 .mod_params = &iwlagn_mod_params,
Jay Sternberg542cc792009-05-08 13:44:46 -0700788 .valid_tx_ant = ANT_AB,
789 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700790 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700791 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700792 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700793 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700794 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700795 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700796 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700797 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700798 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700799 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700800 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700801 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700802 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800803 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800804 .chain_noise_scale = 1500,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800805 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700806 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700807 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700808 .sensitivity_calib_by_driver = true,
809 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700810 .need_dc_calib = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800811};
812
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700813struct iwl_cfg iwl6050_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800814 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700815 .fw_name_pre = IWL6050_FW_PRE,
816 .ucode_api_max = IWL6050_UCODE_API_MAX,
817 .ucode_api_min = IWL6050_UCODE_API_MIN,
818 .sku = IWL_SKU_A|IWL_SKU_G,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700819 .ops = &iwl6000_ops,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700820 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700821 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700822 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700823 .num_of_queues = IWLAGN_NUM_QUEUES,
824 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700825 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700826 .valid_tx_ant = ANT_AB,
827 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700828 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700829 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700830 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700831 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700832 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700833 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700834 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700835 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700836 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700837 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700838 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800839 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800840 .chain_noise_scale = 1500,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800841 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700842 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700843 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700844 .sensitivity_calib_by_driver = true,
845 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700846 .need_dc_calib = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700847};
848
Jay Sternberge1228372009-01-19 15:30:34 -0800849struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800850 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800851 .fw_name_pre = IWL6000_FW_PRE,
852 .ucode_api_max = IWL6000_UCODE_API_MAX,
853 .ucode_api_min = IWL6000_UCODE_API_MIN,
854 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800855 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700856 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700857 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700858 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700859 .num_of_queues = IWLAGN_NUM_QUEUES,
860 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700861 .mod_params = &iwlagn_mod_params,
Jay Sternbergc0bac762009-02-02 16:21:14 -0800862 .valid_tx_ant = ANT_ABC,
863 .valid_rx_ant = ANT_ABC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700864 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700865 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700866 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700867 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700868 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
869 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700870 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700871 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700872 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700873 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700874 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700875 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700876 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800877 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800878 .chain_noise_scale = 1000,
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800879 .monitor_recover_period = IWL_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700880 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700881 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700882 .sensitivity_calib_by_driver = true,
883 .chain_noise_calib_by_driver = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800884};
885
Jay Sternberge1228372009-01-19 15:30:34 -0800886MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
887MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
Shanyu Zhao95b13012010-04-21 11:46:33 -0700888MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
Shanyu Zhao18089722010-05-06 10:15:21 -0700889MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));