iwlwifi: add iwl_nic_ops structure to iwl_ops
[deliverable/linux.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
6b5ce501 86static void iwl6050_additional_nic_config(struct iwl_priv *priv)
d5755939 87{
6b5ce501
SZ
88 /* Indicate calibration version to uCode. */
89 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
d5755939
AK
90 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
91 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
92}
93
65b7998a
WYG
94/* NIC configuration for 6000 series */
95static void iwl6000_nic_config(struct iwl_priv *priv)
96{
9371d4ed
WYG
97 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);
65b7998a
WYG
112
113 /* no locking required for register write */
740e7f51 114 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
65b7998a
WYG
115 /* 2x2 IPA phy type */
116 iwl_write32(priv, CSR_GP_DRIVER_REG,
117 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
118 }
6b5ce501
SZ
119 /* 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 }
65b7998a
WYG
124}
125
f3a2a424
WYG
126static 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,
2494f63c 136 .auto_corr_max_ofdm_x1 = 110,
f3a2a424
WYG
137 .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,
55036d66
WYG
145
146 .barker_corr_th_min = 190,
147 .barker_corr_th_min_mrc = 390,
148 .nrg_th_cca = 62,
f3a2a424
WYG
149};
150
151static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
152{
88804e2b 153 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
19e6cda0 154 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
88804e2b
WYG
155 priv->cfg->num_of_queues =
156 priv->cfg->mod_params->num_of_queues;
f3a2a424 157
88804e2b 158 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
f3a2a424
WYG
159 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
160 priv->hw_params.scd_bc_tbls_size =
88804e2b 161 priv->cfg->num_of_queues *
19e6cda0 162 sizeof(struct iwlagn_scd_bc_tbl);
f3a2a424 163 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
bf3c7fdd 164 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
a194e324 165 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
f3a2a424
WYG
166
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;
e517736a
WYG
186 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);
178d1596
WYG
191 if (priv->cfg->need_dc_calib)
192 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
07f33f92 193
a0ee74cf
WYG
194 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
195
f3a2a424
WYG
196 return 0;
197}
198
79d07325
WYG
199static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
200 struct ieee80211_channel_switch *ch_switch)
4a56e965 201{
246ed355
JB
202 /*
203 * MULTI-FIXME
204 * See iwl_mac_channel_switch.
205 */
206 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
4a56e965
WYG
207 struct iwl6000_channel_switch_cmd cmd;
208 const struct iwl_channel_info *ch_info;
79d07325
WYG
209 u32 switch_time_in_usec, ucode_switch_time;
210 u16 ch;
211 u32 tsf_low;
212 u8 switch_count;
246ed355 213 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
8bd413e6 214 struct ieee80211_vif *vif = ctx->vif;
4a56e965
WYG
215 struct iwl_host_cmd hcmd = {
216 .id = REPLY_CHANNEL_SWITCH,
217 .len = sizeof(cmd),
3839f7ce 218 .flags = CMD_SYNC,
4a56e965
WYG
219 .data = &cmd,
220 };
221
4a56e965 222 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
81e95430 223 ch = ch_switch->channel->hw_value;
79d07325 224 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
246ed355 225 ctx->active.channel, ch);
79d07325 226 cmd.channel = cpu_to_le16(ch);
246ed355
JB
227 cmd.rxon_flags = ctx->staging.flags;
228 cmd.rxon_filter_flags = ctx->staging.filter_flags;
79d07325
WYG
229 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);
4a56e965
WYG
259 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",
246ed355 263 ctx->active.channel, ch);
4a56e965
WYG
264 return -EFAULT;
265 }
79d07325 266 priv->switch_rxon.channel = cmd.channel;
0924e519 267 priv->switch_rxon.switch_in_progress = true;
4a56e965
WYG
268
269 return iwl_send_cmd_sync(priv, &hcmd);
270}
271
672639de 272static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 273 .set_hw_params = iwl6000_hw_set_hw_params,
b305a080
WYG
274 .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,
672639de
WYG
279 .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,
e04ed0a5
WYG
282 .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,
81b8176e 285 .load_ucode = iwlagn_load_ucode,
b7a79404
RC
286 .dump_nic_event_log = iwl_dump_nic_event_log,
287 .dump_nic_error_log = iwl_dump_nic_error_log,
696bdee3 288 .dump_csr = iwl_dump_csr,
1b3eb823 289 .dump_fh = iwl_dump_fh,
741a6266
WYG
290 .init_alive_start = iwlagn_init_alive_start,
291 .alive_notify = iwlagn_alive_notify,
e04ed0a5 292 .send_tx_power = iwlagn_send_tx_power,
672639de 293 .update_chain_flags = iwl_update_chain_flags,
4a56e965 294 .set_channel_switch = iwl6000_hw_channel_switch,
672639de 295 .apm_ops = {
fadb3582 296 .init = iwl_apm_init,
d68b603c 297 .stop = iwl_apm_stop,
65b7998a 298 .config = iwl6000_nic_config,
672639de
WYG
299 .set_pwr_src = iwl_set_pwr_src,
300 },
301 .eeprom_ops = {
302 .regulatory_bands = {
e04ed0a5
WYG
303 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,
f2fa1b01 308 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
e04ed0a5 309 EEPROM_REG_BAND_52_HT40_CHANNELS
672639de
WYG
310 },
311 .verify_signature = iwlcore_eeprom_verify_signature,
312 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
313 .release_semaphore = iwlcore_eeprom_release_semaphore,
e04ed0a5
WYG
314 .calib_version = iwlagn_eeprom_calib_version,
315 .query_addr = iwlagn_eeprom_query_addr,
ab9fd1bf 316 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
672639de
WYG
317 },
318 .post_associate = iwl_post_associate,
319 .isr = iwl_isr_ict,
320 .config_ap = iwl_config_ap,
321 .temp_ops = {
e04ed0a5 322 .temperature = iwlagn_temperature,
672639de
WYG
323 .set_ct_kill = iwl6000_set_ct_threshold,
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,
9e4afc21
JB
399 },
400 .manage_ibss_station = iwlagn_manage_ibss_station,
a194e324 401 .update_bcast_stations = iwl_update_bcast_stations,
9e4afc21
JB
402 .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,
54a9aa65 407 .reply_tx_error = iwl_reply_tx_error_read,
9e4afc21
JB
408 },
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
6b5ce501
SZ
421static struct iwl_nic_ops iwl6050_nic_ops = {
422 .additional_nic_config = &iwl6050_additional_nic_config,
423};
424
45d5d805 425static const struct iwl_ops iwl6000_ops = {
672639de 426 .lib = &iwl6000_lib,
7dc77dba
WYG
427 .hcmd = &iwlagn_hcmd,
428 .utils = &iwlagn_hcmd_utils,
e932a609 429 .led = &iwlagn_led_ops,
29f35c14
JS
430};
431
6b5ce501
SZ
432static 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
1808972f 440static const struct iwl_ops iwl6000g2b_ops = {
9e4afc21 441 .lib = &iwl6000g2b_lib,
b6e116e8 442 .hcmd = &iwlagn_bt_hcmd,
1808972f
SZ
443 .utils = &iwlagn_hcmd_utils,
444 .led = &iwlagn_led_ops,
445};
446
95b13014
SZ
447struct iwl_cfg iwl6000g2a_2agn_cfg = {
448 .name = "6000 Series 2x2 AGN Gen2a",
449 .fw_name_pre = IWL6000G2A_FW_PRE,
4b3e8062
SZ
450 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
451 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
0b5af201
JS
452 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
453 .ops = &iwl6000_ops,
454 .eeprom_size = OTP_LOW_IMAGE_SIZE,
4b3e8062
SZ
455 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
456 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
0b5af201
JS
457 .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,
33e6f816 465 .pa_type = IWL_PA_SYSTEM,
0b5af201
JS
466 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
467 .shadow_ram_support = true,
468 .ht_greenfield_support = true,
469 .led_compensation = 51,
94597ab2 470 .use_rts_for_aggregation = true, /* use rts/cts protection */
0b5af201
JS
471 .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,
ce60659a 477 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
95b13014 478 .max_event_log_size = 512,
6e5c800e 479 .ucode_tracing = true,
65d1f896
WYG
480 .sensitivity_calib_by_driver = true,
481 .chain_noise_calib_by_driver = true,
178d1596 482 .need_dc_calib = true,
0b5af201
JS
483};
484
1808972f
SZ
485struct 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,
ce60659a 513 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1808972f 514 .max_event_log_size = 512,
679db794
WYG
515 .sensitivity_calib_by_driver = true,
516 .chain_noise_calib_by_driver = true,
178d1596 517 .need_dc_calib = true,
1808972f
SZ
518};
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,
ce60659a 548 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1808972f 549 .max_event_log_size = 512,
679db794
WYG
550 .sensitivity_calib_by_driver = true,
551 .chain_noise_calib_by_driver = true,
178d1596 552 .need_dc_calib = true,
1808972f
SZ
553};
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,
94597ab2 578 .use_rts_for_aggregation = true, /* use rts/cts protection */
1808972f
SZ
579 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
580 .supports_idle = true,
581 .adv_thermal_throttle = true,
582 .support_ct_kill_exit = true,
74e5c41b 583 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 584 .chain_noise_scale = 1000,
3198c68c 585 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 586 .max_event_log_size = 512,
679db794
WYG
587 .sensitivity_calib_by_driver = true,
588 .chain_noise_calib_by_driver = true,
178d1596 589 .need_dc_calib = true,
af8ee055 590 .bt_statistics = true,
670245ed
JB
591 /* 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,
a4b96cc4 594 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 595 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
596};
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,
74e5c41b 624 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 625 .chain_noise_scale = 1000,
3198c68c 626 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 627 .max_event_log_size = 512,
679db794
WYG
628 .sensitivity_calib_by_driver = true,
629 .chain_noise_calib_by_driver = true,
178d1596 630 .need_dc_calib = true,
af8ee055 631 .bt_statistics = true,
670245ed
JB
632 /* 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,
a4b96cc4 635 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 636 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
637};
638
9f6e1baf
SZ
639struct 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,
94597ab2 662 .use_rts_for_aggregation = true, /* use rts/cts protection */
9f6e1baf
SZ
663 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
664 .supports_idle = true,
665 .adv_thermal_throttle = true,
666 .support_ct_kill_exit = true,
74e5c41b 667 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
9f6e1baf 668 .chain_noise_scale = 1000,
3198c68c 669 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
9f6e1baf 670 .max_event_log_size = 512,
679db794
WYG
671 .sensitivity_calib_by_driver = true,
672 .chain_noise_calib_by_driver = true,
178d1596 673 .need_dc_calib = true,
af8ee055 674 .bt_statistics = true,
670245ed
JB
675 /* 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,
a4b96cc4 678 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 679 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
9f6e1baf
SZ
680};
681
1808972f
SZ
682struct 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,
74e5c41b 708 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 709 .chain_noise_scale = 1000,
3198c68c 710 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 711 .max_event_log_size = 512,
679db794
WYG
712 .sensitivity_calib_by_driver = true,
713 .chain_noise_calib_by_driver = true,
178d1596 714 .need_dc_calib = true,
af8ee055 715 .bt_statistics = true,
670245ed
JB
716 /* 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,
a4b96cc4 719 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 720 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
721};
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,
94597ab2 746 .use_rts_for_aggregation = true, /* use rts/cts protection */
1808972f
SZ
747 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
748 .supports_idle = true,
749 .adv_thermal_throttle = true,
750 .support_ct_kill_exit = true,
74e5c41b 751 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 752 .chain_noise_scale = 1000,
3198c68c 753 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 754 .max_event_log_size = 512,
679db794
WYG
755 .sensitivity_calib_by_driver = true,
756 .chain_noise_calib_by_driver = true,
178d1596 757 .need_dc_calib = true,
af8ee055 758 .bt_statistics = true,
670245ed
JB
759 /* 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,
a4b96cc4 762 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 763 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
764};
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,
74e5c41b 792 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
1808972f 793 .chain_noise_scale = 1000,
3198c68c 794 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
1808972f 795 .max_event_log_size = 512,
679db794
WYG
796 .sensitivity_calib_by_driver = true,
797 .chain_noise_calib_by_driver = true,
178d1596 798 .need_dc_calib = true,
af8ee055 799 .bt_statistics = true,
670245ed
JB
800 /* 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,
a4b96cc4 803 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
b6e116e8 804 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
1808972f
SZ
805};
806
95b13014
SZ
807/*
808 * "i": Internal configuration, use internal Power Amplifier
809 */
65b7998a 810struct iwl_cfg iwl6000i_2agn_cfg = {
c11362c0 811 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
65b7998a
WYG
812 .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,
415e4993 817 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 818 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 819 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
820 .num_of_queues = IWLAGN_NUM_QUEUES,
821 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 822 .mod_params = &iwlagn_mod_params,
65b7998a
WYG
823 .valid_tx_ant = ANT_BC,
824 .valid_rx_ant = ANT_BC,
fadb3582 825 .pll_cfg_val = 0,
a6c5c731 826 .set_l0s = true,
fadb3582 827 .use_bsm = false,
65b7998a 828 .pa_type = IWL_PA_INTERNAL,
415e4993
WYG
829 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
830 .shadow_ram_support = true,
b261793d 831 .ht_greenfield_support = true,
f2d0d0e2 832 .led_compensation = 51,
94597ab2 833 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 834 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 835 .supports_idle = true,
6047b4f9 836 .adv_thermal_throttle = true,
480e8407 837 .support_ct_kill_exit = true,
3e4fb5fa 838 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 839 .chain_noise_scale = 1000,
ce60659a 840 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 841 .max_event_log_size = 1024,
6e5c800e 842 .ucode_tracing = true,
65d1f896
WYG
843 .sensitivity_calib_by_driver = true,
844 .chain_noise_calib_by_driver = true,
e1228374
JS
845};
846
5953a62e 847struct iwl_cfg iwl6000i_2abg_cfg = {
c11362c0 848 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
5953a62e
WYG
849 .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,
00e70590 856 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
857 .num_of_queues = IWLAGN_NUM_QUEUES,
858 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 859 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
860 .valid_tx_ant = ANT_BC,
861 .valid_rx_ant = ANT_BC,
fadb3582 862 .pll_cfg_val = 0,
a6c5c731 863 .set_l0s = true,
fadb3582 864 .use_bsm = false,
5953a62e
WYG
865 .pa_type = IWL_PA_INTERNAL,
866 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
867 .shadow_ram_support = true,
5953a62e 868 .led_compensation = 51,
d8c07e7a 869 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 870 .supports_idle = true,
6047b4f9 871 .adv_thermal_throttle = true,
480e8407 872 .support_ct_kill_exit = true,
3e4fb5fa 873 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 874 .chain_noise_scale = 1000,
ce60659a 875 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 876 .max_event_log_size = 1024,
6e5c800e 877 .ucode_tracing = true,
65d1f896
WYG
878 .sensitivity_calib_by_driver = true,
879 .chain_noise_calib_by_driver = true,
5953a62e
WYG
880};
881
882struct iwl_cfg iwl6000i_2bg_cfg = {
c11362c0 883 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
5953a62e
WYG
884 .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,
00e70590 891 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
892 .num_of_queues = IWLAGN_NUM_QUEUES,
893 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 894 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
895 .valid_tx_ant = ANT_BC,
896 .valid_rx_ant = ANT_BC,
fadb3582 897 .pll_cfg_val = 0,
a6c5c731 898 .set_l0s = true,
fadb3582 899 .use_bsm = false,
5953a62e
WYG
900 .pa_type = IWL_PA_INTERNAL,
901 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
902 .shadow_ram_support = true,
5953a62e 903 .led_compensation = 51,
d8c07e7a 904 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 905 .supports_idle = true,
6047b4f9 906 .adv_thermal_throttle = true,
480e8407 907 .support_ct_kill_exit = true,
3e4fb5fa 908 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 909 .chain_noise_scale = 1000,
ce60659a 910 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 911 .max_event_log_size = 1024,
6e5c800e 912 .ucode_tracing = true,
65d1f896
WYG
913 .sensitivity_calib_by_driver = true,
914 .chain_noise_calib_by_driver = true,
5953a62e
WYG
915};
916
e1228374 917struct iwl_cfg iwl6050_2agn_cfg = {
c11362c0 918 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
e1228374
JS
919 .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,
6b5ce501 923 .ops = &iwl6050_ops,
415e4993 924 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 925 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 926 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
19e6cda0
WYG
927 .num_of_queues = IWLAGN_NUM_QUEUES,
928 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 929 .mod_params = &iwlagn_mod_params,
542cc793
JS
930 .valid_tx_ant = ANT_AB,
931 .valid_rx_ant = ANT_AB,
fadb3582 932 .pll_cfg_val = 0,
a6c5c731 933 .set_l0s = true,
fadb3582 934 .use_bsm = false,
65b7998a 935 .pa_type = IWL_PA_SYSTEM,
3ab312a8 936 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
415e4993 937 .shadow_ram_support = true,
b261793d 938 .ht_greenfield_support = true,
f2d0d0e2 939 .led_compensation = 51,
94597ab2 940 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 941 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
03264339
SZ
942 .supports_idle = true,
943 .adv_thermal_throttle = true,
944 .support_ct_kill_exit = true,
945 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
946 .chain_noise_scale = 1500,
ce60659a 947 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
03264339
SZ
948 .max_event_log_size = 1024,
949 .ucode_tracing = true,
950 .sensitivity_calib_by_driver = true,
951 .chain_noise_calib_by_driver = true,
952 .need_dc_calib = true,
953};
954
955struct 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,
6b5ce501 961 .ops = &iwl6050_ops,
03264339
SZ
962 .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,
94597ab2 978 .use_rts_for_aggregation = true, /* use rts/cts protection */
03264339 979 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 980 .supports_idle = true,
6047b4f9 981 .adv_thermal_throttle = true,
480e8407 982 .support_ct_kill_exit = true,
3e4fb5fa 983 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 984 .chain_noise_scale = 1500,
ce60659a 985 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 986 .max_event_log_size = 1024,
6e5c800e 987 .ucode_tracing = true,
65d1f896
WYG
988 .sensitivity_calib_by_driver = true,
989 .chain_noise_calib_by_driver = true,
178d1596 990 .need_dc_calib = true,
e1228374
JS
991};
992
5953a62e 993struct iwl_cfg iwl6050_2abg_cfg = {
c11362c0 994 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
5953a62e
WYG
995 .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,
6b5ce501 999 .ops = &iwl6050_ops,
5953a62e 1000 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 1001 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 1002 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
19e6cda0
WYG
1003 .num_of_queues = IWLAGN_NUM_QUEUES,
1004 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 1005 .mod_params = &iwlagn_mod_params,
5953a62e
WYG
1006 .valid_tx_ant = ANT_AB,
1007 .valid_rx_ant = ANT_AB,
fadb3582 1008 .pll_cfg_val = 0,
a6c5c731 1009 .set_l0s = true,
fadb3582 1010 .use_bsm = false,
5953a62e 1011 .pa_type = IWL_PA_SYSTEM,
3ab312a8 1012 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
5953a62e 1013 .shadow_ram_support = true,
5953a62e 1014 .led_compensation = 51,
d8c07e7a 1015 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 1016 .supports_idle = true,
6047b4f9 1017 .adv_thermal_throttle = true,
480e8407 1018 .support_ct_kill_exit = true,
3e4fb5fa 1019 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 1020 .chain_noise_scale = 1500,
ce60659a 1021 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 1022 .max_event_log_size = 1024,
6e5c800e 1023 .ucode_tracing = true,
65d1f896
WYG
1024 .sensitivity_calib_by_driver = true,
1025 .chain_noise_calib_by_driver = true,
178d1596 1026 .need_dc_calib = true,
5953a62e
WYG
1027};
1028
e1228374 1029struct iwl_cfg iwl6000_3agn_cfg = {
c11362c0 1030 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
e1228374
JS
1031 .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,
29f35c14 1035 .ops = &iwl6000_ops,
415e4993 1036 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 1037 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 1038 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
19e6cda0
WYG
1039 .num_of_queues = IWLAGN_NUM_QUEUES,
1040 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
348ee7cd 1041 .mod_params = &iwlagn_mod_params,
c0bac76a
JS
1042 .valid_tx_ant = ANT_ABC,
1043 .valid_rx_ant = ANT_ABC,
fadb3582 1044 .pll_cfg_val = 0,
a6c5c731 1045 .set_l0s = true,
fadb3582 1046 .use_bsm = false,
65b7998a 1047 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
1048 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1049 .shadow_ram_support = true,
b261793d 1050 .ht_greenfield_support = true,
f2d0d0e2 1051 .led_compensation = 51,
94597ab2 1052 .use_rts_for_aggregation = true, /* use rts/cts protection */
d8c07e7a 1053 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 1054 .supports_idle = true,
6047b4f9 1055 .adv_thermal_throttle = true,
480e8407 1056 .support_ct_kill_exit = true,
3e4fb5fa 1057 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
d4fe5ac9 1058 .chain_noise_scale = 1000,
ce60659a 1059 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
678b385d 1060 .max_event_log_size = 1024,
6e5c800e 1061 .ucode_tracing = true,
65d1f896
WYG
1062 .sensitivity_calib_by_driver = true,
1063 .chain_noise_calib_by_driver = true,
e1228374
JS
1064};
1065
e1228374
JS
1066MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1067MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
95b13014 1068MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1808972f 1069MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
This page took 0.296489 seconds and 5 git commands to generate.