]> bbs.cooldavid.org Git - net-next-2.6.git/blame - drivers/net/wireless/iwlwifi/iwl-6000.c
iwlwifi: add FIFO usage for 5000
[net-next-2.6.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
CommitLineData
e1228374
JS
1/******************************************************************************
2 *
3 * Copyright(c) 2008-2009 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-helpers.h"
46#include "iwl-5000-hw.h"
f3a2a424 47#include "iwl-6000-hw.h"
e932a609 48#include "iwl-agn-led.h"
e1228374
JS
49
50/* Highest firmware API version supported */
fcbaf8b0
WYG
51#define IWL6000_UCODE_API_MAX 4
52#define IWL6050_UCODE_API_MAX 4
e1228374
JS
53
54/* Lowest firmware API version supported */
44246421
WYG
55#define IWL6000_UCODE_API_MIN 4
56#define IWL6050_UCODE_API_MIN 4
e1228374
JS
57
58#define IWL6000_FW_PRE "iwlwifi-6000-"
59#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
60#define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
61
62#define IWL6050_FW_PRE "iwlwifi-6050-"
63#define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
64#define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
65
672639de
WYG
66static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
67{
68 /* want Celsius */
69 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
70 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
71}
72
65b7998a
WYG
73/* NIC configuration for 6000 series */
74static void iwl6000_nic_config(struct iwl_priv *priv)
75{
9371d4ed
WYG
76 u16 radio_cfg;
77
78 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
79
80 /* write radio config values to register */
81 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
82 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
83 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
84 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
85 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
86
87 /* set CSR_HW_CONFIG_REG for uCode use */
88 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
89 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
90 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
65b7998a
WYG
91
92 /* no locking required for register write */
93 if (priv->cfg->pa_type == IWL_PA_HYBRID) {
94 /* 2x2 hybrid phy type */
95 iwl_write32(priv, CSR_GP_DRIVER_REG,
96 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
97 } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
98 /* 2x2 IPA phy type */
99 iwl_write32(priv, CSR_GP_DRIVER_REG,
100 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
101 }
102 /* else do nothing, uCode configured */
103}
104
f3a2a424
WYG
105static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
106 .min_nrg_cck = 97,
107 .max_nrg_cck = 0, /* not used, set to 0 */
108 .auto_corr_min_ofdm = 80,
109 .auto_corr_min_ofdm_mrc = 128,
110 .auto_corr_min_ofdm_x1 = 105,
111 .auto_corr_min_ofdm_mrc_x1 = 192,
112
113 .auto_corr_max_ofdm = 145,
114 .auto_corr_max_ofdm_mrc = 232,
115 .auto_corr_max_ofdm_x1 = 145,
116 .auto_corr_max_ofdm_mrc_x1 = 232,
117
118 .auto_corr_min_cck = 125,
119 .auto_corr_max_cck = 175,
120 .auto_corr_min_cck_mrc = 160,
121 .auto_corr_max_cck_mrc = 310,
122 .nrg_th_cck = 97,
123 .nrg_th_ofdm = 100,
55036d66
WYG
124
125 .barker_corr_th_min = 190,
126 .barker_corr_th_min_mrc = 390,
127 .nrg_th_cca = 62,
f3a2a424
WYG
128};
129
130static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
131{
88804e2b
WYG
132 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
133 priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
134 priv->cfg->num_of_queues =
135 priv->cfg->mod_params->num_of_queues;
f3a2a424 136
88804e2b 137 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
f3a2a424
WYG
138 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
139 priv->hw_params.scd_bc_tbls_size =
88804e2b
WYG
140 priv->cfg->num_of_queues *
141 sizeof(struct iwl5000_scd_bc_tbl);
f3a2a424
WYG
142 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
143 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
144 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
145
146 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
147 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
148
149 priv->hw_params.max_bsm_size = 0;
150 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
151 BIT(IEEE80211_BAND_5GHZ);
152 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
153
154 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
155 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
156 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
157 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
158
159 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
160 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
161
162 /* Set initial sensitivity parameters */
163 /* Set initial calibration set */
164 priv->hw_params.sens = &iwl6000_sensitivity;
165 priv->hw_params.calib_init_cfg =
166 BIT(IWL_CALIB_XTAL) |
167 BIT(IWL_CALIB_LO) |
168 BIT(IWL_CALIB_TX_IQ) |
f3a2a424 169 BIT(IWL_CALIB_BASE_BAND);
f3a2a424
WYG
170 return 0;
171}
172
4a56e965
WYG
173static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
174{
175 struct iwl6000_channel_switch_cmd cmd;
176 const struct iwl_channel_info *ch_info;
177 struct iwl_host_cmd hcmd = {
178 .id = REPLY_CHANNEL_SWITCH,
179 .len = sizeof(cmd),
180 .flags = CMD_SIZE_HUGE,
181 .data = &cmd,
182 };
183
184 IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
185 priv->active_rxon.channel, channel);
186
187 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
188 cmd.channel = cpu_to_le16(channel);
189 cmd.rxon_flags = priv->active_rxon.flags;
190 cmd.rxon_filter_flags = priv->active_rxon.filter_flags;
191 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
192 ch_info = iwl_get_channel_info(priv, priv->band, channel);
193 if (ch_info)
194 cmd.expect_beacon = is_channel_radar(ch_info);
195 else {
196 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
197 priv->active_rxon.channel, channel);
198 return -EFAULT;
199 }
200
201 return iwl_send_cmd_sync(priv, &hcmd);
202}
203
672639de 204static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 205 .set_hw_params = iwl6000_hw_set_hw_params,
672639de
WYG
206 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
207 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
208 .txq_set_sched = iwl5000_txq_set_sched,
209 .txq_agg_enable = iwl5000_txq_agg_enable,
210 .txq_agg_disable = iwl5000_txq_agg_disable,
211 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
212 .txq_free_tfd = iwl_hw_txq_free_tfd,
213 .txq_init = iwl_hw_tx_queue_init,
214 .rx_handler_setup = iwl5000_rx_handler_setup,
215 .setup_deferred_work = iwl5000_setup_deferred_work,
216 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
217 .load_ucode = iwl5000_load_ucode,
b7a79404
RC
218 .dump_nic_event_log = iwl_dump_nic_event_log,
219 .dump_nic_error_log = iwl_dump_nic_error_log,
672639de
WYG
220 .init_alive_start = iwl5000_init_alive_start,
221 .alive_notify = iwl5000_alive_notify,
222 .send_tx_power = iwl5000_send_tx_power,
223 .update_chain_flags = iwl_update_chain_flags,
4a56e965 224 .set_channel_switch = iwl6000_hw_channel_switch,
672639de 225 .apm_ops = {
fadb3582 226 .init = iwl_apm_init,
d68b603c 227 .stop = iwl_apm_stop,
65b7998a 228 .config = iwl6000_nic_config,
672639de
WYG
229 .set_pwr_src = iwl_set_pwr_src,
230 },
231 .eeprom_ops = {
232 .regulatory_bands = {
233 EEPROM_5000_REG_BAND_1_CHANNELS,
234 EEPROM_5000_REG_BAND_2_CHANNELS,
235 EEPROM_5000_REG_BAND_3_CHANNELS,
236 EEPROM_5000_REG_BAND_4_CHANNELS,
237 EEPROM_5000_REG_BAND_5_CHANNELS,
7aafef1c
WYG
238 EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
239 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
672639de
WYG
240 },
241 .verify_signature = iwlcore_eeprom_verify_signature,
242 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
243 .release_semaphore = iwlcore_eeprom_release_semaphore,
244 .calib_version = iwl5000_eeprom_calib_version,
245 .query_addr = iwl5000_eeprom_query_addr,
ab9fd1bf 246 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
672639de
WYG
247 },
248 .post_associate = iwl_post_associate,
249 .isr = iwl_isr_ict,
250 .config_ap = iwl_config_ap,
251 .temp_ops = {
252 .temperature = iwl5000_temperature,
253 .set_ct_kill = iwl6000_set_ct_threshold,
254 },
255};
256
29f35c14 257static struct iwl_ops iwl6000_ops = {
cc0f555d 258 .ucode = &iwl5000_ucode,
672639de 259 .lib = &iwl6000_lib,
29f35c14 260 .hcmd = &iwl5000_hcmd,
d8c07e7a 261 .utils = &iwl5000_hcmd_utils,
e932a609 262 .led = &iwlagn_led_ops,
29f35c14
JS
263};
264
9444b188
WYG
265static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
266 .get_hcmd_size = iwl5000_get_hcmd_size,
267 .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
268 .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
269 .calc_rssi = iwl5000_calc_rssi,
270};
271
272static struct iwl_ops iwl6050_ops = {
273 .ucode = &iwl5000_ucode,
274 .lib = &iwl6000_lib,
275 .hcmd = &iwl5000_hcmd,
276 .utils = &iwl6050_hcmd_utils,
277 .led = &iwlagn_led_ops,
278};
279
e1228374 280
65b7998a
WYG
281/*
282 * "h": Hybrid configuration, use both internal and external Power Amplifier
283 */
284struct iwl_cfg iwl6000h_2agn_cfg = {
e1228374
JS
285 .name = "6000 Series 2x2 AGN",
286 .fw_name_pre = IWL6000_FW_PRE,
287 .ucode_api_max = IWL6000_UCODE_API_MAX,
288 .ucode_api_min = IWL6000_UCODE_API_MIN,
289 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 290 .ops = &iwl6000_ops,
415e4993 291 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 292 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
e1228374 293 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
294 .num_of_queues = IWL50_NUM_QUEUES,
295 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 296 .mod_params = &iwl50_mod_params,
542cc793
JS
297 .valid_tx_ant = ANT_AB,
298 .valid_rx_ant = ANT_AB,
fadb3582 299 .pll_cfg_val = 0,
a6c5c731 300 .set_l0s = true,
fadb3582 301 .use_bsm = false,
65b7998a 302 .pa_type = IWL_PA_HYBRID,
415e4993
WYG
303 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
304 .shadow_ram_support = true,
b261793d 305 .ht_greenfield_support = true,
f2d0d0e2 306 .led_compensation = 51,
47eef9bd 307 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 308 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 309 .supports_idle = true,
6047b4f9 310 .adv_thermal_throttle = true,
480e8407 311 .support_ct_kill_exit = true,
65b7998a
WYG
312};
313
5953a62e
WYG
314struct iwl_cfg iwl6000h_2abg_cfg = {
315 .name = "6000 Series 2x2 ABG",
316 .fw_name_pre = IWL6000_FW_PRE,
317 .ucode_api_max = IWL6000_UCODE_API_MAX,
318 .ucode_api_min = IWL6000_UCODE_API_MIN,
319 .sku = IWL_SKU_A|IWL_SKU_G,
320 .ops = &iwl6000_ops,
321 .eeprom_size = OTP_LOW_IMAGE_SIZE,
322 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
323 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
324 .num_of_queues = IWL50_NUM_QUEUES,
325 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
326 .mod_params = &iwl50_mod_params,
327 .valid_tx_ant = ANT_AB,
328 .valid_rx_ant = ANT_AB,
fadb3582 329 .pll_cfg_val = 0,
a6c5c731 330 .set_l0s = true,
fadb3582 331 .use_bsm = false,
5953a62e
WYG
332 .pa_type = IWL_PA_HYBRID,
333 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
334 .shadow_ram_support = true,
335 .ht_greenfield_support = true,
336 .led_compensation = 51,
d8c07e7a 337 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 338 .supports_idle = true,
6047b4f9 339 .adv_thermal_throttle = true,
480e8407 340 .support_ct_kill_exit = true,
5953a62e
WYG
341};
342
343struct iwl_cfg iwl6000h_2bg_cfg = {
344 .name = "6000 Series 2x2 BG",
345 .fw_name_pre = IWL6000_FW_PRE,
346 .ucode_api_max = IWL6000_UCODE_API_MAX,
347 .ucode_api_min = IWL6000_UCODE_API_MIN,
348 .sku = IWL_SKU_G,
349 .ops = &iwl6000_ops,
350 .eeprom_size = OTP_LOW_IMAGE_SIZE,
351 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
352 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
353 .num_of_queues = IWL50_NUM_QUEUES,
354 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
355 .mod_params = &iwl50_mod_params,
356 .valid_tx_ant = ANT_AB,
357 .valid_rx_ant = ANT_AB,
fadb3582 358 .pll_cfg_val = 0,
a6c5c731 359 .set_l0s = true,
fadb3582 360 .use_bsm = false,
5953a62e
WYG
361 .pa_type = IWL_PA_HYBRID,
362 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
363 .shadow_ram_support = true,
364 .ht_greenfield_support = true,
365 .led_compensation = 51,
d8c07e7a 366 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 367 .supports_idle = true,
6047b4f9 368 .adv_thermal_throttle = true,
480e8407 369 .support_ct_kill_exit = true,
5953a62e
WYG
370};
371
65b7998a
WYG
372/*
373 * "i": Internal configuration, use internal Power Amplifier
374 */
375struct iwl_cfg iwl6000i_2agn_cfg = {
376 .name = "6000 Series 2x2 AGN",
377 .fw_name_pre = IWL6000_FW_PRE,
378 .ucode_api_max = IWL6000_UCODE_API_MAX,
379 .ucode_api_min = IWL6000_UCODE_API_MIN,
380 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
381 .ops = &iwl6000_ops,
415e4993 382 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 383 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
65b7998a 384 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
385 .num_of_queues = IWL50_NUM_QUEUES,
386 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
65b7998a
WYG
387 .mod_params = &iwl50_mod_params,
388 .valid_tx_ant = ANT_BC,
389 .valid_rx_ant = ANT_BC,
fadb3582 390 .pll_cfg_val = 0,
a6c5c731 391 .set_l0s = true,
fadb3582 392 .use_bsm = false,
65b7998a 393 .pa_type = IWL_PA_INTERNAL,
415e4993
WYG
394 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
395 .shadow_ram_support = true,
b261793d 396 .ht_greenfield_support = true,
f2d0d0e2 397 .led_compensation = 51,
47eef9bd 398 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 399 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 400 .supports_idle = true,
6047b4f9 401 .adv_thermal_throttle = true,
480e8407 402 .support_ct_kill_exit = true,
e1228374
JS
403};
404
5953a62e
WYG
405struct iwl_cfg iwl6000i_2abg_cfg = {
406 .name = "6000 Series 2x2 ABG",
407 .fw_name_pre = IWL6000_FW_PRE,
408 .ucode_api_max = IWL6000_UCODE_API_MAX,
409 .ucode_api_min = IWL6000_UCODE_API_MIN,
410 .sku = IWL_SKU_A|IWL_SKU_G,
411 .ops = &iwl6000_ops,
412 .eeprom_size = OTP_LOW_IMAGE_SIZE,
413 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
414 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
415 .num_of_queues = IWL50_NUM_QUEUES,
416 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
417 .mod_params = &iwl50_mod_params,
418 .valid_tx_ant = ANT_BC,
419 .valid_rx_ant = ANT_BC,
fadb3582 420 .pll_cfg_val = 0,
a6c5c731 421 .set_l0s = true,
fadb3582 422 .use_bsm = false,
5953a62e
WYG
423 .pa_type = IWL_PA_INTERNAL,
424 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
425 .shadow_ram_support = true,
426 .ht_greenfield_support = true,
427 .led_compensation = 51,
d8c07e7a 428 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 429 .supports_idle = true,
6047b4f9 430 .adv_thermal_throttle = true,
480e8407 431 .support_ct_kill_exit = true,
5953a62e
WYG
432};
433
434struct iwl_cfg iwl6000i_2bg_cfg = {
435 .name = "6000 Series 2x2 BG",
436 .fw_name_pre = IWL6000_FW_PRE,
437 .ucode_api_max = IWL6000_UCODE_API_MAX,
438 .ucode_api_min = IWL6000_UCODE_API_MIN,
439 .sku = IWL_SKU_G,
440 .ops = &iwl6000_ops,
441 .eeprom_size = OTP_LOW_IMAGE_SIZE,
442 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
443 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
444 .num_of_queues = IWL50_NUM_QUEUES,
445 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
446 .mod_params = &iwl50_mod_params,
447 .valid_tx_ant = ANT_BC,
448 .valid_rx_ant = ANT_BC,
fadb3582 449 .pll_cfg_val = 0,
a6c5c731 450 .set_l0s = true,
fadb3582 451 .use_bsm = false,
5953a62e
WYG
452 .pa_type = IWL_PA_INTERNAL,
453 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
454 .shadow_ram_support = true,
455 .ht_greenfield_support = true,
456 .led_compensation = 51,
d8c07e7a 457 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 458 .supports_idle = true,
6047b4f9 459 .adv_thermal_throttle = true,
480e8407 460 .support_ct_kill_exit = true,
5953a62e
WYG
461};
462
e1228374
JS
463struct iwl_cfg iwl6050_2agn_cfg = {
464 .name = "6050 Series 2x2 AGN",
465 .fw_name_pre = IWL6050_FW_PRE,
466 .ucode_api_max = IWL6050_UCODE_API_MAX,
467 .ucode_api_min = IWL6050_UCODE_API_MIN,
468 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
9444b188 469 .ops = &iwl6050_ops,
415e4993 470 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 471 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
e1228374 472 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
473 .num_of_queues = IWL50_NUM_QUEUES,
474 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 475 .mod_params = &iwl50_mod_params,
542cc793
JS
476 .valid_tx_ant = ANT_AB,
477 .valid_rx_ant = ANT_AB,
fadb3582 478 .pll_cfg_val = 0,
a6c5c731 479 .set_l0s = true,
fadb3582 480 .use_bsm = false,
65b7998a 481 .pa_type = IWL_PA_SYSTEM,
3ab312a8 482 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
415e4993 483 .shadow_ram_support = true,
b261793d 484 .ht_greenfield_support = true,
f2d0d0e2 485 .led_compensation = 51,
47eef9bd 486 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 487 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 488 .supports_idle = true,
6047b4f9 489 .adv_thermal_throttle = true,
480e8407 490 .support_ct_kill_exit = true,
3f3e0376 491 .support_sm_ps = true,
1933ac4d 492 .support_wimax_coexist = true,
e1228374
JS
493};
494
5953a62e
WYG
495struct iwl_cfg iwl6050_2abg_cfg = {
496 .name = "6050 Series 2x2 ABG",
497 .fw_name_pre = IWL6050_FW_PRE,
498 .ucode_api_max = IWL6050_UCODE_API_MAX,
499 .ucode_api_min = IWL6050_UCODE_API_MIN,
500 .sku = IWL_SKU_A|IWL_SKU_G,
9444b188 501 .ops = &iwl6050_ops,
5953a62e 502 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 503 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
5953a62e 504 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
505 .num_of_queues = IWL50_NUM_QUEUES,
506 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
5953a62e
WYG
507 .mod_params = &iwl50_mod_params,
508 .valid_tx_ant = ANT_AB,
509 .valid_rx_ant = ANT_AB,
fadb3582 510 .pll_cfg_val = 0,
a6c5c731 511 .set_l0s = true,
fadb3582 512 .use_bsm = false,
5953a62e 513 .pa_type = IWL_PA_SYSTEM,
3ab312a8 514 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
5953a62e
WYG
515 .shadow_ram_support = true,
516 .ht_greenfield_support = true,
517 .led_compensation = 51,
d8c07e7a 518 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 519 .supports_idle = true,
6047b4f9 520 .adv_thermal_throttle = true,
480e8407 521 .support_ct_kill_exit = true,
1933ac4d 522 .support_wimax_coexist = true,
5953a62e
WYG
523};
524
e1228374
JS
525struct iwl_cfg iwl6000_3agn_cfg = {
526 .name = "6000 Series 3x3 AGN",
527 .fw_name_pre = IWL6000_FW_PRE,
528 .ucode_api_max = IWL6000_UCODE_API_MAX,
529 .ucode_api_min = IWL6000_UCODE_API_MIN,
530 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
29f35c14 531 .ops = &iwl6000_ops,
415e4993 532 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1f4b9665 533 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
e1228374 534 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
535 .num_of_queues = IWL50_NUM_QUEUES,
536 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 537 .mod_params = &iwl50_mod_params,
c0bac76a
JS
538 .valid_tx_ant = ANT_ABC,
539 .valid_rx_ant = ANT_ABC,
fadb3582 540 .pll_cfg_val = 0,
a6c5c731 541 .set_l0s = true,
fadb3582 542 .use_bsm = false,
65b7998a 543 .pa_type = IWL_PA_SYSTEM,
415e4993
WYG
544 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
545 .shadow_ram_support = true,
b261793d 546 .ht_greenfield_support = true,
f2d0d0e2 547 .led_compensation = 51,
47eef9bd 548 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 549 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 550 .supports_idle = true,
6047b4f9 551 .adv_thermal_throttle = true,
480e8407 552 .support_ct_kill_exit = true,
e1228374
JS
553};
554
555struct iwl_cfg iwl6050_3agn_cfg = {
556 .name = "6050 Series 3x3 AGN",
557 .fw_name_pre = IWL6050_FW_PRE,
558 .ucode_api_max = IWL6050_UCODE_API_MAX,
559 .ucode_api_min = IWL6050_UCODE_API_MIN,
560 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
9444b188 561 .ops = &iwl6050_ops,
415e4993 562 .eeprom_size = OTP_LOW_IMAGE_SIZE,
32b7e244 563 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
e1228374 564 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
88804e2b
WYG
565 .num_of_queues = IWL50_NUM_QUEUES,
566 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
e1228374 567 .mod_params = &iwl50_mod_params,
c0bac76a
JS
568 .valid_tx_ant = ANT_ABC,
569 .valid_rx_ant = ANT_ABC,
fadb3582 570 .pll_cfg_val = 0,
a6c5c731 571 .set_l0s = true,
fadb3582 572 .use_bsm = false,
65b7998a 573 .pa_type = IWL_PA_SYSTEM,
3ab312a8 574 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
415e4993 575 .shadow_ram_support = true,
b261793d 576 .ht_greenfield_support = true,
f2d0d0e2 577 .led_compensation = 51,
47eef9bd 578 .use_rts_for_ht = true, /* use rts/cts protection */
d8c07e7a 579 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
78f5fb7f 580 .supports_idle = true,
6047b4f9 581 .adv_thermal_throttle = true,
480e8407 582 .support_ct_kill_exit = true,
3f3e0376 583 .support_sm_ps = true,
1933ac4d 584 .support_wimax_coexist = true,
e1228374
JS
585};
586
587MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
588MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));