blob: fc9344b873ba1e788df71a0419dff9a78400c649 [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
Reinette Chatre1f447802010-01-15 13:43:41 -08003 * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved.
Jay Sternberge1228372009-01-19 15:30:34 -08004 *
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"
Johannes Berga1175122010-01-21 06:21:10 -080045#include "iwl-agn.h"
Jay Sternberge1228372009-01-19 15:30:34 -080046#include "iwl-helpers.h"
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -070047#include "iwl-agn-hw.h"
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -070048#include "iwl-6000-hw.h"
Johannes Berge932a602009-10-02 13:44:03 -070049#include "iwl-agn-led.h"
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -070050#include "iwl-agn-debugfs.h"
Jay Sternberge1228372009-01-19 15:30:34 -080051
52/* Highest firmware API version supported */
Wey-Yi Guyfcbaf8b2009-08-21 13:34:18 -070053#define IWL6000_UCODE_API_MAX 4
54#define IWL6050_UCODE_API_MAX 4
Johannes Berg670245e2010-08-23 07:56:55 -070055#define IWL6000G2_UCODE_API_MAX 5
Jay Sternberge1228372009-01-19 15:30:34 -080056
57/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070058#define IWL6000_UCODE_API_MIN 4
59#define IWL6050_UCODE_API_MIN 4
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070060#define IWL6000G2_UCODE_API_MIN 4
Jay Sternberge1228372009-01-19 15:30:34 -080061
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
Shanyu Zhao95b13012010-04-21 11:46:33 -070070#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
Shanyu Zhao18089722010-05-06 10:15:21 -070074#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
Shanyu Zhao4b3e8062010-04-07 18:06:36 -070078
Wey-Yi Guy672639d2009-07-24 11:13:01 -070079static 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
Abhijeet Kolekard5755932010-02-18 22:03:05 -080086/* Indicate calibration version to uCode. */
Wey-Yi Guy178d1592010-06-15 16:14:53 -070087static void iwl6000_set_calib_version(struct iwl_priv *priv)
Abhijeet Kolekard5755932010-02-18 22:03:05 -080088{
Wey-Yi Guy178d1592010-06-15 16:14:53 -070089 if (priv->cfg->need_dc_calib &&
90 (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6))
Abhijeet Kolekard5755932010-02-18 22:03:05 -080091 iwl_set_bit(priv, CSR_GP_DRIVER_REG,
92 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
93}
94
Wey-Yi Guy65b79982009-07-31 14:28:07 -070095/* NIC configuration for 6000 series */
96static void iwl6000_nic_config(struct iwl_priv *priv)
97{
Wey-Yi Guy9371d4e2009-09-11 10:38:10 -070098 u16 radio_cfg;
99
100 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
101
102 /* write radio config values to register */
103 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
104 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
105 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
106 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
107 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
108
109 /* set CSR_HW_CONFIG_REG for uCode use */
110 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
111 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
112 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700113
114 /* no locking required for register write */
Wey-Yi Guy740e7f52009-11-06 14:52:55 -0800115 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700116 /* 2x2 IPA phy type */
117 iwl_write32(priv, CSR_GP_DRIVER_REG,
118 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
119 }
120 /* else do nothing, uCode configured */
Abhijeet Kolekard5755932010-02-18 22:03:05 -0800121 if (priv->cfg->ops->lib->temp_ops.set_calib_version)
122 priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700123}
124
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700125static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
126 .min_nrg_cck = 97,
127 .max_nrg_cck = 0, /* not used, set to 0 */
128 .auto_corr_min_ofdm = 80,
129 .auto_corr_min_ofdm_mrc = 128,
130 .auto_corr_min_ofdm_x1 = 105,
131 .auto_corr_min_ofdm_mrc_x1 = 192,
132
133 .auto_corr_max_ofdm = 145,
134 .auto_corr_max_ofdm_mrc = 232,
Wey-Yi Guy2494f632010-01-20 12:22:52 -0800135 .auto_corr_max_ofdm_x1 = 110,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700136 .auto_corr_max_ofdm_mrc_x1 = 232,
137
138 .auto_corr_min_cck = 125,
139 .auto_corr_max_cck = 175,
140 .auto_corr_min_cck_mrc = 160,
141 .auto_corr_max_cck_mrc = 310,
142 .nrg_th_cck = 97,
143 .nrg_th_ofdm = 100,
Wey-Yi Guy55036d62009-10-09 13:20:24 -0700144
145 .barker_corr_th_min = 190,
146 .barker_corr_th_min_mrc = 390,
147 .nrg_th_cca = 62,
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700148};
149
150static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
151{
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700152 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700153 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700154 priv->cfg->num_of_queues =
155 priv->cfg->mod_params->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700156
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700157 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700158 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
159 priv->hw_params.scd_bc_tbls_size =
Wey-Yi Guy88804e22009-10-09 13:20:28 -0700160 priv->cfg->num_of_queues *
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700161 sizeof(struct iwlagn_scd_bc_tbl);
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700162 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
Wey-Yi Guybf3c7fd2010-06-24 14:08:05 -0700163 priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
164 priv->hw_params.bcast_sta_id = IWLAGN_BROADCAST_ID;
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700165
166 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
167 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
168
169 priv->hw_params.max_bsm_size = 0;
170 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
171 BIT(IEEE80211_BAND_5GHZ);
172 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
173
174 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
175 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
176 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
177 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
178
179 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
180 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
181
182 /* Set initial sensitivity parameters */
183 /* Set initial calibration set */
184 priv->hw_params.sens = &iwl6000_sensitivity;
Wey-Yi Guye517736a2010-04-19 18:49:40 -0700185 priv->hw_params.calib_init_cfg =
186 BIT(IWL_CALIB_XTAL) |
187 BIT(IWL_CALIB_LO) |
188 BIT(IWL_CALIB_TX_IQ) |
189 BIT(IWL_CALIB_BASE_BAND);
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700190 if (priv->cfg->need_dc_calib)
191 priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
Abhijeet Kolekar07f33f92010-01-22 14:22:47 -0800192
Wey-Yi Guya0ee74c2010-05-06 08:54:10 -0700193 priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
194
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700195 return 0;
196}
197
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700198static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
199 struct ieee80211_channel_switch *ch_switch)
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700200{
201 struct iwl6000_channel_switch_cmd cmd;
202 const struct iwl_channel_info *ch_info;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700203 u32 switch_time_in_usec, ucode_switch_time;
204 u16 ch;
205 u32 tsf_low;
206 u8 switch_count;
207 u16 beacon_interval = le16_to_cpu(priv->rxon_timing.beacon_interval);
208 struct ieee80211_vif *vif = priv->vif;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700209 struct iwl_host_cmd hcmd = {
210 .id = REPLY_CHANNEL_SWITCH,
211 .len = sizeof(cmd),
Wey-Yi Guy3839f7c2010-05-18 09:18:06 -0700212 .flags = CMD_SYNC,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700213 .data = &cmd,
214 };
215
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700216 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
Shanyu Zhao81e95432010-07-28 13:40:27 -0700217 ch = ch_switch->channel->hw_value;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700218 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
219 priv->active_rxon.channel, ch);
220 cmd.channel = cpu_to_le16(ch);
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800221 cmd.rxon_flags = priv->staging_rxon.flags;
222 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700223 switch_count = ch_switch->count;
224 tsf_low = ch_switch->timestamp & 0x0ffffffff;
225 /*
226 * calculate the ucode channel switch time
227 * adding TSF as one of the factor for when to switch
228 */
229 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
230 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
231 beacon_interval)) {
232 switch_count -= (priv->ucode_beacon_time -
233 tsf_low) / beacon_interval;
234 } else
235 switch_count = 0;
236 }
237 if (switch_count <= 1)
238 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
239 else {
240 switch_time_in_usec =
241 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
242 ucode_switch_time = iwl_usecs_to_beacons(priv,
243 switch_time_in_usec,
244 beacon_interval);
245 cmd.switch_time = iwl_add_beacon_time(priv,
246 priv->ucode_beacon_time,
247 ucode_switch_time,
248 beacon_interval);
249 }
250 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
251 cmd.switch_time);
252 ch_info = iwl_get_channel_info(priv, priv->band, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700253 if (ch_info)
254 cmd.expect_beacon = is_channel_radar(ch_info);
255 else {
256 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700257 priv->active_rxon.channel, ch);
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700258 return -EFAULT;
259 }
Wey-Yi Guy79d07322010-05-06 08:54:11 -0700260 priv->switch_rxon.channel = cmd.channel;
Wey-Yi Guy0924e5192009-11-06 14:52:54 -0800261 priv->switch_rxon.switch_in_progress = true;
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700262
263 return iwl_send_cmd_sync(priv, &hcmd);
264}
265
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700266static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700267 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guyb305a082010-03-16 17:41:22 -0700268 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
269 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
270 .txq_set_sched = iwlagn_txq_set_sched,
271 .txq_agg_enable = iwlagn_txq_agg_enable,
272 .txq_agg_disable = iwlagn_txq_agg_disable,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700273 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
274 .txq_free_tfd = iwl_hw_txq_free_tfd,
275 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700276 .rx_handler_setup = iwlagn_rx_handler_setup,
277 .setup_deferred_work = iwlagn_setup_deferred_work,
278 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
Wey-Yi Guy81b81762010-03-16 10:23:30 -0700279 .load_ucode = iwlagn_load_ucode,
Reinette Chatreb7a79402009-09-25 14:24:23 -0700280 .dump_nic_event_log = iwl_dump_nic_event_log,
281 .dump_nic_error_log = iwl_dump_nic_error_log,
Wey-Yi Guy696bdee2009-12-10 14:37:25 -0800282 .dump_csr = iwl_dump_csr,
Wey-Yi Guy1b3eb822010-01-15 13:43:39 -0800283 .dump_fh = iwl_dump_fh,
Wey-Yi Guy741a6262010-03-16 12:37:24 -0700284 .init_alive_start = iwlagn_init_alive_start,
285 .alive_notify = iwlagn_alive_notify,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700286 .send_tx_power = iwlagn_send_tx_power,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700287 .update_chain_flags = iwl_update_chain_flags,
Wey-Yi Guy4a56e962009-10-23 13:42:29 -0700288 .set_channel_switch = iwl6000_hw_channel_switch,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700289 .apm_ops = {
Ben Cahillfadb3582009-10-23 13:42:21 -0700290 .init = iwl_apm_init,
Abhijeet Kolekard68b6032009-10-02 13:44:04 -0700291 .stop = iwl_apm_stop,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700292 .config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700293 .set_pwr_src = iwl_set_pwr_src,
294 },
295 .eeprom_ops = {
296 .regulatory_bands = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700297 EEPROM_REG_BAND_1_CHANNELS,
298 EEPROM_REG_BAND_2_CHANNELS,
299 EEPROM_REG_BAND_3_CHANNELS,
300 EEPROM_REG_BAND_4_CHANNELS,
301 EEPROM_REG_BAND_5_CHANNELS,
Shanyu Zhaof2fa1b02010-04-07 18:37:52 -0700302 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700303 EEPROM_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700304 },
305 .verify_signature = iwlcore_eeprom_verify_signature,
306 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
307 .release_semaphore = iwlcore_eeprom_release_semaphore,
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700308 .calib_version = iwlagn_eeprom_calib_version,
309 .query_addr = iwlagn_eeprom_query_addr,
Wey-Yi Guyab9fd1b2009-08-21 13:34:23 -0700310 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700311 },
312 .post_associate = iwl_post_associate,
313 .isr = iwl_isr_ict,
314 .config_ap = iwl_config_ap,
315 .temp_ops = {
Wey-Yi Guye04ed0a2010-03-16 17:47:58 -0700316 .temperature = iwlagn_temperature,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700317 .set_ct_kill = iwl6000_set_ct_threshold,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700318 .set_calib_version = iwl6000_set_calib_version,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700319 },
Johannes Berg1fa61b22010-04-28 08:44:52 -0700320 .manage_ibss_station = iwlagn_manage_ibss_station,
Daniel Halperin278c2f62010-06-14 13:10:29 -0700321 .update_bcast_station = iwl_update_bcast_station,
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -0700322 .debugfs_ops = {
323 .rx_stats_read = iwl_ucode_rx_stats_read,
324 .tx_stats_read = iwl_ucode_tx_stats_read,
325 .general_stats_read = iwl_ucode_general_stats_read,
Wey-Yi Guyffb7d892010-07-14 08:09:55 -0700326 .bt_stats_read = iwl_ucode_bt_stats_read,
Abhijeet Kolekarb8c76262010-04-08 15:29:07 -0700327 },
Wey-Yi Guyb74e31a2010-03-01 17:23:50 -0800328 .recover_from_tx_stall = iwl_bg_monitor_recover,
Wey-Yi Guyfa8f130c2010-03-05 14:22:46 -0800329 .check_plcp_health = iwl_good_plcp_health,
330 .check_ack_health = iwl_good_ack_health,
Wey-Yi Guy716c74b2010-06-24 13:22:36 -0700331 .txfifo_flush = iwlagn_txfifo_flush,
Wey-Yi Guy65550632010-06-24 13:18:35 -0700332 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
Wey-Yi Guy0975cc82010-07-31 08:34:07 -0700333 .tt_ops = {
334 .lower_power_detection = iwl_tt_is_low_power_state,
335 .tt_power_mode = iwl_tt_current_power_mode,
336 .ct_kill_check = iwl_check_for_ct_kill,
337 }
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700338};
339
Johannes Berg9e4afc22010-08-23 07:56:57 -0700340static struct iwl_lib_ops iwl6000g2b_lib = {
341 .set_hw_params = iwl6000_hw_set_hw_params,
342 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
343 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
344 .txq_set_sched = iwlagn_txq_set_sched,
345 .txq_agg_enable = iwlagn_txq_agg_enable,
346 .txq_agg_disable = iwlagn_txq_agg_disable,
347 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
348 .txq_free_tfd = iwl_hw_txq_free_tfd,
349 .txq_init = iwl_hw_tx_queue_init,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700350 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
351 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
352 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
Johannes Berg9e4afc22010-08-23 07:56:57 -0700353 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
354 .load_ucode = iwlagn_load_ucode,
355 .dump_nic_event_log = iwl_dump_nic_event_log,
356 .dump_nic_error_log = iwl_dump_nic_error_log,
357 .dump_csr = iwl_dump_csr,
358 .dump_fh = iwl_dump_fh,
359 .init_alive_start = iwlagn_init_alive_start,
360 .alive_notify = iwlagn_alive_notify,
361 .send_tx_power = iwlagn_send_tx_power,
362 .update_chain_flags = iwl_update_chain_flags,
363 .set_channel_switch = iwl6000_hw_channel_switch,
364 .apm_ops = {
365 .init = iwl_apm_init,
366 .stop = iwl_apm_stop,
367 .config = iwl6000_nic_config,
368 .set_pwr_src = iwl_set_pwr_src,
369 },
370 .eeprom_ops = {
371 .regulatory_bands = {
372 EEPROM_REG_BAND_1_CHANNELS,
373 EEPROM_REG_BAND_2_CHANNELS,
374 EEPROM_REG_BAND_3_CHANNELS,
375 EEPROM_REG_BAND_4_CHANNELS,
376 EEPROM_REG_BAND_5_CHANNELS,
377 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
378 EEPROM_REG_BAND_52_HT40_CHANNELS
379 },
380 .verify_signature = iwlcore_eeprom_verify_signature,
381 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
382 .release_semaphore = iwlcore_eeprom_release_semaphore,
383 .calib_version = iwlagn_eeprom_calib_version,
384 .query_addr = iwlagn_eeprom_query_addr,
385 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
386 },
387 .post_associate = iwl_post_associate,
388 .isr = iwl_isr_ict,
389 .config_ap = iwl_config_ap,
390 .temp_ops = {
391 .temperature = iwlagn_temperature,
392 .set_ct_kill = iwl6000_set_ct_threshold,
393 .set_calib_version = iwl6000_set_calib_version,
394 },
395 .manage_ibss_station = iwlagn_manage_ibss_station,
396 .update_bcast_station = iwl_update_bcast_station,
397 .debugfs_ops = {
398 .rx_stats_read = iwl_ucode_rx_stats_read,
399 .tx_stats_read = iwl_ucode_tx_stats_read,
400 .general_stats_read = iwl_ucode_general_stats_read,
401 .bt_stats_read = iwl_ucode_bt_stats_read,
402 },
403 .recover_from_tx_stall = iwl_bg_monitor_recover,
404 .check_plcp_health = iwl_good_plcp_health,
405 .check_ack_health = iwl_good_ack_health,
406 .txfifo_flush = iwlagn_txfifo_flush,
407 .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
408 .tt_ops = {
409 .lower_power_detection = iwl_tt_is_low_power_state,
410 .tt_power_mode = iwl_tt_current_power_mode,
411 .ct_kill_check = iwl_check_for_ct_kill,
412 }
413};
414
Emese Revfy45d5d802009-12-14 00:59:53 +0100415static const struct iwl_ops iwl6000_ops = {
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700416 .lib = &iwl6000_lib,
Wey-Yi Guy7dc77db2010-03-16 10:23:31 -0700417 .hcmd = &iwlagn_hcmd,
418 .utils = &iwlagn_hcmd_utils,
Johannes Berge932a602009-10-02 13:44:03 -0700419 .led = &iwlagn_led_ops,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800420};
421
Shanyu Zhao18089722010-05-06 10:15:21 -0700422static const struct iwl_ops iwl6000g2b_ops = {
Johannes Berg9e4afc22010-08-23 07:56:57 -0700423 .lib = &iwl6000g2b_lib,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700424 .hcmd = &iwlagn_bt_hcmd,
Shanyu Zhao18089722010-05-06 10:15:21 -0700425 .utils = &iwlagn_hcmd_utils,
426 .led = &iwlagn_led_ops,
427};
428
Shanyu Zhao95b13012010-04-21 11:46:33 -0700429struct iwl_cfg iwl6000g2a_2agn_cfg = {
430 .name = "6000 Series 2x2 AGN Gen2a",
431 .fw_name_pre = IWL6000G2A_FW_PRE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700432 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
433 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700434 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
435 .ops = &iwl6000_ops,
436 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Shanyu Zhao4b3e8062010-04-07 18:06:36 -0700437 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
438 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700439 .num_of_queues = IWLAGN_NUM_QUEUES,
440 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
441 .mod_params = &iwlagn_mod_params,
442 .valid_tx_ant = ANT_AB,
443 .valid_rx_ant = ANT_AB,
444 .pll_cfg_val = 0,
445 .set_l0s = true,
446 .use_bsm = false,
Wey-Yi Guy33e6f812010-04-09 09:36:11 -0700447 .pa_type = IWL_PA_SYSTEM,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700448 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
449 .shadow_ram_support = true,
450 .ht_greenfield_support = true,
451 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700452 .use_rts_for_aggregation = true, /* use rts/cts protection */
Jay Sternberg0b5af202010-03-17 16:16:12 -0700453 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
454 .supports_idle = true,
455 .adv_thermal_throttle = true,
456 .support_ct_kill_exit = true,
457 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
458 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700459 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao95b13012010-04-21 11:46:33 -0700460 .max_event_log_size = 512,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700461 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700462 .sensitivity_calib_by_driver = true,
463 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700464 .need_dc_calib = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700465};
466
Shanyu Zhao18089722010-05-06 10:15:21 -0700467struct iwl_cfg iwl6000g2a_2abg_cfg = {
468 .name = "6000 Series 2x2 ABG Gen2a",
469 .fw_name_pre = IWL6000G2A_FW_PRE,
470 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
471 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
472 .sku = IWL_SKU_A|IWL_SKU_G,
473 .ops = &iwl6000_ops,
474 .eeprom_size = OTP_LOW_IMAGE_SIZE,
475 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
476 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
477 .num_of_queues = IWLAGN_NUM_QUEUES,
478 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
479 .mod_params = &iwlagn_mod_params,
480 .valid_tx_ant = ANT_AB,
481 .valid_rx_ant = ANT_AB,
482 .pll_cfg_val = 0,
483 .set_l0s = true,
484 .use_bsm = false,
485 .pa_type = IWL_PA_SYSTEM,
486 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
487 .shadow_ram_support = true,
488 .led_compensation = 51,
489 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
490 .supports_idle = true,
491 .adv_thermal_throttle = true,
492 .support_ct_kill_exit = true,
493 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
494 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700495 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700496 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700497 .sensitivity_calib_by_driver = true,
498 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700499 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700500};
501
502struct iwl_cfg iwl6000g2a_2bg_cfg = {
503 .name = "6000 Series 2x2 BG Gen2a",
504 .fw_name_pre = IWL6000G2A_FW_PRE,
505 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
506 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
507 .sku = IWL_SKU_G,
508 .ops = &iwl6000_ops,
509 .eeprom_size = OTP_LOW_IMAGE_SIZE,
510 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
511 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
512 .num_of_queues = IWLAGN_NUM_QUEUES,
513 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
514 .mod_params = &iwlagn_mod_params,
515 .valid_tx_ant = ANT_AB,
516 .valid_rx_ant = ANT_AB,
517 .pll_cfg_val = 0,
518 .set_l0s = true,
519 .use_bsm = false,
520 .pa_type = IWL_PA_SYSTEM,
521 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
522 .shadow_ram_support = true,
523 .led_compensation = 51,
524 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
525 .supports_idle = true,
526 .adv_thermal_throttle = true,
527 .support_ct_kill_exit = true,
528 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
529 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700530 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700531 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700532 .sensitivity_calib_by_driver = true,
533 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700534 .need_dc_calib = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700535};
536
537struct iwl_cfg iwl6000g2b_2agn_cfg = {
538 .name = "6000 Series 2x2 AGN Gen2b",
539 .fw_name_pre = IWL6000G2B_FW_PRE,
540 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
541 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
542 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
543 .ops = &iwl6000g2b_ops,
544 .eeprom_size = OTP_LOW_IMAGE_SIZE,
545 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
546 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
547 .num_of_queues = IWLAGN_NUM_QUEUES,
548 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
549 .mod_params = &iwlagn_mod_params,
550 .valid_tx_ant = ANT_AB,
551 .valid_rx_ant = ANT_AB,
552 .pll_cfg_val = 0,
553 .set_l0s = true,
554 .use_bsm = false,
555 .pa_type = IWL_PA_SYSTEM,
556 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
557 .shadow_ram_support = true,
558 .ht_greenfield_support = true,
559 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700560 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao18089722010-05-06 10:15:21 -0700561 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
562 .supports_idle = true,
563 .adv_thermal_throttle = true,
564 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700565 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700566 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700567 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700568 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700569 .sensitivity_calib_by_driver = true,
570 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700571 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700572 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700573 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
574 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
575 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700576 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700577 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700578};
579
580struct iwl_cfg iwl6000g2b_2abg_cfg = {
581 .name = "6000 Series 2x2 ABG 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,
586 .ops = &iwl6000g2b_ops,
587 .eeprom_size = OTP_LOW_IMAGE_SIZE,
588 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
589 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
590 .num_of_queues = IWLAGN_NUM_QUEUES,
591 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
592 .mod_params = &iwlagn_mod_params,
593 .valid_tx_ant = ANT_AB,
594 .valid_rx_ant = ANT_AB,
595 .pll_cfg_val = 0,
596 .set_l0s = true,
597 .use_bsm = false,
598 .pa_type = IWL_PA_SYSTEM,
599 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
600 .shadow_ram_support = true,
601 .led_compensation = 51,
602 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
603 .supports_idle = true,
604 .adv_thermal_throttle = true,
605 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700606 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700607 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700608 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700609 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700610 .sensitivity_calib_by_driver = true,
611 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700612 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700613 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700614 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
615 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
616 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700617 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700618 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700619};
620
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700621struct iwl_cfg iwl6000g2b_2bgn_cfg = {
622 .name = "6000 Series 2x2 BGN Gen2b",
623 .fw_name_pre = IWL6000G2B_FW_PRE,
624 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
625 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
626 .sku = IWL_SKU_G|IWL_SKU_N,
627 .ops = &iwl6000g2b_ops,
628 .eeprom_size = OTP_LOW_IMAGE_SIZE,
629 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
630 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
631 .num_of_queues = IWLAGN_NUM_QUEUES,
632 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
633 .mod_params = &iwlagn_mod_params,
634 .valid_tx_ant = ANT_AB,
635 .valid_rx_ant = ANT_AB,
636 .pll_cfg_val = 0,
637 .set_l0s = true,
638 .use_bsm = false,
639 .pa_type = IWL_PA_SYSTEM,
640 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
641 .shadow_ram_support = true,
642 .ht_greenfield_support = true,
643 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700644 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700645 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
646 .supports_idle = true,
647 .adv_thermal_throttle = true,
648 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700649 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700650 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700651 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700652 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700653 .sensitivity_calib_by_driver = true,
654 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700655 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700656 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700657 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
658 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
659 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700660 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700661 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700662};
663
Shanyu Zhao18089722010-05-06 10:15:21 -0700664struct iwl_cfg iwl6000g2b_2bg_cfg = {
665 .name = "6000 Series 2x2 BG Gen2b",
666 .fw_name_pre = IWL6000G2B_FW_PRE,
667 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
668 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
669 .sku = IWL_SKU_G,
670 .ops = &iwl6000g2b_ops,
671 .eeprom_size = OTP_LOW_IMAGE_SIZE,
672 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
673 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
674 .num_of_queues = IWLAGN_NUM_QUEUES,
675 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
676 .mod_params = &iwlagn_mod_params,
677 .valid_tx_ant = ANT_AB,
678 .valid_rx_ant = ANT_AB,
679 .pll_cfg_val = 0,
680 .set_l0s = true,
681 .use_bsm = false,
682 .pa_type = IWL_PA_SYSTEM,
683 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
684 .shadow_ram_support = true,
685 .led_compensation = 51,
686 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
687 .supports_idle = true,
688 .adv_thermal_throttle = true,
689 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700690 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700691 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700692 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700693 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700694 .sensitivity_calib_by_driver = true,
695 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700696 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700697 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700698 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
699 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
700 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700701 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700702 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700703};
704
705struct iwl_cfg iwl6000g2b_bgn_cfg = {
706 .name = "6000 Series 1x2 BGN Gen2b",
707 .fw_name_pre = IWL6000G2B_FW_PRE,
708 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
709 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
710 .sku = IWL_SKU_G|IWL_SKU_N,
711 .ops = &iwl6000g2b_ops,
712 .eeprom_size = OTP_LOW_IMAGE_SIZE,
713 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
714 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
715 .num_of_queues = IWLAGN_NUM_QUEUES,
716 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
717 .mod_params = &iwlagn_mod_params,
718 .valid_tx_ant = ANT_A,
719 .valid_rx_ant = ANT_AB,
720 .pll_cfg_val = 0,
721 .set_l0s = true,
722 .use_bsm = false,
723 .pa_type = IWL_PA_SYSTEM,
724 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
725 .shadow_ram_support = true,
726 .ht_greenfield_support = true,
727 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700728 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao18089722010-05-06 10:15:21 -0700729 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
730 .supports_idle = true,
731 .adv_thermal_throttle = true,
732 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700733 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700734 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700735 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700736 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700737 .sensitivity_calib_by_driver = true,
738 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700739 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700740 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700741 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
742 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
743 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700744 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700745 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700746};
747
748struct iwl_cfg iwl6000g2b_bg_cfg = {
749 .name = "6000 Series 1x2 BG Gen2b",
750 .fw_name_pre = IWL6000G2B_FW_PRE,
751 .ucode_api_max = IWL6000G2_UCODE_API_MAX,
752 .ucode_api_min = IWL6000G2_UCODE_API_MIN,
753 .sku = IWL_SKU_G,
754 .ops = &iwl6000g2b_ops,
755 .eeprom_size = OTP_LOW_IMAGE_SIZE,
756 .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
757 .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
758 .num_of_queues = IWLAGN_NUM_QUEUES,
759 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
760 .mod_params = &iwlagn_mod_params,
761 .valid_tx_ant = ANT_A,
762 .valid_rx_ant = ANT_AB,
763 .pll_cfg_val = 0,
764 .set_l0s = true,
765 .use_bsm = false,
766 .pa_type = IWL_PA_SYSTEM,
767 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
768 .shadow_ram_support = true,
769 .led_compensation = 51,
770 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
771 .supports_idle = true,
772 .adv_thermal_throttle = true,
773 .support_ct_kill_exit = true,
Wey-Yi Guy74e5c412010-08-23 07:57:02 -0700774 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
Shanyu Zhao18089722010-05-06 10:15:21 -0700775 .chain_noise_scale = 1000,
Wey-Yi Guy3198c682010-07-23 13:19:40 -0700776 .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
Shanyu Zhao18089722010-05-06 10:15:21 -0700777 .max_event_log_size = 512,
Wey-Yi Guy679db792010-06-21 12:15:17 -0700778 .sensitivity_calib_by_driver = true,
779 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700780 .need_dc_calib = true,
Wey-Yi Guyaf8ee052010-07-14 08:08:05 -0700781 .bt_statistics = true,
Johannes Berg670245e2010-08-23 07:56:55 -0700782 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
783 .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
784 .advanced_bt_coexist = true,
Wey-Yi Guya4b96cc2010-08-23 07:57:08 -0700785 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
Wey-Yi Guyb6e116e2010-08-23 07:57:14 -0700786 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Shanyu Zhao18089722010-05-06 10:15:21 -0700787};
788
Shanyu Zhao95b13012010-04-21 11:46:33 -0700789/*
790 * "i": Internal configuration, use internal Power Amplifier
791 */
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700792struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800793 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700794 .fw_name_pre = IWL6000_FW_PRE,
795 .ucode_api_max = IWL6000_UCODE_API_MAX,
796 .ucode_api_min = IWL6000_UCODE_API_MIN,
797 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
798 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700799 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700800 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700801 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700802 .num_of_queues = IWLAGN_NUM_QUEUES,
803 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700804 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700805 .valid_tx_ant = ANT_BC,
806 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700807 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700808 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700809 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700810 .pa_type = IWL_PA_INTERNAL,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700811 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
812 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700813 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700814 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700815 .use_rts_for_aggregation = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700816 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700817 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700818 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700819 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800820 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800821 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700822 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700823 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700824 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700825 .sensitivity_calib_by_driver = true,
826 .chain_noise_calib_by_driver = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800827};
828
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700829struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800830 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700831 .fw_name_pre = IWL6000_FW_PRE,
832 .ucode_api_max = IWL6000_UCODE_API_MAX,
833 .ucode_api_min = IWL6000_UCODE_API_MIN,
834 .sku = IWL_SKU_A|IWL_SKU_G,
835 .ops = &iwl6000_ops,
836 .eeprom_size = OTP_LOW_IMAGE_SIZE,
837 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700838 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700839 .num_of_queues = IWLAGN_NUM_QUEUES,
840 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700841 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700842 .valid_tx_ant = ANT_BC,
843 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700844 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700845 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700846 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700847 .pa_type = IWL_PA_INTERNAL,
848 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
849 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700850 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700851 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700852 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700853 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700854 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800855 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800856 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700857 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700858 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700859 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700860 .sensitivity_calib_by_driver = true,
861 .chain_noise_calib_by_driver = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700862};
863
864struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800865 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700866 .fw_name_pre = IWL6000_FW_PRE,
867 .ucode_api_max = IWL6000_UCODE_API_MAX,
868 .ucode_api_min = IWL6000_UCODE_API_MIN,
869 .sku = IWL_SKU_G,
870 .ops = &iwl6000_ops,
871 .eeprom_size = OTP_LOW_IMAGE_SIZE,
872 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700873 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700874 .num_of_queues = IWLAGN_NUM_QUEUES,
875 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700876 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700877 .valid_tx_ant = ANT_BC,
878 .valid_rx_ant = ANT_BC,
Ben Cahillfadb3582009-10-23 13:42:21 -0700879 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700880 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700881 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700882 .pa_type = IWL_PA_INTERNAL,
883 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
884 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700885 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700886 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700887 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700888 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700889 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800890 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800891 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700892 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700893 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700894 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700895 .sensitivity_calib_by_driver = true,
896 .chain_noise_calib_by_driver = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700897};
898
Jay Sternberge1228372009-01-19 15:30:34 -0800899struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800900 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800901 .fw_name_pre = IWL6050_FW_PRE,
902 .ucode_api_max = IWL6050_UCODE_API_MAX,
903 .ucode_api_min = IWL6050_UCODE_API_MIN,
904 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700905 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700906 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700907 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700908 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700909 .num_of_queues = IWLAGN_NUM_QUEUES,
910 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700911 .mod_params = &iwlagn_mod_params,
Jay Sternberg542cc792009-05-08 13:44:46 -0700912 .valid_tx_ant = ANT_AB,
913 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700914 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700915 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700916 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700917 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700918 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700919 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700920 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700921 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700922 .use_rts_for_aggregation = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700923 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700924 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700925 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -0700926 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -0800927 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -0800928 .chain_noise_scale = 1500,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700929 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -0700930 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -0700931 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -0700932 .sensitivity_calib_by_driver = true,
933 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700934 .need_dc_calib = true,
Jay Sternberge1228372009-01-19 15:30:34 -0800935};
936
Shanyu Zhao03264332010-06-29 17:27:27 -0700937struct iwl_cfg iwl6050g2_bgn_cfg = {
938 .name = "6050 Series 1x2 BGN Gen2",
939 .fw_name_pre = IWL6050_FW_PRE,
940 .ucode_api_max = IWL6050_UCODE_API_MAX,
941 .ucode_api_min = IWL6050_UCODE_API_MIN,
942 .sku = IWL_SKU_G|IWL_SKU_N,
943 .ops = &iwl6000_ops,
944 .eeprom_size = OTP_LOW_IMAGE_SIZE,
945 .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
946 .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
947 .num_of_queues = IWLAGN_NUM_QUEUES,
948 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
949 .mod_params = &iwlagn_mod_params,
950 .valid_tx_ant = ANT_A,
951 .valid_rx_ant = ANT_AB,
952 .pll_cfg_val = 0,
953 .set_l0s = true,
954 .use_bsm = false,
955 .pa_type = IWL_PA_SYSTEM,
956 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
957 .shadow_ram_support = true,
958 .ht_greenfield_support = true,
959 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -0700960 .use_rts_for_aggregation = true, /* use rts/cts protection */
Shanyu Zhao03264332010-06-29 17:27:27 -0700961 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
962 .supports_idle = true,
963 .adv_thermal_throttle = true,
964 .support_ct_kill_exit = true,
965 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
966 .chain_noise_scale = 1500,
Wey-Yi Guyce606592010-07-23 13:19:39 -0700967 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Shanyu Zhao03264332010-06-29 17:27:27 -0700968 .max_event_log_size = 1024,
969 .ucode_tracing = true,
970 .sensitivity_calib_by_driver = true,
971 .chain_noise_calib_by_driver = true,
972 .need_dc_calib = true,
973};
974
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700975struct iwl_cfg iwl6050_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800976 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700977 .fw_name_pre = IWL6050_FW_PRE,
978 .ucode_api_max = IWL6050_UCODE_API_MAX,
979 .ucode_api_min = IWL6050_UCODE_API_MIN,
980 .sku = IWL_SKU_A|IWL_SKU_G,
Wey-Yi Guy178d1592010-06-15 16:14:53 -0700981 .ops = &iwl6000_ops,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700982 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy32b7e242009-10-16 14:25:51 -0700983 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -0700984 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -0700985 .num_of_queues = IWLAGN_NUM_QUEUES,
986 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -0700987 .mod_params = &iwlagn_mod_params,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700988 .valid_tx_ant = ANT_AB,
989 .valid_rx_ant = ANT_AB,
Ben Cahillfadb3582009-10-23 13:42:21 -0700990 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -0700991 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -0700992 .use_bsm = false,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700993 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy3ab312a2009-10-16 14:25:52 -0700994 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700995 .shadow_ram_support = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700996 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700997 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -0700998 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -0700999 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -07001000 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -08001001 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -08001002 .chain_noise_scale = 1500,
Wey-Yi Guyce606592010-07-23 13:19:39 -07001003 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -07001004 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -07001005 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -07001006 .sensitivity_calib_by_driver = true,
1007 .chain_noise_calib_by_driver = true,
Wey-Yi Guy178d1592010-06-15 16:14:53 -07001008 .need_dc_calib = true,
Wey-Yi Guy5953a622009-09-17 10:43:53 -07001009};
1010
Jay Sternberge1228372009-01-19 15:30:34 -08001011struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -08001012 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -08001013 .fw_name_pre = IWL6000_FW_PRE,
1014 .ucode_api_max = IWL6000_UCODE_API_MAX,
1015 .ucode_api_min = IWL6000_UCODE_API_MIN,
1016 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -08001017 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -07001018 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -07001019 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy00e70592010-03-16 12:37:26 -07001020 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy19e6cda2010-03-16 17:41:23 -07001021 .num_of_queues = IWLAGN_NUM_QUEUES,
1022 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
Wey-Yi Guy348ee7cd2010-03-16 12:37:27 -07001023 .mod_params = &iwlagn_mod_params,
Jay Sternbergc0bac762009-02-02 16:21:14 -08001024 .valid_tx_ant = ANT_ABC,
1025 .valid_rx_ant = ANT_ABC,
Ben Cahillfadb3582009-10-23 13:42:21 -07001026 .pll_cfg_val = 0,
Ben Cahilla6c5c732009-10-30 14:36:07 -07001027 .set_l0s = true,
Ben Cahillfadb3582009-10-23 13:42:21 -07001028 .use_bsm = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -07001029 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -07001030 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
1031 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -07001032 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -07001033 .led_compensation = 51,
Johannes Berg94597ab2010-08-09 10:57:02 -07001034 .use_rts_for_aggregation = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -07001035 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Johannes Berg78f5fb72009-09-25 14:24:27 -07001036 .supports_idle = true,
Wey-Yi Guy6047b4f2009-10-23 13:42:27 -07001037 .adv_thermal_throttle = true,
Wey-Yi Guy480e8402009-10-23 13:42:28 -07001038 .support_ct_kill_exit = true,
Trieu 'Andrew' Nguyen3e4fb5f2010-01-22 14:22:46 -08001039 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
Ben Cahilld4fe5ac2010-02-05 11:33:46 -08001040 .chain_noise_scale = 1000,
Wey-Yi Guyce606592010-07-23 13:19:39 -07001041 .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
Wey-Yi Guy678b3852010-03-26 12:54:37 -07001042 .max_event_log_size = 1024,
Wey-Yi Guy6e5c8002010-04-27 14:00:28 -07001043 .ucode_tracing = true,
Wey-Yi Guy65d1f892010-04-25 15:41:43 -07001044 .sensitivity_calib_by_driver = true,
1045 .chain_noise_calib_by_driver = true,
Jay Sternberge1228372009-01-19 15:30:34 -08001046};
1047
Jay Sternberge1228372009-01-19 15:30:34 -08001048MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
1049MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
Shanyu Zhao95b13012010-04-21 11:46:33 -07001050MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
Shanyu Zhao18089722010-05-06 10:15:21 -07001051MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));