]> bbs.cooldavid.org Git - net-next-2.6.git/blame - drivers/net/wireless/iwlwifi/iwl-6000.c
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[net-next-2.6.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
CommitLineData
e1228374
JS
1/******************************************************************************
2 *
1f447808 3 * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
e1228374
JS
4 *
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"
a1175124 45#include "iwl-agn.h"
e1228374 46#include "iwl-helpers.h"
19e6cda0 47#include "iwl-agn-hw.h"
f3a2a424 48#include "iwl-6000-hw.h"
e932a609 49#include "iwl-agn-led.h"
b8c76267 50#include "iwl-agn-debugfs.h"
e1228374
JS
51
52/* Highest firmware API version supported */
fcbaf8b0
WYG
53#define IWL6000_UCODE_API_MAX 4
54#define IWL6050_UCODE_API_MAX 4
670245ed 55#define IWL6000G2_UCODE_API_MAX 5
e1228374
JS
56
57/* Lowest firmware API version supported */
44246421
WYG
58#define IWL6000_UCODE_API_MIN 4
59#define IWL6050_UCODE_API_MIN 4
4b3e8062 60#define IWL6000G2_UCODE_API_MIN 4
e1228374
JS
61
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
95b13014
SZ
70#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
1808972f
SZ
74#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
4b3e8062 78
672639de
WYG
79static 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
d5755939 86/* Indicate calibration version to uCode. */
178d1596 87static void iwl6000_set_calib_version(struct iwl_priv *priv)
d5755939 88{
178d1596
WYG
89 if (priv->cfg->need_dc_calib &&
90 (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6))
d5755939
AK
91 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
92 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
93}
94
65b7998a
WYG
95/* NIC configuration for 6000 series */
96static void iwl6000_nic_config(struct iwl_priv *priv)
97{
9371d4ed
WYG
98 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);
65b7998a
WYG
113
114 /* no locking required for register write */
740e7f51 115 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
65b7998a
WYG
116 /* 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 */
d5755939
AK
121 if (priv->cfg->ops->lib->temp_ops.set_calib_version)
122 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
65b7998a
WYG
123}
124
f3a2a424
WYG
125static 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,
2494f63c 135 .auto_corr_max_ofdm_x1 = 110,
f3a2a424
WYG
136 .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,
55036d66
WYG
144
145 .barker_corr_th_min = 190,
146 .barker_corr_th_min_mrc = 390,
147 .nrg_th_cca = 62,
f3a2a424
WYG
148};
149
150static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
151{
88804e2b 152 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
19e6cda0 153 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
88804e2b
WYG
154 priv->cfg->num_of_queues =
155 priv->cfg->mod_params->num_of_queues;
f3a2a424 156
88804e2b 157 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
f3a2a424
WYG
158 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
159 priv->hw_params.scd_bc_tbls_size =
88804e2b 160 priv->cfg->num_of_queues *
19e6cda0 161 sizeof(struct iwlagn_scd_bc_tbl);
f3a2a424 162 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
bf3c7fdd 163 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
a194e324 164 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
f3a2a424
WYG
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;
e517736a
WYG
185 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);
178d1596
WYG
190 if (priv->cfg->need_dc_calib)
191 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
07f33f92 192
a0ee74cf
WYG
193 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
194
f3a2a424
WYG
195 return 0;
196}
197
79d07325
WYG
198static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
199 struct ieee80211_channel_switch *ch_switch)
4a56e965 200{
246ed355
JB
201 /*
202 * MULTI-FIXME
203 * See iwl_mac_channel_switch.
204 */
205 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
4a56e965
WYG
206 struct iwl6000_channel_switch_cmd cmd;
207 const struct iwl_channel_info *ch_info;
79d07325
WYG
208 u32 switch_time_in_usec, ucode_switch_time;
209 u16 ch;
210 u32 tsf_low;
211 u8 switch_count;
246ed355 212 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
8bd413e6 213 struct ieee80211_vif *vif = ctx->vif;
4a56e965
WYG
214 struct iwl_host_cmd hcmd = {
215 .id = REPLY_CHANNEL_SWITCH,
216 .len = sizeof(cmd),
3839f7ce 217 .flags = CMD_SYNC,
4a56e965
WYG
218 .data = &cmd,
219 };
220
4a56e965 221 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
81e95430 222 ch = ch_switch->channel->hw_value;
79d07325 223 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
246ed355 224 ctx->active.channel, ch);
79d07325 225 cmd.channel = cpu_to_le16(ch);
246ed355
JB
226 cmd.rxon_flags = ctx->staging.flags;
227 cmd.rxon_filter_flags = ctx->staging.filter_flags;
79d07325
WYG
228 switch_count = ch_switch->count;
229 tsf_low = ch_switch->timestamp & 0x0ffffffff;
230 /*
231 * calculate the ucode channel switch time
232 * adding TSF as one of the factor for when to switch
233 */
234 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
235 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
236 beacon_interval)) {
237 switch_count -= (priv->ucode_beacon_time -
238 tsf_low) / beacon_interval;
239 } else
240 switch_count = 0;
241 }
242 if (switch_count <= 1)
243 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
244 else {
245 switch_time_in_usec =
246 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
247 ucode_switch_time = iwl_usecs_to_beacons(priv,
248 switch_time_in_usec,
249 beacon_interval);
250 cmd.switch_time = iwl_add_beacon_time(priv,
251 priv->ucode_beacon_time,
252 ucode_switch_time,
253 beacon_interval);
254 }
255 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
256 cmd.switch_time);
257 ch_info = iwl_get_channel_info(priv, priv->band, ch);
4a56e965
WYG
258 if (ch_info)
259 cmd.expect_beacon = is_channel_radar(ch_info);
260 else {
261 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
246ed355 262 ctx->active.channel, ch);
4a56e965
WYG
263 return -EFAULT;
264 }
79d07325 265 priv->switch_rxon.channel = cmd.channel;
0924e519 266 priv->switch_rxon.switch_in_progress = true;
4a56e965
WYG
267
268 return iwl_send_cmd_sync(priv, &hcmd);
269}
270
672639de 271static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 272 .set_hw_params = iwl6000_hw_set_hw_params,
b305a080
WYG
273 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
274 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
275 .txq_set_sched = iwlagn_txq_set_sched,
276 .txq_agg_enable = iwlagn_txq_agg_enable,
277 .txq_agg_disable = iwlagn_txq_agg_disable,
672639de
WYG
278 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
279 .txq_free_tfd = iwl_hw_txq_free_tfd,
280 .txq_init = iwl_hw_tx_queue_init,
e04ed0a5
WYG
281 .rx_handler_setup = iwlagn_rx_handler_setup,
282 .setup_deferred_work = iwlagn_setup_deferred_work,
283 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
81b8176e 284 .load_ucode = iwlagn_load_ucode,
b7a79404
RC
285 .dump_nic_event_log = iwl_dump_nic_event_log,
286 .dump_nic_error_log = iwl_dump_nic_error_log,
696bdee3 287 .dump_csr = iwl_dump_csr,
1b3eb823 288 .dump_fh = iwl_dump_fh,
741a6266
WYG
289 .init_alive_start = iwlagn_init_alive_start,
290 .alive_notify = iwlagn_alive_notify,
e04ed0a5 291 .send_tx_power = iwlagn_send_tx_power,
672639de 292 .update_chain_flags = iwl_update_chain_flags,
4a56e965 293 .set_channel_switch = iwl6000_hw_channel_switch,
672639de 294 .apm_ops = {
fadb3582 295 .init = iwl_apm_init,
d68b603c 296 .stop = iwl_apm_stop,
65b7998a 297 .config = iwl6000_nic_config,
672639de
WYG
298 .set_pwr_src = iwl_set_pwr_src,
299 },
300 .eeprom_ops = {
301 .regulatory_bands = {
e04ed0a5
WYG
302 EEPROM_REG_BAND_1_CHANNELS,
303 EEPROM_REG_BAND_2_CHANNELS,
304 EEPROM_REG_BAND_3_CHANNELS,
305 EEPROM_REG_BAND_4_CHANNELS,
306 EEPROM_REG_BAND_5_CHANNELS,
f2fa1b01 307 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
e04ed0a5 308 EEPROM_REG_BAND_52_HT40_CHANNELS
672639de
WYG
309 },
310 .verify_signature = iwlcore_eeprom_verify_signature,
311 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
312 .release_semaphore = iwlcore_eeprom_release_semaphore,
e04ed0a5
WYG
313 .calib_version = iwlagn_eeprom_calib_version,
314 .query_addr = iwlagn_eeprom_query_addr,
ab9fd1bf 315 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
672639de
WYG
316 },
317 .post_associate = iwl_post_associate,
318 .isr = iwl_isr_ict,
319 .config_ap = iwl_config_ap,
320 .temp_ops = {
e04ed0a5 321 .temperature = iwlagn_temperature,
672639de 322 .set_ct_kill = iwl6000_set_ct_threshold,
178d1596 323 .set_calib_version = iwl6000_set_calib_version,
672639de 324 },
1fa61b2e 325 .manage_ibss_station = iwlagn_manage_ibss_station,
a194e324 326 .update_bcast_stations = iwl_update_bcast_stations,
b8c76267
AK
327 .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,
ffb7d896 331 .bt_stats_read = iwl_ucode_bt_stats_read,
54a9aa65 332 .reply_tx_error = iwl_reply_tx_error_read,
b8c76267 333 },
b74e31a9 334 .recover_from_tx_stall = iwl_bg_monitor_recover,
fa8f130c
WYG
335 .check_plcp_health = iwl_good_plcp_health,
336 .check_ack_health = iwl_good_ack_health,
716c74b0 337 .txfifo_flush = iwlagn_txfifo_flush,
65550636 338 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
0975cc8f
WYG
339 .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 }
672639de
WYG
344};
345
9e4afc21
JB
346static 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,
b6e116e8
WYG
356 .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,
9e4afc21
JB
359 .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,
399 .set_calib_version = iwl6000_set_calib_version,
400 },
401 .manage_ibss_station = iwlagn_manage_ibss_station,
a194e324 402 .update_bcast_stations = iwl_update_bcast_stations,
9e4afc21
JB
403 .debugfs_ops = {
404 .rx_stats_read = iwl_ucode_rx_stats_read,
405 .tx_stats_read = iwl_ucode_tx_stats_read,
406 .general_stats_read = iwl_ucode_general_stats_read,
407 .bt_stats_read = iwl_ucode_bt_stats_read,
54a9aa65 408 .reply_tx_error = iwl_reply_tx_error_read,
9e4afc21
JB
409 },
410 .recover_from_tx_stall = iwl_bg_monitor_recover,
411 .check_plcp_health = iwl_good_plcp_health,
412 .check_ack_health = iwl_good_ack_health,
413 .txfifo_flush = iwlagn_txfifo_flush,
414 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
415 .tt_ops = {
416 .lower_power_detection = iwl_tt_is_low_power_state,
417 .tt_power_mode = iwl_tt_current_power_mode,
418 .ct_kill_check = iwl_check_for_ct_kill,
419 }
420};
421
45d5d805 422static const struct iwl_ops iwl6000_ops = {
672639de 423 .lib = &iwl6000_lib,
7dc77dba
WYG
424 .hcmd = &iwlagn_hcmd,
425 .utils = &iwlagn_hcmd_utils,
e932a609 426 .led = &iwlagn_led_ops,
29f35c14
JS
427};
428
1808972f 429static const struct iwl_ops iwl6000g2b_ops = {
9e4afc21 430 .lib = &iwl6000g2b_lib,
b6e116e8 431 .hcmd = &iwlagn_bt_hcmd,
1808972f
SZ
432 .utils = &iwlagn_hcmd_utils,
433 .led = &iwlagn_led_ops,
434};
435
95b13014
SZ
436struct iwl_cfg iwl6000g2a_2agn_cfg = {
437 .name = "6000 Series 2x2 AGN Gen2a",
438 .fw_name_pre = IWL6000G2A_FW_PRE,
4b3e8062
SZ
439 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
440 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
0b5af201
JS
441 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
442 .ops = &iwl6000_ops,
443 .eeprom_size = OTP_LOW_IMAGE_SIZE,
4b3e8062
SZ
444 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
445 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
0b5af201
JS
446 .num_of_queues = IWLAGN_NUM_QUEUES,
447 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
448 .mod_params = &iwlagn_mod_params,
449 .valid_tx_ant = ANT_AB,
450 .valid_rx_ant = ANT_AB,
451 .pll_cfg_val = 0,
452 .set_l0s = true,
453 .use_bsm = false,
33e6f816 454 .pa_type = IWL_PA_SYSTEM,
0b5af201
JS
455 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
456 .shadow_ram_support = true,
457 .ht_greenfield_support = true,
458 .led_compensation = 51,
94597ab2 459 .use_rts_for_aggregation = true, /* use rts/cts protection */
0b5af201
JS
460 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
461 .supports_idle = true,
462 .adv_thermal_throttle = true,
463 .support_ct_kill_exit = true,
464 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
465 .chain_noise_scale = 1000,
ce60659a 466 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
95b13014 467 .max_event_log_size = 512,
6e5c800e 468 .ucode_tracing = true,
65d1f896
WYG
469 .sensitivity_calib_by_driver = true,
470 .chain_noise_calib_by_driver = true,
178d1596 471 .need_dc_calib = true,
0b5af201
JS
472};
473
1808972f
SZ
474struct iwl_cfg iwl6000g2a_2abg_cfg = {
475 .name = "6000 Series 2x2 ABG Gen2a",
476 .fw_name_pre = IWL6000G2A_FW_PRE,
477 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
478 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
479 .sku = IWL_SKU_A|IWL_SKU_G,
480 .ops = &iwl6000_ops,
481 .eeprom_size = OTP_LOW_IMAGE_SIZE,
482 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
483 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
484 .num_of_queues = IWLAGN_NUM_QUEUES,
485 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
486 .mod_params = &iwlagn_mod_params,
487 .valid_tx_ant = ANT_AB,
488 .valid_rx_ant = ANT_AB,
489 .pll_cfg_val = 0,
490 .set_l0s = true,
491 .use_bsm = false,
492 .pa_type = IWL_PA_SYSTEM,
493 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
494 .shadow_ram_support = true,
495 .led_compensation = 51,
496 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
497 .supports_idle = true,
498 .adv_thermal_throttle = true,
499 .support_ct_kill_exit = true,
500 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
501 .chain_noise_scale = 1000,
ce60659a 502 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1808972f 503 .max_event_log_size = 512,
679db794
WYG
504 .sensitivity_calib_by_driver = true,
505 .chain_noise_calib_by_driver = true,
178d1596 506 .need_dc_calib = true,
1808972f
SZ
507};
508
509struct iwl_cfg iwl6000g2a_2bg_cfg = {
510 .name = "6000 Series 2x2 BG Gen2a",
511 .fw_name_pre = IWL6000G2A_FW_PRE,
512 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
513 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
514 .sku = IWL_SKU_G,
515 .ops = &iwl6000_ops,
516 .eeprom_size = OTP_LOW_IMAGE_SIZE,
517 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
518 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
519 .num_of_queues = IWLAGN_NUM_QUEUES,
520 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
521 .mod_params = &iwlagn_mod_params,
522 .valid_tx_ant = ANT_AB,
523 .valid_rx_ant = ANT_AB,
524 .pll_cfg_val = 0,
525 .set_l0s = true,
526 .use_bsm = false,
527 .pa_type = IWL_PA_SYSTEM,
528 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
529 .shadow_ram_support = true,
530 .led_compensation = 51,
531 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
532 .supports_idle = true,
533 .adv_thermal_throttle = true,
534 .support_ct_kill_exit = true,
535 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
536 .chain_noise_scale = 1000,
ce60659a 537 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1808972f 538 .max_event_log_size = 512,
679db794
WYG
539 .sensitivity_calib_by_driver = true,
540 .chain_noise_calib_by_driver = true,
178d1596 541 .need_dc_calib = true,
1808972f
SZ
542};
543
544struct iwl_cfg iwl6000g2b_2agn_cfg = {
545 .name = "6000 Series 2x2 AGN Gen2b",
546 .fw_name_pre = IWL6000G2B_FW_PRE,
547 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
548 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
549 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
550 .ops = &iwl6000g2b_ops,
551 .eeprom_size = OTP_LOW_IMAGE_SIZE,
552 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
553 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
554 .num_of_queues = IWLAGN_NUM_QUEUES,
555 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
556 .mod_params = &iwlagn_mod_params,
557 .valid_tx_ant = ANT_AB,
558 .valid_rx_ant = ANT_AB,
559 .pll_cfg_val = 0,
560 .set_l0s = true,
561 .use_bsm = false,
562 .pa_type = IWL_PA_SYSTEM,
563 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
564 .shadow_ram_support = true,
565 .ht_greenfield_support = true,
566 .led_compensation = 51,
94597ab2 567 .use_rts_for_aggregation = true, /* use rts/cts protection */
1808972f
SZ
568 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
569 .supports_idle = true,
570 .adv_thermal_throttle = true,
571 .support_ct_kill_exit = true,
74e5c41b 572 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 573 .chain_noise_scale = 1000,
3198c68c 574 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 575 .max_event_log_size = 512,
679db794
WYG
576 .sensitivity_calib_by_driver = true,
577 .chain_noise_calib_by_driver = true,
178d1596 578 .need_dc_calib = true,
af8ee055 579 .bt_statistics = true,
670245ed
JB
580 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
581 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
582 .advanced_bt_coexist = true,
a4b96cc4 583 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 584 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
585};
586
587struct iwl_cfg iwl6000g2b_2abg_cfg = {
588 .name = "6000 Series 2x2 ABG Gen2b",
589 .fw_name_pre = IWL6000G2B_FW_PRE,
590 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
591 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
592 .sku = IWL_SKU_A|IWL_SKU_G,
593 .ops = &iwl6000g2b_ops,
594 .eeprom_size = OTP_LOW_IMAGE_SIZE,
595 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
596 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
597 .num_of_queues = IWLAGN_NUM_QUEUES,
598 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
599 .mod_params = &iwlagn_mod_params,
600 .valid_tx_ant = ANT_AB,
601 .valid_rx_ant = ANT_AB,
602 .pll_cfg_val = 0,
603 .set_l0s = true,
604 .use_bsm = false,
605 .pa_type = IWL_PA_SYSTEM,
606 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
607 .shadow_ram_support = true,
608 .led_compensation = 51,
609 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
610 .supports_idle = true,
611 .adv_thermal_throttle = true,
612 .support_ct_kill_exit = true,
74e5c41b 613 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 614 .chain_noise_scale = 1000,
3198c68c 615 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 616 .max_event_log_size = 512,
679db794
WYG
617 .sensitivity_calib_by_driver = true,
618 .chain_noise_calib_by_driver = true,
178d1596 619 .need_dc_calib = true,
af8ee055 620 .bt_statistics = true,
670245ed
JB
621 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
622 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
623 .advanced_bt_coexist = true,
a4b96cc4 624 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 625 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
626};
627
9f6e1baf
SZ
628struct iwl_cfg iwl6000g2b_2bgn_cfg = {
629 .name = "6000 Series 2x2 BGN Gen2b",
630 .fw_name_pre = IWL6000G2B_FW_PRE,
631 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
632 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
633 .sku = IWL_SKU_G|IWL_SKU_N,
634 .ops = &iwl6000g2b_ops,
635 .eeprom_size = OTP_LOW_IMAGE_SIZE,
636 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
637 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
638 .num_of_queues = IWLAGN_NUM_QUEUES,
639 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
640 .mod_params = &iwlagn_mod_params,
641 .valid_tx_ant = ANT_AB,
642 .valid_rx_ant = ANT_AB,
643 .pll_cfg_val = 0,
644 .set_l0s = true,
645 .use_bsm = false,
646 .pa_type = IWL_PA_SYSTEM,
647 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
648 .shadow_ram_support = true,
649 .ht_greenfield_support = true,
650 .led_compensation = 51,
94597ab2 651 .use_rts_for_aggregation = true, /* use rts/cts protection */
9f6e1baf
SZ
652 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
653 .supports_idle = true,
654 .adv_thermal_throttle = true,
655 .support_ct_kill_exit = true,
74e5c41b 656 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
9f6e1baf 657 .chain_noise_scale = 1000,
3198c68c 658 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
9f6e1baf 659 .max_event_log_size = 512,
679db794
WYG
660 .sensitivity_calib_by_driver = true,
661 .chain_noise_calib_by_driver = true,
178d1596 662 .need_dc_calib = true,
af8ee055 663 .bt_statistics = true,
670245ed
JB
664 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
665 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
666 .advanced_bt_coexist = true,
a4b96cc4 667 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 668 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
9f6e1baf
SZ
669};
670
1808972f
SZ
671struct iwl_cfg iwl6000g2b_2bg_cfg = {
672 .name = "6000 Series 2x2 BG Gen2b",
673 .fw_name_pre = IWL6000G2B_FW_PRE,
674 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
675 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
676 .sku = IWL_SKU_G,
677 .ops = &iwl6000g2b_ops,
678 .eeprom_size = OTP_LOW_IMAGE_SIZE,
679 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
680 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
681 .num_of_queues = IWLAGN_NUM_QUEUES,
682 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
683 .mod_params = &iwlagn_mod_params,
684 .valid_tx_ant = ANT_AB,
685 .valid_rx_ant = ANT_AB,
686 .pll_cfg_val = 0,
687 .set_l0s = true,
688 .use_bsm = false,
689 .pa_type = IWL_PA_SYSTEM,
690 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
691 .shadow_ram_support = true,
692 .led_compensation = 51,
693 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
694 .supports_idle = true,
695 .adv_thermal_throttle = true,
696 .support_ct_kill_exit = true,
74e5c41b 697 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 698 .chain_noise_scale = 1000,
3198c68c 699 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 700 .max_event_log_size = 512,
679db794
WYG
701 .sensitivity_calib_by_driver = true,
702 .chain_noise_calib_by_driver = true,
178d1596 703 .need_dc_calib = true,
af8ee055 704 .bt_statistics = true,
670245ed
JB
705 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
706 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
707 .advanced_bt_coexist = true,
a4b96cc4 708 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 709 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
710};
711
712struct iwl_cfg iwl6000g2b_bgn_cfg = {
713 .name = "6000 Series 1x2 BGN Gen2b",
714 .fw_name_pre = IWL6000G2B_FW_PRE,
715 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
716 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
717 .sku = IWL_SKU_G|IWL_SKU_N,
718 .ops = &iwl6000g2b_ops,
719 .eeprom_size = OTP_LOW_IMAGE_SIZE,
720 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
721 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
722 .num_of_queues = IWLAGN_NUM_QUEUES,
723 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
724 .mod_params = &iwlagn_mod_params,
725 .valid_tx_ant = ANT_A,
726 .valid_rx_ant = ANT_AB,
727 .pll_cfg_val = 0,
728 .set_l0s = true,
729 .use_bsm = false,
730 .pa_type = IWL_PA_SYSTEM,
731 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
732 .shadow_ram_support = true,
733 .ht_greenfield_support = true,
734 .led_compensation = 51,
94597ab2 735 .use_rts_for_aggregation = true, /* use rts/cts protection */
1808972f
SZ
736 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
737 .supports_idle = true,
738 .adv_thermal_throttle = true,
739 .support_ct_kill_exit = true,
74e5c41b 740 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 741 .chain_noise_scale = 1000,
3198c68c 742 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 743 .max_event_log_size = 512,
679db794
WYG
744 .sensitivity_calib_by_driver = true,
745 .chain_noise_calib_by_driver = true,
178d1596 746 .need_dc_calib = true,
af8ee055 747 .bt_statistics = true,
670245ed
JB
748 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
749 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
750 .advanced_bt_coexist = true,
a4b96cc4 751 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 752 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
753};
754
755struct iwl_cfg iwl6000g2b_bg_cfg = {
756 .name = "6000 Series 1x2 BG Gen2b",
757 .fw_name_pre = IWL6000G2B_FW_PRE,
758 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
759 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
760 .sku = IWL_SKU_G,
761 .ops = &iwl6000g2b_ops,
762 .eeprom_size = OTP_LOW_IMAGE_SIZE,
763 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
764 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
765 .num_of_queues = IWLAGN_NUM_QUEUES,
766 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
767 .mod_params = &iwlagn_mod_params,
768 .valid_tx_ant = ANT_A,
769 .valid_rx_ant = ANT_AB,
770 .pll_cfg_val = 0,
771 .set_l0s = true,
772 .use_bsm = false,
773 .pa_type = IWL_PA_SYSTEM,
774 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
775 .shadow_ram_support = true,
776 .led_compensation = 51,
777 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
778 .supports_idle = true,
779 .adv_thermal_throttle = true,
780 .support_ct_kill_exit = true,
74e5c41b 781 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 782 .chain_noise_scale = 1000,
3198c68c 783 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 784 .max_event_log_size = 512,
679db794
WYG
785 .sensitivity_calib_by_driver = true,
786 .chain_noise_calib_by_driver = true,
178d1596 787 .need_dc_calib = true,
af8ee055 788 .bt_statistics = true,
670245ed
JB
789 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
790 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
791 .advanced_bt_coexist = true,
a4b96cc4 792 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 793 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
794};
795
95b13014
SZ
796/*
797 * "i": Internal configuration, use internal Power Amplifier
798 */
65b7998a 799struct iwl_cfg iwl6000i_2agn_cfg = {
c11362c0 800 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
65b7998a
WYG
801 .fw_name_pre = IWL6000_FW_PRE,
802 .ucode_api_max = IWL6000_UCODE_API_MAX,
803 .ucode_api_min = IWL6000_UCODE_API_MIN,
804 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
805 .ops = &iwl6000_ops,
415e4993 806 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 807 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 808 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
809 .num_of_queues = IWLAGN_NUM_QUEUES,
810 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 811 .mod_params = &iwlagn_mod_params,
65b7998a
WYG
812 .valid_tx_ant = ANT_BC,
813 .valid_rx_ant = ANT_BC,
fadb3582 814 .pll_cfg_val = 0,
a6c5c731 815 .set_l0s = true,
fadb3582 816 .use_bsm = false,
65b7998a 817 .pa_type = IWL_PA_INTERNAL,
415e4993
WYG
818 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
819 .shadow_ram_support = true,
b261793d 820 .ht_greenfield_support = true,
f2d0d0e2 821 .led_compensation = 51,
94597ab2 822 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 823 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 824 .supports_idle = true,
6047b4f9 825 .adv_thermal_throttle = true,
480e8407 826 .support_ct_kill_exit = true,
3e4fb5fa 827 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 828 .chain_noise_scale = 1000,
ce60659a 829 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 830 .max_event_log_size = 1024,
6e5c800e 831 .ucode_tracing = true,
65d1f896
WYG
832 .sensitivity_calib_by_driver = true,
833 .chain_noise_calib_by_driver = true,
e1228374
JS
834};
835
5953a62e 836struct iwl_cfg iwl6000i_2abg_cfg = {
c11362c0 837 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
5953a62e
WYG
838 .fw_name_pre = IWL6000_FW_PRE,
839 .ucode_api_max = IWL6000_UCODE_API_MAX,
840 .ucode_api_min = IWL6000_UCODE_API_MIN,
841 .sku = IWL_SKU_A|IWL_SKU_G,
842 .ops = &iwl6000_ops,
843 .eeprom_size = OTP_LOW_IMAGE_SIZE,
844 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 845 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
846 .num_of_queues = IWLAGN_NUM_QUEUES,
847 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 848 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
849 .valid_tx_ant = ANT_BC,
850 .valid_rx_ant = ANT_BC,
fadb3582 851 .pll_cfg_val = 0,
a6c5c731 852 .set_l0s = true,
fadb3582 853 .use_bsm = false,
5953a62e
WYG
854 .pa_type = IWL_PA_INTERNAL,
855 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
856 .shadow_ram_support = true,
5953a62e 857 .led_compensation = 51,
d8c07e7a 858 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 859 .supports_idle = true,
6047b4f9 860 .adv_thermal_throttle = true,
480e8407 861 .support_ct_kill_exit = true,
3e4fb5fa 862 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 863 .chain_noise_scale = 1000,
ce60659a 864 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 865 .max_event_log_size = 1024,
6e5c800e 866 .ucode_tracing = true,
65d1f896
WYG
867 .sensitivity_calib_by_driver = true,
868 .chain_noise_calib_by_driver = true,
5953a62e
WYG
869};
870
871struct iwl_cfg iwl6000i_2bg_cfg = {
c11362c0 872 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
5953a62e
WYG
873 .fw_name_pre = IWL6000_FW_PRE,
874 .ucode_api_max = IWL6000_UCODE_API_MAX,
875 .ucode_api_min = IWL6000_UCODE_API_MIN,
876 .sku = IWL_SKU_G,
877 .ops = &iwl6000_ops,
878 .eeprom_size = OTP_LOW_IMAGE_SIZE,
879 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 880 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
881 .num_of_queues = IWLAGN_NUM_QUEUES,
882 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 883 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
884 .valid_tx_ant = ANT_BC,
885 .valid_rx_ant = ANT_BC,
fadb3582 886 .pll_cfg_val = 0,
a6c5c731 887 .set_l0s = true,
fadb3582 888 .use_bsm = false,
5953a62e
WYG
889 .pa_type = IWL_PA_INTERNAL,
890 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
891 .shadow_ram_support = true,
5953a62e 892 .led_compensation = 51,
d8c07e7a 893 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 894 .supports_idle = true,
6047b4f9 895 .adv_thermal_throttle = true,
480e8407 896 .support_ct_kill_exit = true,
3e4fb5fa 897 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 898 .chain_noise_scale = 1000,
ce60659a 899 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 900 .max_event_log_size = 1024,
6e5c800e 901 .ucode_tracing = true,
65d1f896
WYG
902 .sensitivity_calib_by_driver = true,
903 .chain_noise_calib_by_driver = true,
5953a62e
WYG
904};
905
e1228374 906struct iwl_cfg iwl6050_2agn_cfg = {
c11362c0 907 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
e1228374
JS
908 .fw_name_pre = IWL6050_FW_PRE,
909 .ucode_api_max = IWL6050_UCODE_API_MAX,
910 .ucode_api_min = IWL6050_UCODE_API_MIN,
911 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
178d1596 912 .ops = &iwl6000_ops,
415e4993 913 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 914 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 915 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
19e6cda0
WYG
916 .num_of_queues = IWLAGN_NUM_QUEUES,
917 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 918 .mod_params = &iwlagn_mod_params,
542cc793
JS
919 .valid_tx_ant = ANT_AB,
920 .valid_rx_ant = ANT_AB,
fadb3582 921 .pll_cfg_val = 0,
a6c5c731 922 .set_l0s = true,
fadb3582 923 .use_bsm = false,
65b7998a 924 .pa_type = IWL_PA_SYSTEM,
3ab312a8 925 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
415e4993 926 .shadow_ram_support = true,
b261793d 927 .ht_greenfield_support = true,
f2d0d0e2 928 .led_compensation = 51,
94597ab2 929 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 930 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
03264339
SZ
931 .supports_idle = true,
932 .adv_thermal_throttle = true,
933 .support_ct_kill_exit = true,
934 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
935 .chain_noise_scale = 1500,
ce60659a 936 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
03264339
SZ
937 .max_event_log_size = 1024,
938 .ucode_tracing = true,
939 .sensitivity_calib_by_driver = true,
940 .chain_noise_calib_by_driver = true,
941 .need_dc_calib = true,
942};
943
944struct iwl_cfg iwl6050g2_bgn_cfg = {
945 .name = "6050 Series 1x2 BGN Gen2",
946 .fw_name_pre = IWL6050_FW_PRE,
947 .ucode_api_max = IWL6050_UCODE_API_MAX,
948 .ucode_api_min = IWL6050_UCODE_API_MIN,
949 .sku = IWL_SKU_G|IWL_SKU_N,
950 .ops = &iwl6000_ops,
951 .eeprom_size = OTP_LOW_IMAGE_SIZE,
952 .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
953 .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
954 .num_of_queues = IWLAGN_NUM_QUEUES,
955 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
956 .mod_params = &iwlagn_mod_params,
957 .valid_tx_ant = ANT_A,
958 .valid_rx_ant = ANT_AB,
959 .pll_cfg_val = 0,
960 .set_l0s = true,
961 .use_bsm = false,
962 .pa_type = IWL_PA_SYSTEM,
963 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
964 .shadow_ram_support = true,
965 .ht_greenfield_support = true,
966 .led_compensation = 51,
94597ab2 967 .use_rts_for_aggregation = true, /* use rts/cts protection */
03264339 968 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 969 .supports_idle = true,
6047b4f9 970 .adv_thermal_throttle = true,
480e8407 971 .support_ct_kill_exit = true,
3e4fb5fa 972 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 973 .chain_noise_scale = 1500,
ce60659a 974 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 975 .max_event_log_size = 1024,
6e5c800e 976 .ucode_tracing = true,
65d1f896
WYG
977 .sensitivity_calib_by_driver = true,
978 .chain_noise_calib_by_driver = true,
178d1596 979 .need_dc_calib = true,
e1228374
JS
980};
981
5953a62e 982struct iwl_cfg iwl6050_2abg_cfg = {
c11362c0 983 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
5953a62e
WYG
984 .fw_name_pre = IWL6050_FW_PRE,
985 .ucode_api_max = IWL6050_UCODE_API_MAX,
986 .ucode_api_min = IWL6050_UCODE_API_MIN,
987 .sku = IWL_SKU_A|IWL_SKU_G,
178d1596 988 .ops = &iwl6000_ops,
5953a62e 989 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 990 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 991 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
19e6cda0
WYG
992 .num_of_queues = IWLAGN_NUM_QUEUES,
993 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 994 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
995 .valid_tx_ant = ANT_AB,
996 .valid_rx_ant = ANT_AB,
fadb3582 997 .pll_cfg_val = 0,
a6c5c731 998 .set_l0s = true,
fadb3582 999 .use_bsm = false,
5953a62e 1000 .pa_type = IWL_PA_SYSTEM,
3ab312a8 1001 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
5953a62e 1002 .shadow_ram_support = true,
5953a62e 1003 .led_compensation = 51,
d8c07e7a 1004 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 1005 .supports_idle = true,
6047b4f9 1006 .adv_thermal_throttle = true,
480e8407 1007 .support_ct_kill_exit = true,
3e4fb5fa 1008 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 1009 .chain_noise_scale = 1500,
ce60659a 1010 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 1011 .max_event_log_size = 1024,
6e5c800e 1012 .ucode_tracing = true,
65d1f896
WYG
1013 .sensitivity_calib_by_driver = true,
1014 .chain_noise_calib_by_driver = true,
178d1596 1015 .need_dc_calib = true,
5953a62e
WYG
1016};
1017
e1228374 1018struct iwl_cfg iwl6000_3agn_cfg = {
c11362c0 1019 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
e1228374
JS
1020 .fw_name_pre = IWL6000_FW_PRE,
1021 .ucode_api_max = IWL6000_UCODE_API_MAX,
1022 .ucode_api_min = IWL6000_UCODE_API_MIN,
1023 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 1024 .ops = &iwl6000_ops,
415e4993 1025 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 1026 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 1027 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
1028 .num_of_queues = IWLAGN_NUM_QUEUES,
1029 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 1030 .mod_params = &iwlagn_mod_params,
c0bac76a
JS
1031 .valid_tx_ant = ANT_ABC,
1032 .valid_rx_ant = ANT_ABC,
fadb3582 1033 .pll_cfg_val = 0,
a6c5c731 1034 .set_l0s = true,
fadb3582 1035 .use_bsm = false,
65b7998a 1036 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
1037 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1038 .shadow_ram_support = true,
b261793d 1039 .ht_greenfield_support = true,
f2d0d0e2 1040 .led_compensation = 51,
94597ab2 1041 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 1042 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 1043 .supports_idle = true,
6047b4f9 1044 .adv_thermal_throttle = true,
480e8407 1045 .support_ct_kill_exit = true,
3e4fb5fa 1046 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 1047 .chain_noise_scale = 1000,
ce60659a 1048 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 1049 .max_event_log_size = 1024,
6e5c800e 1050 .ucode_tracing = true,
65d1f896
WYG
1051 .sensitivity_calib_by_driver = true,
1052 .chain_noise_calib_by_driver = true,
e1228374
JS
1053};
1054
e1228374
JS
1055MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1056MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
95b13014 1057MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1808972f 1058MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));