blob: 8256034285a6739bc2491bbfa8366eb5b1800a26 [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
Johannes Berg670245e2010-08-23 07:56:55 -070055#define IWL6000G2_UCODE_API_MAX 5
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
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. */
89 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
Abhijeet Kolekard5755932010-02-18 22:03:05 -080090 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
91 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
92}
93
Wey-Yi Guy65b79982009-07-31 14:28:07 -070094/* NIC configuration for 6000 series */
95static void iwl6000_nic_config(struct iwl_priv *priv)
96{
Wey-Yi Guy9371d4e2009-09-11 10:38:10 -070097 u16 radio_cfg;
98
99 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
100
101 /* write radio config values to register */
102 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
103 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
104 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
105 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
106 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
107
108 /* set CSR_HW_CONFIG_REG for uCode use */
109 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
110 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
111 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700112
113 /* no locking required for register write */
Wey-Yi Guy740e7f52009-11-06 14:52:55 -0800114 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700115 /* 2x2 IPA phy type */
116 iwl_write32(priv, CSR_GP_DRIVER_REG,
117 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
118 }
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700119 /* do additional nic configuration if needed */
120 if (priv->cfg->ops->nic &&
121 priv->cfg->ops->nic->additional_nic_config) {
122 priv->cfg->ops->nic->additional_nic_config(priv);
123 }
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700124}
125
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700126static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
127 .min_nrg_cck = 97,
128 .max_nrg_cck = 0, /* not used, set to 0 */
129 .auto_corr_min_ofdm = 80,
130 .auto_corr_min_ofdm_mrc = 128,
131 .auto_corr_min_ofdm_x1 = 105,
132 .auto_corr_min_ofdm_mrc_x1 = 192,
133
134 .auto_corr_max_ofdm = 145,
135 .auto_corr_max_ofdm_mrc = 232,
Wey-Yi Guy2494f632010-01-20 12:22:52 -0800136 .auto_corr_max_ofdm_x1 = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700137 .auto_corr_max_ofdm_mrc_x1 = 232,
138
139 .auto_corr_min_cck = 125,
140 .auto_corr_max_cck = 175,
141 .auto_corr_min_cck_mrc = 160,
142 .auto_corr_max_cck_mrc = 310,
143 .nrg_th_cck = 97,
144 .nrg_th_ofdm = 100,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700145
146 .barker_corr_th_min = 190,
147 .barker_corr_th_min_mrc = 390,
148 .nrg_th_cca = 62,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700149};
150
151static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
152{
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700153 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700154 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700155 priv->cfg->num_of_queues =
156 priv->cfg->mod_params->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700157
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700158 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700159 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
160 priv->hw_params.scd_bc_tbls_size =
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700161 priv->cfg->num_of_queues *
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700162 sizeof(struct iwlagn_scd_bc_tbl);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700163 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
Wey-Yi Guybf3c7fd2010-06-24 14:08:05 -0700164 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
Johannes Berga194e322010-08-27 08:53:46 -0700165 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700166
167 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
168 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
169
170 priv->hw_params.max_bsm_size = 0;
171 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
172 BIT(IEEE80211_BAND_5GHZ);
173 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
174
175 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
176 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
177 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
178 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
179
180 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
181 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
182
183 /* Set initial sensitivity parameters */
184 /* Set initial calibration set */
185 priv->hw_params.sens = &iwl6000_sensitivity;
Wey-Yi Guye517736a2010-04-19 18:49:40 -0700186 priv->hw_params.calib_init_cfg =
187 BIT(IWL_CALIB_XTAL) |
188 BIT(IWL_CALIB_LO) |
189 BIT(IWL_CALIB_TX_IQ) |
190 BIT(IWL_CALIB_BASE_BAND);
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700191 if (priv->cfg->need_dc_calib)
192 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800193
Wey-Yi Guya0ee74c2010-05-06 08:54:10 -0700194 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
195
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700196 return 0;
197}
198
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700199static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
200 struct ieee80211_channel_switch *ch_switch)
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700201{
Johannes Berg246ed352010-08-23 10:46:32 +0200202 /*
203 * MULTI-FIXME
204 * See iwl_mac_channel_switch.
205 */
206 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700207 struct iwl6000_channel_switch_cmd cmd;
208 const struct iwl_channel_info *ch_info;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700209 u32 switch_time_in_usec, ucode_switch_time;
210 u16 ch;
211 u32 tsf_low;
212 u8 switch_count;
Johannes Berg246ed352010-08-23 10:46:32 +0200213 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
Johannes Berg8bd413e2010-08-23 10:46:40 +0200214 struct ieee80211_vif *vif = ctx->vif;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700215 struct iwl_host_cmd hcmd = {
216 .id = REPLY_CHANNEL_SWITCH,
217 .len = sizeof(cmd),
Wey-Yi Guy3839f7c2010-05-18 09:18:06 -0700218 .flags = CMD_SYNC,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700219 .data = &cmd,
220 };
221
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700222 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
Shanyu Zhao81e95432010-07-28 13:40:27 -0700223 ch = ch_switch->channel->hw_value;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700224 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
Johannes Berg246ed352010-08-23 10:46:32 +0200225 ctx->active.channel, ch);
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700226 cmd.channel = cpu_to_le16(ch);
Johannes Berg246ed352010-08-23 10:46:32 +0200227 cmd.rxon_flags = ctx->staging.flags;
228 cmd.rxon_filter_flags = ctx->staging.filter_flags;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700229 switch_count = ch_switch->count;
230 tsf_low = ch_switch->timestamp & 0x0ffffffff;
231 /*
232 * calculate the ucode channel switch time
233 * adding TSF as one of the factor for when to switch
234 */
235 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
236 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
237 beacon_interval)) {
238 switch_count -= (priv->ucode_beacon_time -
239 tsf_low) / beacon_interval;
240 } else
241 switch_count = 0;
242 }
243 if (switch_count <= 1)
244 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
245 else {
246 switch_time_in_usec =
247 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
248 ucode_switch_time = iwl_usecs_to_beacons(priv,
249 switch_time_in_usec,
250 beacon_interval);
251 cmd.switch_time = iwl_add_beacon_time(priv,
252 priv->ucode_beacon_time,
253 ucode_switch_time,
254 beacon_interval);
255 }
256 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
257 cmd.switch_time);
258 ch_info = iwl_get_channel_info(priv, priv->band, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700259 if (ch_info)
260 cmd.expect_beacon = is_channel_radar(ch_info);
261 else {
262 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
Johannes Berg246ed352010-08-23 10:46:32 +0200263 ctx->active.channel, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700264 return -EFAULT;
265 }
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700266 priv->switch_rxon.channel = cmd.channel;
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800267 priv->switch_rxon.switch_in_progress = true;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700268
269 return iwl_send_cmd_sync(priv, &hcmd);
270}
271
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700272static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700273 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guyb305a082010-03-16 17:41:22 -0700274 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
275 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
276 .txq_set_sched = iwlagn_txq_set_sched,
277 .txq_agg_enable = iwlagn_txq_agg_enable,
278 .txq_agg_disable = iwlagn_txq_agg_disable,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700279 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
280 .txq_free_tfd = iwl_hw_txq_free_tfd,
281 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700282 .rx_handler_setup = iwlagn_rx_handler_setup,
283 .setup_deferred_work = iwlagn_setup_deferred_work,
284 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Wey-Yi Guy81b81762010-03-16 10:23:30 -0700285 .load_ucode = iwlagn_load_ucode,
Reinette Chatreb7a79402009-09-25 14:24:23 -0700286 .dump_nic_event_log = iwl_dump_nic_event_log,
287 .dump_nic_error_log = iwl_dump_nic_error_log,
Wey-Yi Guy696bdee2009-12-10 14:37:25 -0800288 .dump_csr = iwl_dump_csr,
Wey-Yi Guy1b3eb822010-01-15 13:43:39 -0800289 .dump_fh = iwl_dump_fh,
Wey-Yi Guy741a6262010-03-16 12:37:24 -0700290 .init_alive_start = iwlagn_init_alive_start,
291 .alive_notify = iwlagn_alive_notify,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700292 .send_tx_power = iwlagn_send_tx_power,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700293 .update_chain_flags = iwl_update_chain_flags,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700294 .set_channel_switch = iwl6000_hw_channel_switch,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700295 .apm_ops = {
Ben Cahillfadb3582009-10-23 13:42:21 -0700296 .init = iwl_apm_init,
Abhijeet Kolekard68b6032009-10-02 13:44:04 -0700297 .stop = iwl_apm_stop,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700298 .config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700299 .set_pwr_src = iwl_set_pwr_src,
300 },
301 .eeprom_ops = {
302 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700303 EEPROM_REG_BAND_1_CHANNELS,
304 EEPROM_REG_BAND_2_CHANNELS,
305 EEPROM_REG_BAND_3_CHANNELS,
306 EEPROM_REG_BAND_4_CHANNELS,
307 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700308 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700309 EEPROM_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700310 },
311 .verify_signature = iwlcore_eeprom_verify_signature,
312 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
313 .release_semaphore = iwlcore_eeprom_release_semaphore,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700314 .calib_version = iwlagn_eeprom_calib_version,
315 .query_addr = iwlagn_eeprom_query_addr,
Wey-Yi Guyab9fd1b2009-08-21 13:34:23 -0700316 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700317 },
318 .post_associate = iwl_post_associate,
319 .isr = iwl_isr_ict,
320 .config_ap = iwl_config_ap,
321 .temp_ops = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700322 .temperature = iwlagn_temperature,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700323 .set_ct_kill = iwl6000_set_ct_threshold,
324 },
Johannes Berg1fa61b22010-04-28 08:44:52 -0700325 .manage_ibss_station = iwlagn_manage_ibss_station,
Johannes Berga194e322010-08-27 08:53:46 -0700326 .update_bcast_stations = iwl_update_bcast_stations,
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -0700327 .debugfs_ops = {
328 .rx_stats_read = iwl_ucode_rx_stats_read,
329 .tx_stats_read = iwl_ucode_tx_stats_read,
330 .general_stats_read = iwl_ucode_general_stats_read,
Wey-Yi Guyffb7d892010-07-14 08:09:55 -0700331 .bt_stats_read = iwl_ucode_bt_stats_read,
Wey-Yi Guy54a9aa62010-09-05 10:49:42 -0700332 .reply_tx_error = iwl_reply_tx_error_read,
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -0700333 },
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800334 .recover_from_tx_stall = iwl_bg_monitor_recover,
Wey-Yi Guyfa8f130c2010-03-05 14:22:46 -0800335 .check_plcp_health = iwl_good_plcp_health,
336 .check_ack_health = iwl_good_ack_health,
Wey-Yi Guy716c74b2010-06-24 13:22:36 -0700337 .txfifo_flush = iwlagn_txfifo_flush,
Wey-Yi Guy65550632010-06-24 13:18:35 -0700338 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
Wey-Yi Guy0975cc82010-07-31 08:34:07 -0700339 .tt_ops = {
340 .lower_power_detection = iwl_tt_is_low_power_state,
341 .tt_power_mode = iwl_tt_current_power_mode,
342 .ct_kill_check = iwl_check_for_ct_kill,
343 }
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700344};
345
Johannes Berg9e4afc22010-08-23 07:56:57 -0700346static struct iwl_lib_ops iwl6000g2b_lib = {
347 .set_hw_params = iwl6000_hw_set_hw_params,
348 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
349 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
350 .txq_set_sched = iwlagn_txq_set_sched,
351 .txq_agg_enable = iwlagn_txq_agg_enable,
352 .txq_agg_disable = iwlagn_txq_agg_disable,
353 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
354 .txq_free_tfd = iwl_hw_txq_free_tfd,
355 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700356 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
357 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
358 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700359 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
360 .load_ucode = iwlagn_load_ucode,
361 .dump_nic_event_log = iwl_dump_nic_event_log,
362 .dump_nic_error_log = iwl_dump_nic_error_log,
363 .dump_csr = iwl_dump_csr,
364 .dump_fh = iwl_dump_fh,
365 .init_alive_start = iwlagn_init_alive_start,
366 .alive_notify = iwlagn_alive_notify,
367 .send_tx_power = iwlagn_send_tx_power,
368 .update_chain_flags = iwl_update_chain_flags,
369 .set_channel_switch = iwl6000_hw_channel_switch,
370 .apm_ops = {
371 .init = iwl_apm_init,
372 .stop = iwl_apm_stop,
373 .config = iwl6000_nic_config,
374 .set_pwr_src = iwl_set_pwr_src,
375 },
376 .eeprom_ops = {
377 .regulatory_bands = {
378 EEPROM_REG_BAND_1_CHANNELS,
379 EEPROM_REG_BAND_2_CHANNELS,
380 EEPROM_REG_BAND_3_CHANNELS,
381 EEPROM_REG_BAND_4_CHANNELS,
382 EEPROM_REG_BAND_5_CHANNELS,
383 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
384 EEPROM_REG_BAND_52_HT40_CHANNELS
385 },
386 .verify_signature = iwlcore_eeprom_verify_signature,
387 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
388 .release_semaphore = iwlcore_eeprom_release_semaphore,
389 .calib_version = iwlagn_eeprom_calib_version,
390 .query_addr = iwlagn_eeprom_query_addr,
391 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
392 },
393 .post_associate = iwl_post_associate,
394 .isr = iwl_isr_ict,
395 .config_ap = iwl_config_ap,
396 .temp_ops = {
397 .temperature = iwlagn_temperature,
398 .set_ct_kill = iwl6000_set_ct_threshold,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700399 },
400 .manage_ibss_station = iwlagn_manage_ibss_station,
Johannes Berga194e322010-08-27 08:53:46 -0700401 .update_bcast_stations = iwl_update_bcast_stations,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700402 .debugfs_ops = {
403 .rx_stats_read = iwl_ucode_rx_stats_read,
404 .tx_stats_read = iwl_ucode_tx_stats_read,
405 .general_stats_read = iwl_ucode_general_stats_read,
406 .bt_stats_read = iwl_ucode_bt_stats_read,
Wey-Yi Guy54a9aa62010-09-05 10:49:42 -0700407 .reply_tx_error = iwl_reply_tx_error_read,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700408 },
409 .recover_from_tx_stall = iwl_bg_monitor_recover,
410 .check_plcp_health = iwl_good_plcp_health,
411 .check_ack_health = iwl_good_ack_health,
412 .txfifo_flush = iwlagn_txfifo_flush,
413 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
414 .tt_ops = {
415 .lower_power_detection = iwl_tt_is_low_power_state,
416 .tt_power_mode = iwl_tt_current_power_mode,
417 .ct_kill_check = iwl_check_for_ct_kill,
418 }
419};
420
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700421static struct iwl_nic_ops iwl6050_nic_ops = {
422 .additional_nic_config = &iwl6050_additional_nic_config,
423};
424
Emese Revfy45d5d802009-12-14 00:59:53 +0100425static const struct iwl_ops iwl6000_ops = {
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700426 .lib = &iwl6000_lib,
Wey-Yi Guy7dc77db2010-03-16 10:23:31 -0700427 .hcmd = &iwlagn_hcmd,
428 .utils = &iwlagn_hcmd_utils,
Johannes Berge932a602009-10-02 13:44:03 -0700429 .led = &iwlagn_led_ops,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800430};
431
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700432static const struct iwl_ops iwl6050_ops = {
433 .lib = &iwl6000_lib,
434 .hcmd = &iwlagn_hcmd,
435 .utils = &iwlagn_hcmd_utils,
436 .led = &iwlagn_led_ops,
437 .nic = &iwl6050_nic_ops,
438};
439
Shanyu Zhao18089722010-05-06 10:15:21 -0700440static const struct iwl_ops iwl6000g2b_ops = {
Johannes Berg9e4afc22010-08-23 07:56:57 -0700441 .lib = &iwl6000g2b_lib,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700442 .hcmd = &iwlagn_bt_hcmd,
Shanyu Zhao18089722010-05-06 10:15:21 -0700443 .utils = &iwlagn_hcmd_utils,
444 .led = &iwlagn_led_ops,
445};
446
Shanyu Zhao95b13012010-04-21 11:46:33 -0700447struct iwl_cfg iwl6000g2a_2agn_cfg = {
448 .name = "6000 Series 2x2 AGN Gen2a",
449 .fw_name_pre = IWL6000G2A_FW_PRE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700450 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
451 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700452 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
453 .ops = &iwl6000_ops,
454 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700455 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
456 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700457 .num_of_queues = IWLAGN_NUM_QUEUES,
458 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
459 .mod_params = &iwlagn_mod_params,
460 .valid_tx_ant = ANT_AB,
461 .valid_rx_ant = ANT_AB,
462 .pll_cfg_val = 0,
463 .set_l0s = true,
464 .use_bsm = false,
Wey-Yi Guy33e6f812010-04-09 09:36:11 -0700465 .pa_type = IWL_PA_SYSTEM,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700466 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
467 .shadow_ram_support = true,
468 .ht_greenfield_support = true,
469 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700470 .use_rts_for_aggregation = true, /* use rts/cts protection */
Jay Sternberg0b5af202010-03-17 16:16:12 -0700471 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
472 .supports_idle = true,
473 .adv_thermal_throttle = true,
474 .support_ct_kill_exit = true,
475 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
476 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700477 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao95b13012010-04-21 11:46:33 -0700478 .max_event_log_size = 512,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700479 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700480 .sensitivity_calib_by_driver = true,
481 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700482 .need_dc_calib = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700483};
484
Shanyu Zhao18089722010-05-06 10:15:21 -0700485struct iwl_cfg iwl6000g2a_2abg_cfg = {
486 .name = "6000 Series 2x2 ABG Gen2a",
487 .fw_name_pre = IWL6000G2A_FW_PRE,
488 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
489 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
490 .sku = IWL_SKU_A|IWL_SKU_G,
491 .ops = &iwl6000_ops,
492 .eeprom_size = OTP_LOW_IMAGE_SIZE,
493 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
494 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
495 .num_of_queues = IWLAGN_NUM_QUEUES,
496 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
497 .mod_params = &iwlagn_mod_params,
498 .valid_tx_ant = ANT_AB,
499 .valid_rx_ant = ANT_AB,
500 .pll_cfg_val = 0,
501 .set_l0s = true,
502 .use_bsm = false,
503 .pa_type = IWL_PA_SYSTEM,
504 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
505 .shadow_ram_support = true,
506 .led_compensation = 51,
507 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
508 .supports_idle = true,
509 .adv_thermal_throttle = true,
510 .support_ct_kill_exit = true,
511 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
512 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700513 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700514 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700515 .sensitivity_calib_by_driver = true,
516 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700517 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700518};
519
520struct iwl_cfg iwl6000g2a_2bg_cfg = {
521 .name = "6000 Series 2x2 BG Gen2a",
522 .fw_name_pre = IWL6000G2A_FW_PRE,
523 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
524 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
525 .sku = IWL_SKU_G,
526 .ops = &iwl6000_ops,
527 .eeprom_size = OTP_LOW_IMAGE_SIZE,
528 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
529 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
530 .num_of_queues = IWLAGN_NUM_QUEUES,
531 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
532 .mod_params = &iwlagn_mod_params,
533 .valid_tx_ant = ANT_AB,
534 .valid_rx_ant = ANT_AB,
535 .pll_cfg_val = 0,
536 .set_l0s = true,
537 .use_bsm = false,
538 .pa_type = IWL_PA_SYSTEM,
539 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
540 .shadow_ram_support = true,
541 .led_compensation = 51,
542 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
543 .supports_idle = true,
544 .adv_thermal_throttle = true,
545 .support_ct_kill_exit = true,
546 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
547 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700548 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700549 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700550 .sensitivity_calib_by_driver = true,
551 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700552 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700553};
554
555struct iwl_cfg iwl6000g2b_2agn_cfg = {
556 .name = "6000 Series 2x2 AGN Gen2b",
557 .fw_name_pre = IWL6000G2B_FW_PRE,
558 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
559 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
560 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
561 .ops = &iwl6000g2b_ops,
562 .eeprom_size = OTP_LOW_IMAGE_SIZE,
563 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
564 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
565 .num_of_queues = IWLAGN_NUM_QUEUES,
566 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
567 .mod_params = &iwlagn_mod_params,
568 .valid_tx_ant = ANT_AB,
569 .valid_rx_ant = ANT_AB,
570 .pll_cfg_val = 0,
571 .set_l0s = true,
572 .use_bsm = false,
573 .pa_type = IWL_PA_SYSTEM,
574 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
575 .shadow_ram_support = true,
576 .ht_greenfield_support = true,
577 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700578 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao18089722010-05-06 10:15:21 -0700579 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
580 .supports_idle = true,
581 .adv_thermal_throttle = true,
582 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700583 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700584 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700585 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700586 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700587 .sensitivity_calib_by_driver = true,
588 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700589 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700590 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700591 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
592 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
593 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700594 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700595 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700596};
597
598struct iwl_cfg iwl6000g2b_2abg_cfg = {
599 .name = "6000 Series 2x2 ABG Gen2b",
600 .fw_name_pre = IWL6000G2B_FW_PRE,
601 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
602 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
603 .sku = IWL_SKU_A|IWL_SKU_G,
604 .ops = &iwl6000g2b_ops,
605 .eeprom_size = OTP_LOW_IMAGE_SIZE,
606 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
607 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
608 .num_of_queues = IWLAGN_NUM_QUEUES,
609 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
610 .mod_params = &iwlagn_mod_params,
611 .valid_tx_ant = ANT_AB,
612 .valid_rx_ant = ANT_AB,
613 .pll_cfg_val = 0,
614 .set_l0s = true,
615 .use_bsm = false,
616 .pa_type = IWL_PA_SYSTEM,
617 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
618 .shadow_ram_support = true,
619 .led_compensation = 51,
620 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
621 .supports_idle = true,
622 .adv_thermal_throttle = true,
623 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700624 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700625 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700626 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700627 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700628 .sensitivity_calib_by_driver = true,
629 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700630 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700631 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700632 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
633 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
634 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700635 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700636 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700637};
638
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700639struct iwl_cfg iwl6000g2b_2bgn_cfg = {
640 .name = "6000 Series 2x2 BGN Gen2b",
641 .fw_name_pre = IWL6000G2B_FW_PRE,
642 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
643 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
644 .sku = IWL_SKU_G|IWL_SKU_N,
645 .ops = &iwl6000g2b_ops,
646 .eeprom_size = OTP_LOW_IMAGE_SIZE,
647 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
648 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
649 .num_of_queues = IWLAGN_NUM_QUEUES,
650 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
651 .mod_params = &iwlagn_mod_params,
652 .valid_tx_ant = ANT_AB,
653 .valid_rx_ant = ANT_AB,
654 .pll_cfg_val = 0,
655 .set_l0s = true,
656 .use_bsm = false,
657 .pa_type = IWL_PA_SYSTEM,
658 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
659 .shadow_ram_support = true,
660 .ht_greenfield_support = true,
661 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700662 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700663 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
664 .supports_idle = true,
665 .adv_thermal_throttle = true,
666 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700667 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700668 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700669 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700670 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700671 .sensitivity_calib_by_driver = true,
672 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700673 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700674 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700675 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
676 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
677 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700678 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700679 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700680};
681
Shanyu Zhao18089722010-05-06 10:15:21 -0700682struct iwl_cfg iwl6000g2b_2bg_cfg = {
683 .name = "6000 Series 2x2 BG Gen2b",
684 .fw_name_pre = IWL6000G2B_FW_PRE,
685 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
686 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
687 .sku = IWL_SKU_G,
688 .ops = &iwl6000g2b_ops,
689 .eeprom_size = OTP_LOW_IMAGE_SIZE,
690 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
691 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
692 .num_of_queues = IWLAGN_NUM_QUEUES,
693 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
694 .mod_params = &iwlagn_mod_params,
695 .valid_tx_ant = ANT_AB,
696 .valid_rx_ant = ANT_AB,
697 .pll_cfg_val = 0,
698 .set_l0s = true,
699 .use_bsm = false,
700 .pa_type = IWL_PA_SYSTEM,
701 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
702 .shadow_ram_support = true,
703 .led_compensation = 51,
704 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
705 .supports_idle = true,
706 .adv_thermal_throttle = true,
707 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700708 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700709 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700710 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700711 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700712 .sensitivity_calib_by_driver = true,
713 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700714 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700715 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700716 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
717 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
718 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700719 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700720 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700721};
722
723struct iwl_cfg iwl6000g2b_bgn_cfg = {
724 .name = "6000 Series 1x2 BGN Gen2b",
725 .fw_name_pre = IWL6000G2B_FW_PRE,
726 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
727 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
728 .sku = IWL_SKU_G|IWL_SKU_N,
729 .ops = &iwl6000g2b_ops,
730 .eeprom_size = OTP_LOW_IMAGE_SIZE,
731 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
732 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
733 .num_of_queues = IWLAGN_NUM_QUEUES,
734 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
735 .mod_params = &iwlagn_mod_params,
736 .valid_tx_ant = ANT_A,
737 .valid_rx_ant = ANT_AB,
738 .pll_cfg_val = 0,
739 .set_l0s = true,
740 .use_bsm = false,
741 .pa_type = IWL_PA_SYSTEM,
742 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
743 .shadow_ram_support = true,
744 .ht_greenfield_support = true,
745 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700746 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao18089722010-05-06 10:15:21 -0700747 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
748 .supports_idle = true,
749 .adv_thermal_throttle = true,
750 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700751 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700752 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700753 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700754 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700755 .sensitivity_calib_by_driver = true,
756 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700757 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700758 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700759 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
760 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
761 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700762 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700763 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700764};
765
766struct iwl_cfg iwl6000g2b_bg_cfg = {
767 .name = "6000 Series 1x2 BG Gen2b",
768 .fw_name_pre = IWL6000G2B_FW_PRE,
769 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
770 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
771 .sku = IWL_SKU_G,
772 .ops = &iwl6000g2b_ops,
773 .eeprom_size = OTP_LOW_IMAGE_SIZE,
774 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
775 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
776 .num_of_queues = IWLAGN_NUM_QUEUES,
777 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
778 .mod_params = &iwlagn_mod_params,
779 .valid_tx_ant = ANT_A,
780 .valid_rx_ant = ANT_AB,
781 .pll_cfg_val = 0,
782 .set_l0s = true,
783 .use_bsm = false,
784 .pa_type = IWL_PA_SYSTEM,
785 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
786 .shadow_ram_support = true,
787 .led_compensation = 51,
788 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
789 .supports_idle = true,
790 .adv_thermal_throttle = true,
791 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700792 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700793 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700794 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700795 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700796 .sensitivity_calib_by_driver = true,
797 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700798 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700799 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700800 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
801 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
802 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700803 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700804 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700805};
806
Shanyu Zhao95b13012010-04-21 11:46:33 -0700807/*
808 * "i": Internal configuration, use internal Power Amplifier
809 */
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700810struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800811 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700812 .fw_name_pre = IWL6000_FW_PRE,
813 .ucode_api_max = IWL6000_UCODE_API_MAX,
814 .ucode_api_min = IWL6000_UCODE_API_MIN,
815 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
816 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700817 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700818 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700819 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700820 .num_of_queues = IWLAGN_NUM_QUEUES,
821 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700822 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700823 .valid_tx_ant = ANT_BC,
824 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700825 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700826 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700827 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700828 .pa_type = IWL_PA_INTERNAL,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700829 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
830 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700831 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700832 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700833 .use_rts_for_aggregation = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700834 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700835 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700836 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700837 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800838 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800839 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700840 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700841 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700842 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700843 .sensitivity_calib_by_driver = true,
844 .chain_noise_calib_by_driver = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800845};
846
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700847struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800848 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700849 .fw_name_pre = IWL6000_FW_PRE,
850 .ucode_api_max = IWL6000_UCODE_API_MAX,
851 .ucode_api_min = IWL6000_UCODE_API_MIN,
852 .sku = IWL_SKU_A|IWL_SKU_G,
853 .ops = &iwl6000_ops,
854 .eeprom_size = OTP_LOW_IMAGE_SIZE,
855 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700856 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700857 .num_of_queues = IWLAGN_NUM_QUEUES,
858 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700859 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700860 .valid_tx_ant = ANT_BC,
861 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700862 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700863 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700864 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700865 .pa_type = IWL_PA_INTERNAL,
866 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
867 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700868 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700869 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700870 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700871 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700872 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800873 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800874 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700875 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700876 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700877 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700878 .sensitivity_calib_by_driver = true,
879 .chain_noise_calib_by_driver = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700880};
881
882struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800883 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700884 .fw_name_pre = IWL6000_FW_PRE,
885 .ucode_api_max = IWL6000_UCODE_API_MAX,
886 .ucode_api_min = IWL6000_UCODE_API_MIN,
887 .sku = IWL_SKU_G,
888 .ops = &iwl6000_ops,
889 .eeprom_size = OTP_LOW_IMAGE_SIZE,
890 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700891 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700892 .num_of_queues = IWLAGN_NUM_QUEUES,
893 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700894 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700895 .valid_tx_ant = ANT_BC,
896 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700897 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700898 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700899 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700900 .pa_type = IWL_PA_INTERNAL,
901 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
902 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700903 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700904 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700905 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700906 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700907 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800908 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800909 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700910 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700911 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700912 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700913 .sensitivity_calib_by_driver = true,
914 .chain_noise_calib_by_driver = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700915};
916
Jay Sternberge1228372009-01-19 15:30:34 -0800917struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800918 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800919 .fw_name_pre = IWL6050_FW_PRE,
920 .ucode_api_max = IWL6050_UCODE_API_MAX,
921 .ucode_api_min = IWL6050_UCODE_API_MIN,
922 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700923 .ops = &iwl6050_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700924 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700925 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700926 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700927 .num_of_queues = IWLAGN_NUM_QUEUES,
928 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700929 .mod_params = &iwlagn_mod_params,
Jay Sternberg542cc792009-05-08 13:44:46 -0700930 .valid_tx_ant = ANT_AB,
931 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700932 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700933 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700934 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700935 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700936 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700937 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700938 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700939 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700940 .use_rts_for_aggregation = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700941 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700942 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700943 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700944 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800945 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800946 .chain_noise_scale = 1500,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700947 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700948 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700949 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700950 .sensitivity_calib_by_driver = true,
951 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700952 .need_dc_calib = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800953};
954
Shanyu Zhao03264332010-06-29 17:27:27 -0700955struct iwl_cfg iwl6050g2_bgn_cfg = {
956 .name = "6050 Series 1x2 BGN Gen2",
957 .fw_name_pre = IWL6050_FW_PRE,
958 .ucode_api_max = IWL6050_UCODE_API_MAX,
959 .ucode_api_min = IWL6050_UCODE_API_MIN,
960 .sku = IWL_SKU_G|IWL_SKU_N,
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700961 .ops = &iwl6050_ops,
Shanyu Zhao03264332010-06-29 17:27:27 -0700962 .eeprom_size = OTP_LOW_IMAGE_SIZE,
963 .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
964 .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
965 .num_of_queues = IWLAGN_NUM_QUEUES,
966 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
967 .mod_params = &iwlagn_mod_params,
968 .valid_tx_ant = ANT_A,
969 .valid_rx_ant = ANT_AB,
970 .pll_cfg_val = 0,
971 .set_l0s = true,
972 .use_bsm = false,
973 .pa_type = IWL_PA_SYSTEM,
974 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
975 .shadow_ram_support = true,
976 .ht_greenfield_support = true,
977 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700978 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao03264332010-06-29 17:27:27 -0700979 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
980 .supports_idle = true,
981 .adv_thermal_throttle = true,
982 .support_ct_kill_exit = true,
983 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
984 .chain_noise_scale = 1500,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700985 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao03264332010-06-29 17:27:27 -0700986 .max_event_log_size = 1024,
987 .ucode_tracing = true,
988 .sensitivity_calib_by_driver = true,
989 .chain_noise_calib_by_driver = true,
990 .need_dc_calib = true,
991};
992
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700993struct iwl_cfg iwl6050_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800994 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700995 .fw_name_pre = IWL6050_FW_PRE,
996 .ucode_api_max = IWL6050_UCODE_API_MAX,
997 .ucode_api_min = IWL6050_UCODE_API_MIN,
998 .sku = IWL_SKU_A|IWL_SKU_G,
Shanyu Zhao6b5ce502010-09-14 16:23:32 -0700999 .ops = &iwl6050_ops,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001000 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -07001001 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -07001002 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -07001003 .num_of_queues = IWLAGN_NUM_QUEUES,
1004 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -07001005 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001006 .valid_tx_ant = ANT_AB,
1007 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -07001008 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -07001009 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -07001010 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001011 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -07001012 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001013 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001014 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -07001015 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -07001016 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -07001017 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -07001018 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -08001019 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -08001020 .chain_noise_scale = 1500,
Wey-Yi Guyce606592010-07-23 13:19:39 -07001021 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -07001022 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -07001023 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -07001024 .sensitivity_calib_by_driver = true,
1025 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -07001026 .need_dc_calib = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001027};
1028
Jay Sternberge1228372009-01-19 15:30:34 -08001029struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -08001030 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -08001031 .fw_name_pre = IWL6000_FW_PRE,
1032 .ucode_api_max = IWL6000_UCODE_API_MAX,
1033 .ucode_api_min = IWL6000_UCODE_API_MIN,
1034 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -08001035 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -07001036 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -07001037 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -07001038 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -07001039 .num_of_queues = IWLAGN_NUM_QUEUES,
1040 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -07001041 .mod_params = &iwlagn_mod_params,
Jay Sternbergc0bac762009-02-02 16:21:14 -08001042 .valid_tx_ant = ANT_ABC,
1043 .valid_rx_ant = ANT_ABC,
Ben Cahillfadb3582009-10-23 13:42:21 -07001044 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -07001045 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -07001046 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -07001047 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -07001048 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1049 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -07001050 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -07001051 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -07001052 .use_rts_for_aggregation = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -07001053 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -07001054 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -07001055 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -07001056 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -08001057 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -08001058 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -07001059 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -07001060 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -07001061 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -07001062 .sensitivity_calib_by_driver = true,
1063 .chain_noise_calib_by_driver = true,
Jay Sternberge1228372009-01-19 15:30:34 -08001064};
1065
Jay Sternberge1228372009-01-19 15:30:34 -08001066MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1067MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
Shanyu Zhao95b13012010-04-21 11:46:33 -07001068MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
Shanyu Zhao18089722010-05-06 10:15:21 -07001069MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));