1 /******************************************************************************
3 * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
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.
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
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
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25 *****************************************************************************/
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>
40 #include "iwl-eeprom.h"
45 #include "iwl-helpers.h"
46 #include "iwl-5000-hw.h"
47 #include "iwl-6000-hw.h"
48 #include "iwl-agn-led.h"
50 /* Highest firmware API version supported */
51 #define IWL6000_UCODE_API_MAX 4
52 #define IWL6050_UCODE_API_MAX 4
54 /* Lowest firmware API version supported */
55 #define IWL6000_UCODE_API_MIN 4
56 #define IWL6050_UCODE_API_MIN 4
58 #define IWL6000_FW_PRE "/*(DEBLOBBED)*/"
59 #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE /*(DEBLOBBED)*/
60 #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
62 #define IWL6050_FW_PRE "/*(DEBLOBBED)*/"
63 #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE /*(DEBLOBBED)*/
64 #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
66 static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
69 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
70 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
73 /* Indicate calibration version to uCode. */
74 static void iwl6050_set_calib_version(struct iwl_priv *priv)
76 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
77 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
78 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
81 /* NIC configuration for 6000 series */
82 static void iwl6000_nic_config(struct iwl_priv *priv)
86 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
88 /* write radio config values to register */
89 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
90 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
91 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
92 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
93 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
95 /* set CSR_HW_CONFIG_REG for uCode use */
96 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
97 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
98 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
100 /* no locking required for register write */
101 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
102 /* 2x2 IPA phy type */
103 iwl_write32(priv, CSR_GP_DRIVER_REG,
104 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
106 /* else do nothing, uCode configured */
107 if (priv->cfg->ops->lib->temp_ops.set_calib_version)
108 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
111 static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
113 .max_nrg_cck = 0, /* not used, set to 0 */
114 .auto_corr_min_ofdm = 80,
115 .auto_corr_min_ofdm_mrc = 128,
116 .auto_corr_min_ofdm_x1 = 105,
117 .auto_corr_min_ofdm_mrc_x1 = 192,
119 .auto_corr_max_ofdm = 145,
120 .auto_corr_max_ofdm_mrc = 232,
121 .auto_corr_max_ofdm_x1 = 110,
122 .auto_corr_max_ofdm_mrc_x1 = 232,
124 .auto_corr_min_cck = 125,
125 .auto_corr_max_cck = 175,
126 .auto_corr_min_cck_mrc = 160,
127 .auto_corr_max_cck_mrc = 310,
131 .barker_corr_th_min = 190,
132 .barker_corr_th_min_mrc = 390,
136 static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
138 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
139 priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
140 priv->cfg->num_of_queues =
141 priv->cfg->mod_params->num_of_queues;
143 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
144 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
145 priv->hw_params.scd_bc_tbls_size =
146 priv->cfg->num_of_queues *
147 sizeof(struct iwl5000_scd_bc_tbl);
148 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
149 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
150 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
152 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
153 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
155 priv->hw_params.max_bsm_size = 0;
156 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
157 BIT(IEEE80211_BAND_5GHZ);
158 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
160 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
161 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
162 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
163 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
165 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
166 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
168 /* Set initial sensitivity parameters */
169 /* Set initial calibration set */
170 priv->hw_params.sens = &iwl6000_sensitivity;
171 switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
172 case CSR_HW_REV_TYPE_6x50:
173 priv->hw_params.calib_init_cfg =
174 BIT(IWL_CALIB_XTAL) |
177 BIT(IWL_CALIB_TX_IQ) |
178 BIT(IWL_CALIB_BASE_BAND);
182 priv->hw_params.calib_init_cfg =
183 BIT(IWL_CALIB_XTAL) |
185 BIT(IWL_CALIB_TX_IQ) |
186 BIT(IWL_CALIB_BASE_BAND);
193 static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
195 struct iwl6000_channel_switch_cmd cmd;
196 const struct iwl_channel_info *ch_info;
197 struct iwl_host_cmd hcmd = {
198 .id = REPLY_CHANNEL_SWITCH,
200 .flags = CMD_SIZE_HUGE,
204 IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
205 priv->active_rxon.channel, channel);
207 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
208 cmd.channel = cpu_to_le16(channel);
209 cmd.rxon_flags = priv->staging_rxon.flags;
210 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
211 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
212 ch_info = iwl_get_channel_info(priv, priv->band, channel);
214 cmd.expect_beacon = is_channel_radar(ch_info);
216 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
217 priv->active_rxon.channel, channel);
220 priv->switch_rxon.channel = cpu_to_le16(channel);
221 priv->switch_rxon.switch_in_progress = true;
223 return iwl_send_cmd_sync(priv, &hcmd);
226 static struct iwl_lib_ops iwl6000_lib = {
227 .set_hw_params = iwl6000_hw_set_hw_params,
228 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
229 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
230 .txq_set_sched = iwl5000_txq_set_sched,
231 .txq_agg_enable = iwl5000_txq_agg_enable,
232 .txq_agg_disable = iwl5000_txq_agg_disable,
233 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
234 .txq_free_tfd = iwl_hw_txq_free_tfd,
235 .txq_init = iwl_hw_tx_queue_init,
236 .rx_handler_setup = iwl5000_rx_handler_setup,
237 .setup_deferred_work = iwl5000_setup_deferred_work,
238 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
239 .load_ucode = iwl5000_load_ucode,
240 .dump_nic_event_log = iwl_dump_nic_event_log,
241 .dump_nic_error_log = iwl_dump_nic_error_log,
242 .dump_csr = iwl_dump_csr,
243 .dump_fh = iwl_dump_fh,
244 .init_alive_start = iwl5000_init_alive_start,
245 .alive_notify = iwl5000_alive_notify,
246 .send_tx_power = iwl5000_send_tx_power,
247 .update_chain_flags = iwl_update_chain_flags,
248 .set_channel_switch = iwl6000_hw_channel_switch,
250 .init = iwl_apm_init,
251 .stop = iwl_apm_stop,
252 .config = iwl6000_nic_config,
253 .set_pwr_src = iwl_set_pwr_src,
256 .regulatory_bands = {
257 EEPROM_5000_REG_BAND_1_CHANNELS,
258 EEPROM_5000_REG_BAND_2_CHANNELS,
259 EEPROM_5000_REG_BAND_3_CHANNELS,
260 EEPROM_5000_REG_BAND_4_CHANNELS,
261 EEPROM_5000_REG_BAND_5_CHANNELS,
262 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
263 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
265 .verify_signature = iwlcore_eeprom_verify_signature,
266 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
267 .release_semaphore = iwlcore_eeprom_release_semaphore,
268 .calib_version = iwl5000_eeprom_calib_version,
269 .query_addr = iwl5000_eeprom_query_addr,
270 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
272 .post_associate = iwl_post_associate,
274 .config_ap = iwl_config_ap,
276 .temperature = iwl5000_temperature,
277 .set_ct_kill = iwl6000_set_ct_threshold,
279 .add_bcast_station = iwl_add_bcast_station,
280 .recover_from_tx_stall = iwl_bg_monitor_recover,
283 static const struct iwl_ops iwl6000_ops = {
284 .ucode = &iwl5000_ucode,
286 .hcmd = &iwl5000_hcmd,
287 .utils = &iwl5000_hcmd_utils,
288 .led = &iwlagn_led_ops,
291 static struct iwl_lib_ops iwl6050_lib = {
292 .set_hw_params = iwl6000_hw_set_hw_params,
293 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
294 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
295 .txq_set_sched = iwl5000_txq_set_sched,
296 .txq_agg_enable = iwl5000_txq_agg_enable,
297 .txq_agg_disable = iwl5000_txq_agg_disable,
298 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
299 .txq_free_tfd = iwl_hw_txq_free_tfd,
300 .txq_init = iwl_hw_tx_queue_init,
301 .rx_handler_setup = iwl5000_rx_handler_setup,
302 .setup_deferred_work = iwl5000_setup_deferred_work,
303 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
304 .load_ucode = iwl5000_load_ucode,
305 .dump_nic_event_log = iwl_dump_nic_event_log,
306 .dump_nic_error_log = iwl_dump_nic_error_log,
307 .dump_csr = iwl_dump_csr,
308 .dump_fh = iwl_dump_fh,
309 .init_alive_start = iwl5000_init_alive_start,
310 .alive_notify = iwl5000_alive_notify,
311 .send_tx_power = iwl5000_send_tx_power,
312 .update_chain_flags = iwl_update_chain_flags,
313 .set_channel_switch = iwl6000_hw_channel_switch,
315 .init = iwl_apm_init,
316 .stop = iwl_apm_stop,
317 .config = iwl6000_nic_config,
318 .set_pwr_src = iwl_set_pwr_src,
321 .regulatory_bands = {
322 EEPROM_5000_REG_BAND_1_CHANNELS,
323 EEPROM_5000_REG_BAND_2_CHANNELS,
324 EEPROM_5000_REG_BAND_3_CHANNELS,
325 EEPROM_5000_REG_BAND_4_CHANNELS,
326 EEPROM_5000_REG_BAND_5_CHANNELS,
327 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
328 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
330 .verify_signature = iwlcore_eeprom_verify_signature,
331 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
332 .release_semaphore = iwlcore_eeprom_release_semaphore,
333 .calib_version = iwl5000_eeprom_calib_version,
334 .query_addr = iwl5000_eeprom_query_addr,
335 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
337 .post_associate = iwl_post_associate,
339 .config_ap = iwl_config_ap,
341 .temperature = iwl5000_temperature,
342 .set_ct_kill = iwl6000_set_ct_threshold,
343 .set_calib_version = iwl6050_set_calib_version,
345 .add_bcast_station = iwl_add_bcast_station,
346 .recover_from_tx_stall = iwl_bg_monitor_recover,
349 static const struct iwl_ops iwl6050_ops = {
350 .ucode = &iwl5000_ucode,
352 .hcmd = &iwl5000_hcmd,
353 .utils = &iwl5000_hcmd_utils,
354 .led = &iwlagn_led_ops,
358 * "i": Internal configuration, use internal Power Amplifier
360 struct iwl_cfg iwl6000i_2agn_cfg = {
361 .name = "6000 Series 2x2 AGN",
362 .fw_name_pre = IWL6000_FW_PRE,
363 .ucode_api_max = IWL6000_UCODE_API_MAX,
364 .ucode_api_min = IWL6000_UCODE_API_MIN,
365 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
367 .eeprom_size = OTP_LOW_IMAGE_SIZE,
368 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
369 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
370 .num_of_queues = IWL50_NUM_QUEUES,
371 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
372 .mod_params = &iwl50_mod_params,
373 .valid_tx_ant = ANT_BC,
374 .valid_rx_ant = ANT_BC,
378 .pa_type = IWL_PA_INTERNAL,
379 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
380 .shadow_ram_support = true,
381 .ht_greenfield_support = true,
382 .led_compensation = 51,
383 .use_rts_for_ht = true, /* use rts/cts protection */
384 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
385 .supports_idle = true,
386 .adv_thermal_throttle = true,
387 .support_ct_kill_exit = true,
388 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
389 .chain_noise_scale = 1000,
390 .monitor_recover_period = IWL_MONITORING_PERIOD,
393 struct iwl_cfg iwl6000i_2abg_cfg = {
394 .name = "6000 Series 2x2 ABG",
395 .fw_name_pre = IWL6000_FW_PRE,
396 .ucode_api_max = IWL6000_UCODE_API_MAX,
397 .ucode_api_min = IWL6000_UCODE_API_MIN,
398 .sku = IWL_SKU_A|IWL_SKU_G,
400 .eeprom_size = OTP_LOW_IMAGE_SIZE,
401 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
402 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
403 .num_of_queues = IWL50_NUM_QUEUES,
404 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
405 .mod_params = &iwl50_mod_params,
406 .valid_tx_ant = ANT_BC,
407 .valid_rx_ant = ANT_BC,
411 .pa_type = IWL_PA_INTERNAL,
412 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
413 .shadow_ram_support = true,
414 .ht_greenfield_support = true,
415 .led_compensation = 51,
416 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
417 .supports_idle = true,
418 .adv_thermal_throttle = true,
419 .support_ct_kill_exit = true,
420 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
421 .chain_noise_scale = 1000,
422 .monitor_recover_period = IWL_MONITORING_PERIOD,
425 struct iwl_cfg iwl6000i_2bg_cfg = {
426 .name = "6000 Series 2x2 BG",
427 .fw_name_pre = IWL6000_FW_PRE,
428 .ucode_api_max = IWL6000_UCODE_API_MAX,
429 .ucode_api_min = IWL6000_UCODE_API_MIN,
432 .eeprom_size = OTP_LOW_IMAGE_SIZE,
433 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
434 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
435 .num_of_queues = IWL50_NUM_QUEUES,
436 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
437 .mod_params = &iwl50_mod_params,
438 .valid_tx_ant = ANT_BC,
439 .valid_rx_ant = ANT_BC,
443 .pa_type = IWL_PA_INTERNAL,
444 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
445 .shadow_ram_support = true,
446 .ht_greenfield_support = true,
447 .led_compensation = 51,
448 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
449 .supports_idle = true,
450 .adv_thermal_throttle = true,
451 .support_ct_kill_exit = true,
452 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
453 .chain_noise_scale = 1000,
454 .monitor_recover_period = IWL_MONITORING_PERIOD,
457 struct iwl_cfg iwl6050_2agn_cfg = {
458 .name = "6050 Series 2x2 AGN",
459 .fw_name_pre = IWL6050_FW_PRE,
460 .ucode_api_max = IWL6050_UCODE_API_MAX,
461 .ucode_api_min = IWL6050_UCODE_API_MIN,
462 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
464 .eeprom_size = OTP_LOW_IMAGE_SIZE,
465 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
466 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
467 .num_of_queues = IWL50_NUM_QUEUES,
468 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
469 .mod_params = &iwl50_mod_params,
470 .valid_tx_ant = ANT_AB,
471 .valid_rx_ant = ANT_AB,
475 .pa_type = IWL_PA_SYSTEM,
476 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
477 .shadow_ram_support = true,
478 .ht_greenfield_support = true,
479 .led_compensation = 51,
480 .use_rts_for_ht = true, /* use rts/cts protection */
481 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
482 .supports_idle = true,
483 .adv_thermal_throttle = true,
484 .support_ct_kill_exit = true,
485 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
486 .chain_noise_scale = 1500,
487 .monitor_recover_period = IWL_MONITORING_PERIOD,
490 struct iwl_cfg iwl6050_2abg_cfg = {
491 .name = "6050 Series 2x2 ABG",
492 .fw_name_pre = IWL6050_FW_PRE,
493 .ucode_api_max = IWL6050_UCODE_API_MAX,
494 .ucode_api_min = IWL6050_UCODE_API_MIN,
495 .sku = IWL_SKU_A|IWL_SKU_G,
497 .eeprom_size = OTP_LOW_IMAGE_SIZE,
498 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
499 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
500 .num_of_queues = IWL50_NUM_QUEUES,
501 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
502 .mod_params = &iwl50_mod_params,
503 .valid_tx_ant = ANT_AB,
504 .valid_rx_ant = ANT_AB,
508 .pa_type = IWL_PA_SYSTEM,
509 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
510 .shadow_ram_support = true,
511 .ht_greenfield_support = true,
512 .led_compensation = 51,
513 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
514 .supports_idle = true,
515 .adv_thermal_throttle = true,
516 .support_ct_kill_exit = true,
517 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
518 .chain_noise_scale = 1500,
519 .monitor_recover_period = IWL_MONITORING_PERIOD,
522 struct iwl_cfg iwl6000_3agn_cfg = {
523 .name = "6000 Series 3x3 AGN",
524 .fw_name_pre = IWL6000_FW_PRE,
525 .ucode_api_max = IWL6000_UCODE_API_MAX,
526 .ucode_api_min = IWL6000_UCODE_API_MIN,
527 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
529 .eeprom_size = OTP_LOW_IMAGE_SIZE,
530 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
531 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
532 .num_of_queues = IWL50_NUM_QUEUES,
533 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
534 .mod_params = &iwl50_mod_params,
535 .valid_tx_ant = ANT_ABC,
536 .valid_rx_ant = ANT_ABC,
540 .pa_type = IWL_PA_SYSTEM,
541 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
542 .shadow_ram_support = true,
543 .ht_greenfield_support = true,
544 .led_compensation = 51,
545 .use_rts_for_ht = true, /* use rts/cts protection */
546 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
547 .supports_idle = true,
548 .adv_thermal_throttle = true,
549 .support_ct_kill_exit = true,
550 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
551 .chain_noise_scale = 1000,
552 .monitor_recover_period = IWL_MONITORING_PERIOD,