iwlwifi: add iwl_nic_ops structure to iwl_ops
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
1 /******************************************************************************
2 *
3 * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
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"
45 #include "iwl-agn.h"
46 #include "iwl-helpers.h"
47 #include "iwl-agn-hw.h"
48 #include "iwl-6000-hw.h"
49 #include "iwl-agn-led.h"
50 #include "iwl-agn-debugfs.h"
51
52 /* Highest firmware API version supported */
53 #define IWL6000_UCODE_API_MAX 4
54 #define IWL6050_UCODE_API_MAX 4
55 #define IWL6000G2_UCODE_API_MAX 5
56
57 /* Lowest firmware API version supported */
58 #define IWL6000_UCODE_API_MIN 4
59 #define IWL6050_UCODE_API_MIN 4
60 #define IWL6000G2_UCODE_API_MIN 4
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
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
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
78
79 static 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
86 static void iwl6050_additional_nic_config(struct iwl_priv *priv)
87 {
88 /* Indicate calibration version to uCode. */
89 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
90 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
91 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
92 }
93
94 /* NIC configuration for 6000 series */
95 static void iwl6000_nic_config(struct iwl_priv *priv)
96 {
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);
112
113 /* no locking required for register write */
114 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
115 /* 2x2 IPA phy type */
116 iwl_write32(priv, CSR_GP_DRIVER_REG,
117 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
118 }
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 }
124 }
125
126 static 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,
136 .auto_corr_max_ofdm_x1 = 110,
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,
145
146 .barker_corr_th_min = 190,
147 .barker_corr_th_min_mrc = 390,
148 .nrg_th_cca = 62,
149 };
150
151 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
152 {
153 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
154 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
155 priv->cfg->num_of_queues =
156 priv->cfg->mod_params->num_of_queues;
157
158 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
159 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
160 priv->hw_params.scd_bc_tbls_size =
161 priv->cfg->num_of_queues *
162 sizeof(struct iwlagn_scd_bc_tbl);
163 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
164 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
165 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
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;
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);
191 if (priv->cfg->need_dc_calib)
192 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
193
194 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
195
196 return 0;
197 }
198
199 static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
200 struct ieee80211_channel_switch *ch_switch)
201 {
202 /*
203 * MULTI-FIXME
204 * See iwl_mac_channel_switch.
205 */
206 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
207 struct iwl6000_channel_switch_cmd cmd;
208 const struct iwl_channel_info *ch_info;
209 u32 switch_time_in_usec, ucode_switch_time;
210 u16 ch;
211 u32 tsf_low;
212 u8 switch_count;
213 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
214 struct ieee80211_vif *vif = ctx->vif;
215 struct iwl_host_cmd hcmd = {
216 .id = REPLY_CHANNEL_SWITCH,
217 .len = sizeof(cmd),
218 .flags = CMD_SYNC,
219 .data = &cmd,
220 };
221
222 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
223 ch = ch_switch->channel->hw_value;
224 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
225 ctx->active.channel, ch);
226 cmd.channel = cpu_to_le16(ch);
227 cmd.rxon_flags = ctx->staging.flags;
228 cmd.rxon_filter_flags = ctx->staging.filter_flags;
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);
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",
263 ctx->active.channel, ch);
264 return -EFAULT;
265 }
266 priv->switch_rxon.channel = cmd.channel;
267 priv->switch_rxon.switch_in_progress = true;
268
269 return iwl_send_cmd_sync(priv, &hcmd);
270 }
271
272 static struct iwl_lib_ops iwl6000_lib = {
273 .set_hw_params = iwl6000_hw_set_hw_params,
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,
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,
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,
285 .load_ucode = iwlagn_load_ucode,
286 .dump_nic_event_log = iwl_dump_nic_event_log,
287 .dump_nic_error_log = iwl_dump_nic_error_log,
288 .dump_csr = iwl_dump_csr,
289 .dump_fh = iwl_dump_fh,
290 .init_alive_start = iwlagn_init_alive_start,
291 .alive_notify = iwlagn_alive_notify,
292 .send_tx_power = iwlagn_send_tx_power,
293 .update_chain_flags = iwl_update_chain_flags,
294 .set_channel_switch = iwl6000_hw_channel_switch,
295 .apm_ops = {
296 .init = iwl_apm_init,
297 .stop = iwl_apm_stop,
298 .config = iwl6000_nic_config,
299 .set_pwr_src = iwl_set_pwr_src,
300 },
301 .eeprom_ops = {
302 .regulatory_bands = {
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,
308 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
309 EEPROM_REG_BAND_52_HT40_CHANNELS
310 },
311 .verify_signature = iwlcore_eeprom_verify_signature,
312 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
313 .release_semaphore = iwlcore_eeprom_release_semaphore,
314 .calib_version = iwlagn_eeprom_calib_version,
315 .query_addr = iwlagn_eeprom_query_addr,
316 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
317 },
318 .post_associate = iwl_post_associate,
319 .isr = iwl_isr_ict,
320 .config_ap = iwl_config_ap,
321 .temp_ops = {
322 .temperature = iwlagn_temperature,
323 .set_ct_kill = iwl6000_set_ct_threshold,
324 },
325 .manage_ibss_station = iwlagn_manage_ibss_station,
326 .update_bcast_stations = iwl_update_bcast_stations,
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,
331 .bt_stats_read = iwl_ucode_bt_stats_read,
332 .reply_tx_error = iwl_reply_tx_error_read,
333 },
334 .recover_from_tx_stall = iwl_bg_monitor_recover,
335 .check_plcp_health = iwl_good_plcp_health,
336 .check_ack_health = iwl_good_ack_health,
337 .txfifo_flush = iwlagn_txfifo_flush,
338 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
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 }
344 };
345
346 static 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,
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,
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 },
400 .manage_ibss_station = iwlagn_manage_ibss_station,
401 .update_bcast_stations = iwl_update_bcast_stations,
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,
407 .reply_tx_error = iwl_reply_tx_error_read,
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
421 static struct iwl_nic_ops iwl6050_nic_ops = {
422 .additional_nic_config = &iwl6050_additional_nic_config,
423 };
424
425 static const struct iwl_ops iwl6000_ops = {
426 .lib = &iwl6000_lib,
427 .hcmd = &iwlagn_hcmd,
428 .utils = &iwlagn_hcmd_utils,
429 .led = &iwlagn_led_ops,
430 };
431
432 static 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
440 static const struct iwl_ops iwl6000g2b_ops = {
441 .lib = &iwl6000g2b_lib,
442 .hcmd = &iwlagn_bt_hcmd,
443 .utils = &iwlagn_hcmd_utils,
444 .led = &iwlagn_led_ops,
445 };
446
447 struct iwl_cfg iwl6000g2a_2agn_cfg = {
448 .name = "6000 Series 2x2 AGN Gen2a",
449 .fw_name_pre = IWL6000G2A_FW_PRE,
450 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
451 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
452 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
453 .ops = &iwl6000_ops,
454 .eeprom_size = OTP_LOW_IMAGE_SIZE,
455 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
456 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
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,
465 .pa_type = IWL_PA_SYSTEM,
466 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
467 .shadow_ram_support = true,
468 .ht_greenfield_support = true,
469 .led_compensation = 51,
470 .use_rts_for_aggregation = true, /* use rts/cts protection */
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,
477 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
478 .max_event_log_size = 512,
479 .ucode_tracing = true,
480 .sensitivity_calib_by_driver = true,
481 .chain_noise_calib_by_driver = true,
482 .need_dc_calib = true,
483 };
484
485 struct 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,
513 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
514 .max_event_log_size = 512,
515 .sensitivity_calib_by_driver = true,
516 .chain_noise_calib_by_driver = true,
517 .need_dc_calib = true,
518 };
519
520 struct 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,
548 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
549 .max_event_log_size = 512,
550 .sensitivity_calib_by_driver = true,
551 .chain_noise_calib_by_driver = true,
552 .need_dc_calib = true,
553 };
554
555 struct 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,
578 .use_rts_for_aggregation = true, /* use rts/cts protection */
579 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
580 .supports_idle = true,
581 .adv_thermal_throttle = true,
582 .support_ct_kill_exit = true,
583 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
584 .chain_noise_scale = 1000,
585 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
586 .max_event_log_size = 512,
587 .sensitivity_calib_by_driver = true,
588 .chain_noise_calib_by_driver = true,
589 .need_dc_calib = true,
590 .bt_statistics = true,
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,
594 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
595 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
596 };
597
598 struct 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,
624 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
625 .chain_noise_scale = 1000,
626 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
627 .max_event_log_size = 512,
628 .sensitivity_calib_by_driver = true,
629 .chain_noise_calib_by_driver = true,
630 .need_dc_calib = true,
631 .bt_statistics = true,
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,
635 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
636 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
637 };
638
639 struct 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,
662 .use_rts_for_aggregation = true, /* use rts/cts protection */
663 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
664 .supports_idle = true,
665 .adv_thermal_throttle = true,
666 .support_ct_kill_exit = true,
667 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
668 .chain_noise_scale = 1000,
669 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
670 .max_event_log_size = 512,
671 .sensitivity_calib_by_driver = true,
672 .chain_noise_calib_by_driver = true,
673 .need_dc_calib = true,
674 .bt_statistics = true,
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,
678 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
679 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
680 };
681
682 struct 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,
708 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
709 .chain_noise_scale = 1000,
710 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
711 .max_event_log_size = 512,
712 .sensitivity_calib_by_driver = true,
713 .chain_noise_calib_by_driver = true,
714 .need_dc_calib = true,
715 .bt_statistics = true,
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,
719 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
720 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
721 };
722
723 struct 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,
746 .use_rts_for_aggregation = true, /* use rts/cts protection */
747 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
748 .supports_idle = true,
749 .adv_thermal_throttle = true,
750 .support_ct_kill_exit = true,
751 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
752 .chain_noise_scale = 1000,
753 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
754 .max_event_log_size = 512,
755 .sensitivity_calib_by_driver = true,
756 .chain_noise_calib_by_driver = true,
757 .need_dc_calib = true,
758 .bt_statistics = true,
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,
762 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
763 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
764 };
765
766 struct 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,
792 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
793 .chain_noise_scale = 1000,
794 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
795 .max_event_log_size = 512,
796 .sensitivity_calib_by_driver = true,
797 .chain_noise_calib_by_driver = true,
798 .need_dc_calib = true,
799 .bt_statistics = true,
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,
803 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
804 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
805 };
806
807 /*
808 * "i": Internal configuration, use internal Power Amplifier
809 */
810 struct iwl_cfg iwl6000i_2agn_cfg = {
811 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
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,
817 .eeprom_size = OTP_LOW_IMAGE_SIZE,
818 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
819 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
820 .num_of_queues = IWLAGN_NUM_QUEUES,
821 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
822 .mod_params = &iwlagn_mod_params,
823 .valid_tx_ant = ANT_BC,
824 .valid_rx_ant = ANT_BC,
825 .pll_cfg_val = 0,
826 .set_l0s = true,
827 .use_bsm = false,
828 .pa_type = IWL_PA_INTERNAL,
829 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
830 .shadow_ram_support = true,
831 .ht_greenfield_support = true,
832 .led_compensation = 51,
833 .use_rts_for_aggregation = true, /* use rts/cts protection */
834 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
835 .supports_idle = true,
836 .adv_thermal_throttle = true,
837 .support_ct_kill_exit = true,
838 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
839 .chain_noise_scale = 1000,
840 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
841 .max_event_log_size = 1024,
842 .ucode_tracing = true,
843 .sensitivity_calib_by_driver = true,
844 .chain_noise_calib_by_driver = true,
845 };
846
847 struct iwl_cfg iwl6000i_2abg_cfg = {
848 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
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,
856 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
857 .num_of_queues = IWLAGN_NUM_QUEUES,
858 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
859 .mod_params = &iwlagn_mod_params,
860 .valid_tx_ant = ANT_BC,
861 .valid_rx_ant = ANT_BC,
862 .pll_cfg_val = 0,
863 .set_l0s = true,
864 .use_bsm = false,
865 .pa_type = IWL_PA_INTERNAL,
866 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
867 .shadow_ram_support = true,
868 .led_compensation = 51,
869 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
870 .supports_idle = true,
871 .adv_thermal_throttle = true,
872 .support_ct_kill_exit = true,
873 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
874 .chain_noise_scale = 1000,
875 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
876 .max_event_log_size = 1024,
877 .ucode_tracing = true,
878 .sensitivity_calib_by_driver = true,
879 .chain_noise_calib_by_driver = true,
880 };
881
882 struct iwl_cfg iwl6000i_2bg_cfg = {
883 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
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,
891 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
892 .num_of_queues = IWLAGN_NUM_QUEUES,
893 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
894 .mod_params = &iwlagn_mod_params,
895 .valid_tx_ant = ANT_BC,
896 .valid_rx_ant = ANT_BC,
897 .pll_cfg_val = 0,
898 .set_l0s = true,
899 .use_bsm = false,
900 .pa_type = IWL_PA_INTERNAL,
901 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
902 .shadow_ram_support = true,
903 .led_compensation = 51,
904 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
905 .supports_idle = true,
906 .adv_thermal_throttle = true,
907 .support_ct_kill_exit = true,
908 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
909 .chain_noise_scale = 1000,
910 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
911 .max_event_log_size = 1024,
912 .ucode_tracing = true,
913 .sensitivity_calib_by_driver = true,
914 .chain_noise_calib_by_driver = true,
915 };
916
917 struct iwl_cfg iwl6050_2agn_cfg = {
918 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
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,
923 .ops = &iwl6050_ops,
924 .eeprom_size = OTP_LOW_IMAGE_SIZE,
925 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
926 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
927 .num_of_queues = IWLAGN_NUM_QUEUES,
928 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
929 .mod_params = &iwlagn_mod_params,
930 .valid_tx_ant = ANT_AB,
931 .valid_rx_ant = ANT_AB,
932 .pll_cfg_val = 0,
933 .set_l0s = true,
934 .use_bsm = false,
935 .pa_type = IWL_PA_SYSTEM,
936 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
937 .shadow_ram_support = true,
938 .ht_greenfield_support = true,
939 .led_compensation = 51,
940 .use_rts_for_aggregation = true, /* use rts/cts protection */
941 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
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,
947 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
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
955 struct 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,
961 .ops = &iwl6050_ops,
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,
978 .use_rts_for_aggregation = true, /* use rts/cts protection */
979 .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,
985 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
986 .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
993 struct iwl_cfg iwl6050_2abg_cfg = {
994 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
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,
999 .ops = &iwl6050_ops,
1000 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1001 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
1002 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
1003 .num_of_queues = IWLAGN_NUM_QUEUES,
1004 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1005 .mod_params = &iwlagn_mod_params,
1006 .valid_tx_ant = ANT_AB,
1007 .valid_rx_ant = ANT_AB,
1008 .pll_cfg_val = 0,
1009 .set_l0s = true,
1010 .use_bsm = false,
1011 .pa_type = IWL_PA_SYSTEM,
1012 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
1013 .shadow_ram_support = true,
1014 .led_compensation = 51,
1015 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1016 .supports_idle = true,
1017 .adv_thermal_throttle = true,
1018 .support_ct_kill_exit = true,
1019 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1020 .chain_noise_scale = 1500,
1021 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1022 .max_event_log_size = 1024,
1023 .ucode_tracing = true,
1024 .sensitivity_calib_by_driver = true,
1025 .chain_noise_calib_by_driver = true,
1026 .need_dc_calib = true,
1027 };
1028
1029 struct iwl_cfg iwl6000_3agn_cfg = {
1030 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
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,
1035 .ops = &iwl6000_ops,
1036 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1037 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
1038 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
1039 .num_of_queues = IWLAGN_NUM_QUEUES,
1040 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1041 .mod_params = &iwlagn_mod_params,
1042 .valid_tx_ant = ANT_ABC,
1043 .valid_rx_ant = ANT_ABC,
1044 .pll_cfg_val = 0,
1045 .set_l0s = true,
1046 .use_bsm = false,
1047 .pa_type = IWL_PA_SYSTEM,
1048 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1049 .shadow_ram_support = true,
1050 .ht_greenfield_support = true,
1051 .led_compensation = 51,
1052 .use_rts_for_aggregation = true, /* use rts/cts protection */
1053 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
1054 .supports_idle = true,
1055 .adv_thermal_throttle = true,
1056 .support_ct_kill_exit = true,
1057 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
1058 .chain_noise_scale = 1000,
1059 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
1060 .max_event_log_size = 1024,
1061 .ucode_tracing = true,
1062 .sensitivity_calib_by_driver = true,
1063 .chain_noise_calib_by_driver = true,
1064 };
1065
1066 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1067 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
1068 MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1069 MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
This page took 0.051642 seconds and 6 git commands to generate.