iwlwifi: move iwl_dump_fh to agn
[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 53#define IWL6000_UCODE_API_MAX 4
62cb3c6a 54#define IWL6050_UCODE_API_MAX 5
670245ed 55#define IWL6000G2_UCODE_API_MAX 5
58a39090 56#define IWL130_UCODE_API_MAX 5
e1228374
JS
57
58/* Lowest firmware API version supported */
44246421
WYG
59#define IWL6000_UCODE_API_MIN 4
60#define IWL6050_UCODE_API_MIN 4
4b3e8062 61#define IWL6000G2_UCODE_API_MIN 4
58a39090 62#define IWL130_UCODE_API_MIN 5
e1228374
JS
63
64#define IWL6000_FW_PRE "iwlwifi-6000-"
65#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
66#define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
67
68#define IWL6050_FW_PRE "iwlwifi-6050-"
69#define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
70#define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
71
95b13014
SZ
72#define IWL6000G2A_FW_PRE "iwlwifi-6000g2a-"
73#define _IWL6000G2A_MODULE_FIRMWARE(api) IWL6000G2A_FW_PRE #api ".ucode"
74#define IWL6000G2A_MODULE_FIRMWARE(api) _IWL6000G2A_MODULE_FIRMWARE(api)
75
1808972f
SZ
76#define IWL6000G2B_FW_PRE "iwlwifi-6000g2b-"
77#define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode"
78#define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api)
79
58a39090 80#define IWL130_FW_PRE "iwlwifi-130-"
d9d9a519
WYG
81#define _IWL130_MODULE_FIRMWARE(api) IWL130_FW_PRE #api ".ucode"
82#define IWL130_MODULE_FIRMWARE(api) _IWL130_MODULE_FIRMWARE(api)
4b3e8062 83
672639de
WYG
84static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
85{
86 /* want Celsius */
87 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
88 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
89}
90
6b5ce501 91static void iwl6050_additional_nic_config(struct iwl_priv *priv)
d5755939 92{
6b5ce501
SZ
93 /* Indicate calibration version to uCode. */
94 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
d5755939
AK
95 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
96 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
97}
98
02796d77
SZ
99static void iwl6050g2_additional_nic_config(struct iwl_priv *priv)
100{
101 /* Indicate calibration version to uCode. */
102 if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
103 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
104 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
105 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
106 CSR_GP_DRIVER_REG_BIT_6050_1x2);
107}
108
65b7998a
WYG
109/* NIC configuration for 6000 series */
110static void iwl6000_nic_config(struct iwl_priv *priv)
111{
9371d4ed
WYG
112 u16 radio_cfg;
113
114 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
115
116 /* write radio config values to register */
117 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
118 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
119 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
120 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
121 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
122
123 /* set CSR_HW_CONFIG_REG for uCode use */
124 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
125 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
126 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
65b7998a
WYG
127
128 /* no locking required for register write */
740e7f51 129 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
65b7998a
WYG
130 /* 2x2 IPA phy type */
131 iwl_write32(priv, CSR_GP_DRIVER_REG,
132 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
133 }
6b5ce501
SZ
134 /* do additional nic configuration if needed */
135 if (priv->cfg->ops->nic &&
136 priv->cfg->ops->nic->additional_nic_config) {
137 priv->cfg->ops->nic->additional_nic_config(priv);
138 }
65b7998a
WYG
139}
140
f3a2a424
WYG
141static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
142 .min_nrg_cck = 97,
143 .max_nrg_cck = 0, /* not used, set to 0 */
144 .auto_corr_min_ofdm = 80,
145 .auto_corr_min_ofdm_mrc = 128,
146 .auto_corr_min_ofdm_x1 = 105,
147 .auto_corr_min_ofdm_mrc_x1 = 192,
148
149 .auto_corr_max_ofdm = 145,
150 .auto_corr_max_ofdm_mrc = 232,
2494f63c 151 .auto_corr_max_ofdm_x1 = 110,
f3a2a424
WYG
152 .auto_corr_max_ofdm_mrc_x1 = 232,
153
154 .auto_corr_min_cck = 125,
155 .auto_corr_max_cck = 175,
156 .auto_corr_min_cck_mrc = 160,
157 .auto_corr_max_cck_mrc = 310,
158 .nrg_th_cck = 97,
159 .nrg_th_ofdm = 100,
55036d66
WYG
160
161 .barker_corr_th_min = 190,
162 .barker_corr_th_min_mrc = 390,
163 .nrg_th_cca = 62,
f3a2a424
WYG
164};
165
166static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
167{
88804e2b 168 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
19e6cda0 169 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
7cb1b088 170 priv->cfg->base_params->num_of_queues =
88804e2b 171 priv->cfg->mod_params->num_of_queues;
f3a2a424 172
7cb1b088 173 priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
f3a2a424
WYG
174 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
175 priv->hw_params.scd_bc_tbls_size =
7cb1b088 176 priv->cfg->base_params->num_of_queues *
19e6cda0 177 sizeof(struct iwlagn_scd_bc_tbl);
f3a2a424 178 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
bf3c7fdd 179 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
a194e324 180 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
f3a2a424
WYG
181
182 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
183 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
184
185 priv->hw_params.max_bsm_size = 0;
186 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
187 BIT(IEEE80211_BAND_5GHZ);
188 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
189
190 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
191 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
192 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
193 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
194
195 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
196 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
197
198 /* Set initial sensitivity parameters */
199 /* Set initial calibration set */
200 priv->hw_params.sens = &iwl6000_sensitivity;
e517736a
WYG
201 priv->hw_params.calib_init_cfg =
202 BIT(IWL_CALIB_XTAL) |
203 BIT(IWL_CALIB_LO) |
204 BIT(IWL_CALIB_TX_IQ) |
205 BIT(IWL_CALIB_BASE_BAND);
178d1596 206 if (priv->cfg->need_dc_calib)
6d6a1afd 207 priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
07f33f92 208
a0ee74cf
WYG
209 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
210
f3a2a424
WYG
211 return 0;
212}
213
79d07325
WYG
214static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
215 struct ieee80211_channel_switch *ch_switch)
4a56e965 216{
246ed355
JB
217 /*
218 * MULTI-FIXME
219 * See iwl_mac_channel_switch.
220 */
221 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
4a56e965
WYG
222 struct iwl6000_channel_switch_cmd cmd;
223 const struct iwl_channel_info *ch_info;
79d07325
WYG
224 u32 switch_time_in_usec, ucode_switch_time;
225 u16 ch;
226 u32 tsf_low;
227 u8 switch_count;
246ed355 228 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
8bd413e6 229 struct ieee80211_vif *vif = ctx->vif;
4a56e965
WYG
230 struct iwl_host_cmd hcmd = {
231 .id = REPLY_CHANNEL_SWITCH,
232 .len = sizeof(cmd),
3839f7ce 233 .flags = CMD_SYNC,
4a56e965
WYG
234 .data = &cmd,
235 };
236
4a56e965 237 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
81e95430 238 ch = ch_switch->channel->hw_value;
79d07325 239 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
246ed355 240 ctx->active.channel, ch);
79d07325 241 cmd.channel = cpu_to_le16(ch);
246ed355
JB
242 cmd.rxon_flags = ctx->staging.flags;
243 cmd.rxon_filter_flags = ctx->staging.filter_flags;
79d07325
WYG
244 switch_count = ch_switch->count;
245 tsf_low = ch_switch->timestamp & 0x0ffffffff;
246 /*
247 * calculate the ucode channel switch time
248 * adding TSF as one of the factor for when to switch
249 */
250 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
251 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
252 beacon_interval)) {
253 switch_count -= (priv->ucode_beacon_time -
254 tsf_low) / beacon_interval;
255 } else
256 switch_count = 0;
257 }
258 if (switch_count <= 1)
259 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
260 else {
261 switch_time_in_usec =
262 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
263 ucode_switch_time = iwl_usecs_to_beacons(priv,
264 switch_time_in_usec,
265 beacon_interval);
266 cmd.switch_time = iwl_add_beacon_time(priv,
267 priv->ucode_beacon_time,
268 ucode_switch_time,
269 beacon_interval);
270 }
271 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
272 cmd.switch_time);
273 ch_info = iwl_get_channel_info(priv, priv->band, ch);
4a56e965
WYG
274 if (ch_info)
275 cmd.expect_beacon = is_channel_radar(ch_info);
276 else {
277 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
246ed355 278 ctx->active.channel, ch);
4a56e965
WYG
279 return -EFAULT;
280 }
79d07325 281 priv->switch_rxon.channel = cmd.channel;
0924e519 282 priv->switch_rxon.switch_in_progress = true;
4a56e965
WYG
283
284 return iwl_send_cmd_sync(priv, &hcmd);
285}
286
672639de 287static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 288 .set_hw_params = iwl6000_hw_set_hw_params,
b305a080
WYG
289 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
290 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
291 .txq_set_sched = iwlagn_txq_set_sched,
292 .txq_agg_enable = iwlagn_txq_agg_enable,
293 .txq_agg_disable = iwlagn_txq_agg_disable,
672639de
WYG
294 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
295 .txq_free_tfd = iwl_hw_txq_free_tfd,
296 .txq_init = iwl_hw_tx_queue_init,
e04ed0a5
WYG
297 .rx_handler_setup = iwlagn_rx_handler_setup,
298 .setup_deferred_work = iwlagn_setup_deferred_work,
299 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
81b8176e 300 .load_ucode = iwlagn_load_ucode,
b7a79404
RC
301 .dump_nic_event_log = iwl_dump_nic_event_log,
302 .dump_nic_error_log = iwl_dump_nic_error_log,
696bdee3 303 .dump_csr = iwl_dump_csr,
1b3eb823 304 .dump_fh = iwl_dump_fh,
741a6266
WYG
305 .init_alive_start = iwlagn_init_alive_start,
306 .alive_notify = iwlagn_alive_notify,
e04ed0a5 307 .send_tx_power = iwlagn_send_tx_power,
672639de 308 .update_chain_flags = iwl_update_chain_flags,
4a56e965 309 .set_channel_switch = iwl6000_hw_channel_switch,
672639de 310 .apm_ops = {
fadb3582 311 .init = iwl_apm_init,
d68b603c 312 .stop = iwl_apm_stop,
65b7998a 313 .config = iwl6000_nic_config,
672639de
WYG
314 .set_pwr_src = iwl_set_pwr_src,
315 },
316 .eeprom_ops = {
317 .regulatory_bands = {
e04ed0a5
WYG
318 EEPROM_REG_BAND_1_CHANNELS,
319 EEPROM_REG_BAND_2_CHANNELS,
320 EEPROM_REG_BAND_3_CHANNELS,
321 EEPROM_REG_BAND_4_CHANNELS,
322 EEPROM_REG_BAND_5_CHANNELS,
f2fa1b01 323 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
e04ed0a5 324 EEPROM_REG_BAND_52_HT40_CHANNELS
672639de 325 },
672639de
WYG
326 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
327 .release_semaphore = iwlcore_eeprom_release_semaphore,
e04ed0a5
WYG
328 .calib_version = iwlagn_eeprom_calib_version,
329 .query_addr = iwlagn_eeprom_query_addr,
ab9fd1bf 330 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
672639de
WYG
331 },
332 .post_associate = iwl_post_associate,
333 .isr = iwl_isr_ict,
334 .config_ap = iwl_config_ap,
335 .temp_ops = {
e04ed0a5 336 .temperature = iwlagn_temperature,
672639de
WYG
337 .set_ct_kill = iwl6000_set_ct_threshold,
338 },
1fa61b2e 339 .manage_ibss_station = iwlagn_manage_ibss_station,
a194e324 340 .update_bcast_stations = iwl_update_bcast_stations,
b8c76267
AK
341 .debugfs_ops = {
342 .rx_stats_read = iwl_ucode_rx_stats_read,
343 .tx_stats_read = iwl_ucode_tx_stats_read,
344 .general_stats_read = iwl_ucode_general_stats_read,
ffb7d896 345 .bt_stats_read = iwl_ucode_bt_stats_read,
54a9aa65 346 .reply_tx_error = iwl_reply_tx_error_read,
b8c76267 347 },
b74e31a9 348 .recover_from_tx_stall = iwl_bg_monitor_recover,
fa8f130c
WYG
349 .check_plcp_health = iwl_good_plcp_health,
350 .check_ack_health = iwl_good_ack_health,
716c74b0 351 .txfifo_flush = iwlagn_txfifo_flush,
65550636 352 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
0975cc8f
WYG
353 .tt_ops = {
354 .lower_power_detection = iwl_tt_is_low_power_state,
355 .tt_power_mode = iwl_tt_current_power_mode,
356 .ct_kill_check = iwl_check_for_ct_kill,
357 }
672639de
WYG
358};
359
9e4afc21
JB
360static struct iwl_lib_ops iwl6000g2b_lib = {
361 .set_hw_params = iwl6000_hw_set_hw_params,
362 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
363 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
364 .txq_set_sched = iwlagn_txq_set_sched,
365 .txq_agg_enable = iwlagn_txq_agg_enable,
366 .txq_agg_disable = iwlagn_txq_agg_disable,
367 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
368 .txq_free_tfd = iwl_hw_txq_free_tfd,
369 .txq_init = iwl_hw_tx_queue_init,
b6e116e8
WYG
370 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
371 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
372 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
9e4afc21
JB
373 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
374 .load_ucode = iwlagn_load_ucode,
375 .dump_nic_event_log = iwl_dump_nic_event_log,
376 .dump_nic_error_log = iwl_dump_nic_error_log,
377 .dump_csr = iwl_dump_csr,
378 .dump_fh = iwl_dump_fh,
379 .init_alive_start = iwlagn_init_alive_start,
380 .alive_notify = iwlagn_alive_notify,
381 .send_tx_power = iwlagn_send_tx_power,
382 .update_chain_flags = iwl_update_chain_flags,
383 .set_channel_switch = iwl6000_hw_channel_switch,
384 .apm_ops = {
385 .init = iwl_apm_init,
386 .stop = iwl_apm_stop,
387 .config = iwl6000_nic_config,
388 .set_pwr_src = iwl_set_pwr_src,
389 },
390 .eeprom_ops = {
391 .regulatory_bands = {
392 EEPROM_REG_BAND_1_CHANNELS,
393 EEPROM_REG_BAND_2_CHANNELS,
394 EEPROM_REG_BAND_3_CHANNELS,
395 EEPROM_REG_BAND_4_CHANNELS,
396 EEPROM_REG_BAND_5_CHANNELS,
397 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
398 EEPROM_REG_BAND_52_HT40_CHANNELS
399 },
9e4afc21
JB
400 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
401 .release_semaphore = iwlcore_eeprom_release_semaphore,
402 .calib_version = iwlagn_eeprom_calib_version,
403 .query_addr = iwlagn_eeprom_query_addr,
404 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
405 },
406 .post_associate = iwl_post_associate,
407 .isr = iwl_isr_ict,
408 .config_ap = iwl_config_ap,
409 .temp_ops = {
410 .temperature = iwlagn_temperature,
411 .set_ct_kill = iwl6000_set_ct_threshold,
9e4afc21
JB
412 },
413 .manage_ibss_station = iwlagn_manage_ibss_station,
a194e324 414 .update_bcast_stations = iwl_update_bcast_stations,
9e4afc21
JB
415 .debugfs_ops = {
416 .rx_stats_read = iwl_ucode_rx_stats_read,
417 .tx_stats_read = iwl_ucode_tx_stats_read,
418 .general_stats_read = iwl_ucode_general_stats_read,
419 .bt_stats_read = iwl_ucode_bt_stats_read,
54a9aa65 420 .reply_tx_error = iwl_reply_tx_error_read,
9e4afc21
JB
421 },
422 .recover_from_tx_stall = iwl_bg_monitor_recover,
423 .check_plcp_health = iwl_good_plcp_health,
424 .check_ack_health = iwl_good_ack_health,
425 .txfifo_flush = iwlagn_txfifo_flush,
426 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
427 .tt_ops = {
428 .lower_power_detection = iwl_tt_is_low_power_state,
429 .tt_power_mode = iwl_tt_current_power_mode,
430 .ct_kill_check = iwl_check_for_ct_kill,
431 }
432};
433
6b5ce501
SZ
434static struct iwl_nic_ops iwl6050_nic_ops = {
435 .additional_nic_config = &iwl6050_additional_nic_config,
436};
437
02796d77
SZ
438static struct iwl_nic_ops iwl6050g2_nic_ops = {
439 .additional_nic_config = &iwl6050g2_additional_nic_config,
440};
441
45d5d805 442static const struct iwl_ops iwl6000_ops = {
672639de 443 .lib = &iwl6000_lib,
7dc77dba
WYG
444 .hcmd = &iwlagn_hcmd,
445 .utils = &iwlagn_hcmd_utils,
e932a609 446 .led = &iwlagn_led_ops,
29f35c14
JS
447};
448
6b5ce501
SZ
449static const struct iwl_ops iwl6050_ops = {
450 .lib = &iwl6000_lib,
451 .hcmd = &iwlagn_hcmd,
452 .utils = &iwlagn_hcmd_utils,
453 .led = &iwlagn_led_ops,
454 .nic = &iwl6050_nic_ops,
455};
456
02796d77
SZ
457static const struct iwl_ops iwl6050g2_ops = {
458 .lib = &iwl6000_lib,
459 .hcmd = &iwlagn_hcmd,
460 .utils = &iwlagn_hcmd_utils,
461 .led = &iwlagn_led_ops,
462 .nic = &iwl6050g2_nic_ops,
463};
464
1808972f 465static const struct iwl_ops iwl6000g2b_ops = {
9e4afc21 466 .lib = &iwl6000g2b_lib,
b6e116e8 467 .hcmd = &iwlagn_bt_hcmd,
1808972f
SZ
468 .utils = &iwlagn_hcmd_utils,
469 .led = &iwlagn_led_ops,
470};
471
7cb1b088 472static struct iwl_base_params iwl6000_base_params = {
0b5af201 473 .eeprom_size = OTP_LOW_IMAGE_SIZE,
0b5af201
JS
474 .num_of_queues = IWLAGN_NUM_QUEUES,
475 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
0b5af201
JS
476 .pll_cfg_val = 0,
477 .set_l0s = true,
478 .use_bsm = false,
0b5af201
JS
479 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
480 .shadow_ram_support = true,
0b5af201 481 .led_compensation = 51,
0b5af201
JS
482 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
483 .supports_idle = true,
484 .adv_thermal_throttle = true,
485 .support_ct_kill_exit = true,
486 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
487 .chain_noise_scale = 1000,
ce60659a 488 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
95b13014 489 .max_event_log_size = 512,
6e5c800e 490 .ucode_tracing = true,
65d1f896
WYG
491 .sensitivity_calib_by_driver = true,
492 .chain_noise_calib_by_driver = true,
0b5af201
JS
493};
494
7cb1b088 495static struct iwl_base_params iwl6050_base_params = {
1808972f 496 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1808972f
SZ
497 .num_of_queues = IWLAGN_NUM_QUEUES,
498 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1808972f
SZ
499 .pll_cfg_val = 0,
500 .set_l0s = true,
501 .use_bsm = false,
7cb1b088 502 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
1808972f
SZ
503 .shadow_ram_support = true,
504 .led_compensation = 51,
505 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
506 .supports_idle = true,
507 .adv_thermal_throttle = true,
508 .support_ct_kill_exit = true,
509 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
7cb1b088 510 .chain_noise_scale = 1500,
ce60659a 511 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
7cb1b088
WYG
512 .max_event_log_size = 1024,
513 .ucode_tracing = true,
679db794
WYG
514 .sensitivity_calib_by_driver = true,
515 .chain_noise_calib_by_driver = true,
7cb1b088
WYG
516};
517
518static struct iwl_ht_params iwl6000_ht_params = {
519 .ht_greenfield_support = true,
520 .use_rts_for_aggregation = true, /* use rts/cts protection */
521};
522
523static struct iwl_bt_params iwl6000_bt_params = {
524 .bt_statistics = true,
525 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
526 .advanced_bt_coexist = true,
527 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
528 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
529};
530
531struct iwl_cfg iwl6000g2a_2agn_cfg = {
532 .name = "6000 Series 2x2 AGN Gen2a",
533 .fw_name_pre = IWL6000G2A_FW_PRE,
534 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
535 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
536 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
537 .valid_tx_ant = ANT_AB,
538 .valid_rx_ant = ANT_AB,
539 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
540 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
541 .ops = &iwl6000_ops,
542 .mod_params = &iwlagn_mod_params,
543 .base_params = &iwl6000_base_params,
544 .ht_params = &iwl6000_ht_params,
545 .need_dc_calib = true,
546};
547
548struct iwl_cfg iwl6000g2a_2abg_cfg = {
549 .name = "6000 Series 2x2 ABG Gen2a",
550 .fw_name_pre = IWL6000G2A_FW_PRE,
551 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
552 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
553 .sku = IWL_SKU_A|IWL_SKU_G,
554 .valid_tx_ant = ANT_AB,
555 .valid_rx_ant = ANT_AB,
556 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
557 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
558 .ops = &iwl6000_ops,
559 .mod_params = &iwlagn_mod_params,
560 .base_params = &iwl6000_base_params,
178d1596 561 .need_dc_calib = true,
1808972f
SZ
562};
563
564struct iwl_cfg iwl6000g2a_2bg_cfg = {
565 .name = "6000 Series 2x2 BG Gen2a",
566 .fw_name_pre = IWL6000G2A_FW_PRE,
567 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
568 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
569 .sku = IWL_SKU_G,
7cb1b088
WYG
570 .valid_tx_ant = ANT_AB,
571 .valid_rx_ant = ANT_AB,
1808972f
SZ
572 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
573 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 574 .ops = &iwl6000_ops,
1808972f 575 .mod_params = &iwlagn_mod_params,
7cb1b088 576 .base_params = &iwl6000_base_params,
178d1596 577 .need_dc_calib = true,
1808972f
SZ
578};
579
580struct iwl_cfg iwl6000g2b_2agn_cfg = {
581 .name = "6000 Series 2x2 AGN Gen2b",
582 .fw_name_pre = IWL6000G2B_FW_PRE,
583 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
584 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
585 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
586 .valid_tx_ant = ANT_AB,
587 .valid_rx_ant = ANT_AB,
1808972f
SZ
588 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
589 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 590 .ops = &iwl6000g2b_ops,
1808972f 591 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
592 .base_params = &iwl6000_base_params,
593 .bt_params = &iwl6000_bt_params,
594 .ht_params = &iwl6000_ht_params,
178d1596 595 .need_dc_calib = true,
670245ed
JB
596 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
597 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
1808972f
SZ
598};
599
600struct iwl_cfg iwl6000g2b_2abg_cfg = {
601 .name = "6000 Series 2x2 ABG Gen2b",
602 .fw_name_pre = IWL6000G2B_FW_PRE,
603 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
604 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
605 .sku = IWL_SKU_A|IWL_SKU_G,
7cb1b088
WYG
606 .valid_tx_ant = ANT_AB,
607 .valid_rx_ant = ANT_AB,
1808972f
SZ
608 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
609 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 610 .ops = &iwl6000g2b_ops,
1808972f 611 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
612 .base_params = &iwl6000_base_params,
613 .bt_params = &iwl6000_bt_params,
178d1596 614 .need_dc_calib = true,
670245ed
JB
615 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
616 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
1808972f
SZ
617};
618
9f6e1baf
SZ
619struct iwl_cfg iwl6000g2b_2bgn_cfg = {
620 .name = "6000 Series 2x2 BGN Gen2b",
621 .fw_name_pre = IWL6000G2B_FW_PRE,
622 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
623 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
624 .sku = IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
625 .valid_tx_ant = ANT_AB,
626 .valid_rx_ant = ANT_AB,
9f6e1baf
SZ
627 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
628 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 629 .ops = &iwl6000g2b_ops,
9f6e1baf 630 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
631 .base_params = &iwl6000_base_params,
632 .bt_params = &iwl6000_bt_params,
633 .ht_params = &iwl6000_ht_params,
178d1596 634 .need_dc_calib = true,
670245ed
JB
635 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
636 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
9f6e1baf
SZ
637};
638
1808972f
SZ
639struct iwl_cfg iwl6000g2b_2bg_cfg = {
640 .name = "6000 Series 2x2 BG 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,
7cb1b088
WYG
645 .valid_tx_ant = ANT_AB,
646 .valid_rx_ant = ANT_AB,
1808972f
SZ
647 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
648 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 649 .ops = &iwl6000g2b_ops,
1808972f 650 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
651 .base_params = &iwl6000_base_params,
652 .bt_params = &iwl6000_bt_params,
178d1596 653 .need_dc_calib = true,
670245ed
JB
654 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
655 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
1808972f
SZ
656};
657
658struct iwl_cfg iwl6000g2b_bgn_cfg = {
659 .name = "6000 Series 1x2 BGN Gen2b",
660 .fw_name_pre = IWL6000G2B_FW_PRE,
661 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
662 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
663 .sku = IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
664 .valid_tx_ant = ANT_A,
665 .valid_rx_ant = ANT_AB,
1808972f
SZ
666 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
667 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 668 .ops = &iwl6000g2b_ops,
1808972f 669 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
670 .base_params = &iwl6000_base_params,
671 .bt_params = &iwl6000_bt_params,
672 .ht_params = &iwl6000_ht_params,
178d1596 673 .need_dc_calib = true,
670245ed
JB
674 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
675 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
1808972f
SZ
676};
677
678struct iwl_cfg iwl6000g2b_bg_cfg = {
679 .name = "6000 Series 1x2 BG Gen2b",
680 .fw_name_pre = IWL6000G2B_FW_PRE,
681 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
682 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
683 .sku = IWL_SKU_G,
7cb1b088
WYG
684 .valid_tx_ant = ANT_A,
685 .valid_rx_ant = ANT_AB,
1808972f
SZ
686 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
687 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
7cb1b088 688 .ops = &iwl6000g2b_ops,
1808972f 689 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
690 .base_params = &iwl6000_base_params,
691 .bt_params = &iwl6000_bt_params,
178d1596 692 .need_dc_calib = true,
670245ed
JB
693 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
694 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
1808972f
SZ
695};
696
95b13014
SZ
697/*
698 * "i": Internal configuration, use internal Power Amplifier
699 */
65b7998a 700struct iwl_cfg iwl6000i_2agn_cfg = {
c11362c0 701 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
65b7998a
WYG
702 .fw_name_pre = IWL6000_FW_PRE,
703 .ucode_api_max = IWL6000_UCODE_API_MAX,
704 .ucode_api_min = IWL6000_UCODE_API_MIN,
705 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
706 .valid_tx_ant = ANT_BC,
707 .valid_rx_ant = ANT_BC,
1f4b9665 708 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 709 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
7cb1b088 710 .ops = &iwl6000_ops,
348ee7cd 711 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
712 .base_params = &iwl6000_base_params,
713 .ht_params = &iwl6000_ht_params,
65b7998a 714 .pa_type = IWL_PA_INTERNAL,
e1228374
JS
715};
716
5953a62e 717struct iwl_cfg iwl6000i_2abg_cfg = {
c11362c0 718 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
5953a62e
WYG
719 .fw_name_pre = IWL6000_FW_PRE,
720 .ucode_api_max = IWL6000_UCODE_API_MAX,
721 .ucode_api_min = IWL6000_UCODE_API_MIN,
722 .sku = IWL_SKU_A|IWL_SKU_G,
7cb1b088
WYG
723 .valid_tx_ant = ANT_BC,
724 .valid_rx_ant = ANT_BC,
5953a62e 725 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 726 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
7cb1b088 727 .ops = &iwl6000_ops,
348ee7cd 728 .mod_params = &iwlagn_mod_params,
7cb1b088 729 .base_params = &iwl6000_base_params,
5953a62e 730 .pa_type = IWL_PA_INTERNAL,
5953a62e
WYG
731};
732
733struct iwl_cfg iwl6000i_2bg_cfg = {
c11362c0 734 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
5953a62e
WYG
735 .fw_name_pre = IWL6000_FW_PRE,
736 .ucode_api_max = IWL6000_UCODE_API_MAX,
737 .ucode_api_min = IWL6000_UCODE_API_MIN,
738 .sku = IWL_SKU_G,
7cb1b088
WYG
739 .valid_tx_ant = ANT_BC,
740 .valid_rx_ant = ANT_BC,
5953a62e 741 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 742 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
7cb1b088 743 .ops = &iwl6000_ops,
348ee7cd 744 .mod_params = &iwlagn_mod_params,
7cb1b088 745 .base_params = &iwl6000_base_params,
5953a62e 746 .pa_type = IWL_PA_INTERNAL,
5953a62e
WYG
747};
748
e1228374 749struct iwl_cfg iwl6050_2agn_cfg = {
c11362c0 750 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
e1228374
JS
751 .fw_name_pre = IWL6050_FW_PRE,
752 .ucode_api_max = IWL6050_UCODE_API_MAX,
753 .ucode_api_min = IWL6050_UCODE_API_MIN,
754 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
755 .valid_tx_ant = ANT_AB,
756 .valid_rx_ant = ANT_AB,
757 .ops = &iwl6000_ops,
32b7e244 758 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 759 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
348ee7cd 760 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
761 .base_params = &iwl6050_base_params,
762 .ht_params = &iwl6000_ht_params,
03264339
SZ
763 .need_dc_calib = true,
764};
765
766struct iwl_cfg iwl6050g2_bgn_cfg = {
767 .name = "6050 Series 1x2 BGN Gen2",
768 .fw_name_pre = IWL6050_FW_PRE,
769 .ucode_api_max = IWL6050_UCODE_API_MAX,
770 .ucode_api_min = IWL6050_UCODE_API_MIN,
771 .sku = IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
772 .valid_tx_ant = ANT_A,
773 .valid_rx_ant = ANT_AB,
03264339
SZ
774 .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
775 .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
7cb1b088 776 .ops = &iwl6050g2_ops,
03264339 777 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
778 .base_params = &iwl6050_base_params,
779 .ht_params = &iwl6000_ht_params,
178d1596 780 .need_dc_calib = true,
e1228374
JS
781};
782
5953a62e 783struct iwl_cfg iwl6050_2abg_cfg = {
c11362c0 784 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
5953a62e
WYG
785 .fw_name_pre = IWL6050_FW_PRE,
786 .ucode_api_max = IWL6050_UCODE_API_MAX,
787 .ucode_api_min = IWL6050_UCODE_API_MIN,
788 .sku = IWL_SKU_A|IWL_SKU_G,
7cb1b088
WYG
789 .valid_tx_ant = ANT_AB,
790 .valid_rx_ant = ANT_AB,
32b7e244 791 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
00e70590 792 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
7cb1b088 793 .ops = &iwl6050_ops,
348ee7cd 794 .mod_params = &iwlagn_mod_params,
7cb1b088 795 .base_params = &iwl6050_base_params,
178d1596 796 .need_dc_calib = true,
5953a62e
WYG
797};
798
e1228374 799struct iwl_cfg iwl6000_3agn_cfg = {
c11362c0 800 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
e1228374
JS
801 .fw_name_pre = IWL6000_FW_PRE,
802 .ucode_api_max = IWL6000_UCODE_API_MAX,
803 .ucode_api_min = IWL6000_UCODE_API_MIN,
804 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
7cb1b088
WYG
805 .valid_tx_ant = ANT_ABC,
806 .valid_rx_ant = ANT_ABC,
1f4b9665 807 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 808 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
7cb1b088 809 .ops = &iwl6000_ops,
348ee7cd 810 .mod_params = &iwlagn_mod_params,
7cb1b088
WYG
811 .base_params = &iwl6000_base_params,
812 .ht_params = &iwl6000_ht_params,
813 .need_dc_calib = true,
e1228374
JS
814};
815
58a39090
WYG
816struct iwl_cfg iwl130_bgn_cfg = {
817 .name = "Intel(R) 130 Series 1x1 BGN",
818 .fw_name_pre = IWL6000G2B_FW_PRE,
819 .ucode_api_max = IWL130_UCODE_API_MAX,
820 .ucode_api_min = IWL130_UCODE_API_MIN,
821 .sku = IWL_SKU_G|IWL_SKU_N,
822 .valid_tx_ant = ANT_A,
823 .valid_rx_ant = ANT_A,
824 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
825 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
826 .ops = &iwl6000g2b_ops,
827 .mod_params = &iwlagn_mod_params,
828 .base_params = &iwl6000_base_params,
829 .bt_params = &iwl6000_bt_params,
830 .ht_params = &iwl6000_ht_params,
831 .need_dc_calib = true,
832 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
833 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
834};
835
836struct iwl_cfg iwl130_bg_cfg = {
837 .name = "Intel(R) 130 Series 1x2 BG",
838 .fw_name_pre = IWL6000G2B_FW_PRE,
839 .ucode_api_max = IWL130_UCODE_API_MAX,
840 .ucode_api_min = IWL130_UCODE_API_MIN,
841 .sku = IWL_SKU_G,
842 .valid_tx_ant = ANT_A,
843 .valid_rx_ant = ANT_A,
844 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
845 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
846 .ops = &iwl6000g2b_ops,
847 .mod_params = &iwlagn_mod_params,
848 .base_params = &iwl6000_base_params,
849 .bt_params = &iwl6000_bt_params,
850 .need_dc_calib = true,
851 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
852 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
853};
854
e1228374
JS
855MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
856MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
95b13014 857MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
1808972f 858MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
cf9768d6 859MODULE_FIRMWARE(IWL130_MODULE_FIRMWARE(IWL130_UCODE_API_MAX));
This page took 0.34818 seconds and 5 git commands to generate.