iwlwifi: check status before send command
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-6000.c
CommitLineData
e1228374
JS
1/******************************************************************************
2 *
901069c7 3 * Copyright(c) 2008 - 2011 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>
e1228374
JS
30#include <linux/delay.h>
31#include <linux/skbuff.h>
32#include <linux/netdevice.h>
e1228374
JS
33#include <net/mac80211.h>
34#include <linux/etherdevice.h>
35#include <asm/unaligned.h>
8fcbd4dc 36#include <linux/stringify.h>
e1228374
JS
37
38#include "iwl-eeprom.h"
39#include "iwl-dev.h"
40#include "iwl-core.h"
41#include "iwl-io.h"
a1175124 42#include "iwl-agn.h"
19e6cda0 43#include "iwl-agn-hw.h"
bdfbf092 44#include "iwl-trans.h"
48f20d35 45#include "iwl-shared.h"
cebcbd75 46#include "iwl-cfg.h"
e1228374
JS
47
48/* Highest firmware API version supported */
fcbaf8b0 49#define IWL6000_UCODE_API_MAX 4
62cb3c6a 50#define IWL6050_UCODE_API_MAX 5
ca9a4605
JB
51#define IWL6000G2_UCODE_API_MAX 6
52
53/* Oldest version we won't warn about */
54#define IWL6000G2_UCODE_API_OK 5
e1228374
JS
55
56/* Lowest firmware API version supported */
44246421
WYG
57#define IWL6000_UCODE_API_MIN 4
58#define IWL6050_UCODE_API_MIN 4
4b3e8062 59#define IWL6000G2_UCODE_API_MIN 4
e1228374
JS
60
61#define IWL6000_FW_PRE "iwlwifi-6000-"
8fcbd4dc 62#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
e1228374
JS
63
64#define IWL6050_FW_PRE "iwlwifi-6050-"
8fcbd4dc 65#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
e1228374 66
1956e1ad 67#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
8fcbd4dc 68#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
95b13014 69
1956e1ad 70#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
8fcbd4dc 71#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
1808972f 72
672639de
WYG
73static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
74{
75 /* want Celsius */
d6189124
EG
76 hw_params(priv).ct_kill_threshold = CT_KILL_THRESHOLD;
77 hw_params(priv).ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
672639de
WYG
78}
79
6b5ce501 80static void iwl6050_additional_nic_config(struct iwl_priv *priv)
d5755939 81{
6b5ce501 82 /* Indicate calibration version to uCode. */
16b80b71 83 if (iwlagn_eeprom_calib_version(priv) >= 6)
83ed9015 84 iwl_set_bit(bus(priv), CSR_GP_DRIVER_REG,
d5755939
AK
85 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
86}
87
1956e1ad 88static void iwl6150_additional_nic_config(struct iwl_priv *priv)
02796d77
SZ
89{
90 /* Indicate calibration version to uCode. */
16b80b71 91 if (iwlagn_eeprom_calib_version(priv) >= 6)
83ed9015 92 iwl_set_bit(bus(priv), CSR_GP_DRIVER_REG,
02796d77 93 CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
83ed9015 94 iwl_set_bit(bus(priv), CSR_GP_DRIVER_REG,
02796d77
SZ
95 CSR_GP_DRIVER_REG_BIT_6050_1x2);
96}
97
65b7998a
WYG
98/* NIC configuration for 6000 series */
99static void iwl6000_nic_config(struct iwl_priv *priv)
100{
86cb3b4e 101 iwl_rf_config(priv);
65b7998a
WYG
102
103 /* no locking required for register write */
740e7f51 104 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
65b7998a 105 /* 2x2 IPA phy type */
83ed9015 106 iwl_write32(bus(priv), CSR_GP_DRIVER_REG,
65b7998a
WYG
107 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
108 }
6b5ce501 109 /* do additional nic configuration if needed */
e4305fe9
WYG
110 if (priv->cfg->additional_nic_config)
111 priv->cfg->additional_nic_config(priv);
65b7998a
WYG
112}
113
f3a2a424 114static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
e7515ba1 115 .min_nrg_cck = 110,
f3a2a424
WYG
116 .max_nrg_cck = 0, /* not used, set to 0 */
117 .auto_corr_min_ofdm = 80,
118 .auto_corr_min_ofdm_mrc = 128,
119 .auto_corr_min_ofdm_x1 = 105,
120 .auto_corr_min_ofdm_mrc_x1 = 192,
121
122 .auto_corr_max_ofdm = 145,
123 .auto_corr_max_ofdm_mrc = 232,
2494f63c 124 .auto_corr_max_ofdm_x1 = 110,
f3a2a424
WYG
125 .auto_corr_max_ofdm_mrc_x1 = 232,
126
127 .auto_corr_min_cck = 125,
128 .auto_corr_max_cck = 175,
129 .auto_corr_min_cck_mrc = 160,
130 .auto_corr_max_cck_mrc = 310,
e7515ba1
WYG
131 .nrg_th_cck = 110,
132 .nrg_th_ofdm = 110,
55036d66
WYG
133
134 .barker_corr_th_min = 190,
e7515ba1 135 .barker_corr_th_min_mrc = 336,
55036d66 136 .nrg_th_cca = 62,
f3a2a424
WYG
137};
138
139static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
140{
9d143e9a
DF
141 if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
142 iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
7cb1b088 143 priv->cfg->base_params->num_of_queues =
9d143e9a 144 iwlagn_mod_params.num_of_queues;
f3a2a424 145
d6189124 146 hw_params(priv).max_txq_num = priv->cfg->base_params->num_of_queues;
a194e324 147 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
f3a2a424 148
d6189124
EG
149 hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE;
150 hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE;
f3a2a424 151
d6189124 152 hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
f3a2a424 153 BIT(IEEE80211_BAND_5GHZ);
f3a2a424 154
d6189124 155 hw_params(priv).tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
17423ea8 156 if (priv->cfg->rx_with_siso_diversity)
d6189124 157 hw_params(priv).rx_chains_num = 1;
17423ea8 158 else
d6189124 159 hw_params(priv).rx_chains_num =
17423ea8 160 num_of_ant(priv->cfg->valid_rx_ant);
d6189124
EG
161 hw_params(priv).valid_tx_ant = priv->cfg->valid_tx_ant;
162 hw_params(priv).valid_rx_ant = priv->cfg->valid_rx_ant;
f3a2a424 163
0453674c 164 iwl6000_set_ct_threshold(priv);
f3a2a424
WYG
165
166 /* Set initial sensitivity parameters */
167 /* Set initial calibration set */
d6189124
EG
168 hw_params(priv).sens = &iwl6000_sensitivity;
169 hw_params(priv).calib_init_cfg =
e517736a
WYG
170 BIT(IWL_CALIB_XTAL) |
171 BIT(IWL_CALIB_LO) |
172 BIT(IWL_CALIB_TX_IQ) |
173 BIT(IWL_CALIB_BASE_BAND);
178d1596 174 if (priv->cfg->need_dc_calib)
d6189124 175 hw_params(priv).calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX;
bf53f939 176 if (priv->cfg->need_temp_offset_calib)
d6189124 177 hw_params(priv).calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
07f33f92 178
f3a2a424
WYG
179 return 0;
180}
181
79d07325
WYG
182static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
183 struct ieee80211_channel_switch *ch_switch)
4a56e965 184{
246ed355
JB
185 /*
186 * MULTI-FIXME
ade4c649 187 * See iwlagn_mac_channel_switch.
246ed355
JB
188 */
189 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
4a56e965
WYG
190 struct iwl6000_channel_switch_cmd cmd;
191 const struct iwl_channel_info *ch_info;
79d07325
WYG
192 u32 switch_time_in_usec, ucode_switch_time;
193 u16 ch;
194 u32 tsf_low;
195 u8 switch_count;
246ed355 196 u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
8bd413e6 197 struct ieee80211_vif *vif = ctx->vif;
4a56e965
WYG
198 struct iwl_host_cmd hcmd = {
199 .id = REPLY_CHANNEL_SWITCH,
3fa50738 200 .len = { sizeof(cmd), },
3839f7ce 201 .flags = CMD_SYNC,
3fa50738 202 .data = { &cmd, },
4a56e965
WYG
203 };
204
4a56e965 205 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
81e95430 206 ch = ch_switch->channel->hw_value;
79d07325 207 IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
246ed355 208 ctx->active.channel, ch);
79d07325 209 cmd.channel = cpu_to_le16(ch);
246ed355
JB
210 cmd.rxon_flags = ctx->staging.flags;
211 cmd.rxon_filter_flags = ctx->staging.filter_flags;
79d07325
WYG
212 switch_count = ch_switch->count;
213 tsf_low = ch_switch->timestamp & 0x0ffffffff;
214 /*
215 * calculate the ucode channel switch time
216 * adding TSF as one of the factor for when to switch
217 */
218 if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
219 if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
220 beacon_interval)) {
221 switch_count -= (priv->ucode_beacon_time -
222 tsf_low) / beacon_interval;
223 } else
224 switch_count = 0;
225 }
226 if (switch_count <= 1)
227 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
228 else {
229 switch_time_in_usec =
230 vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
231 ucode_switch_time = iwl_usecs_to_beacons(priv,
232 switch_time_in_usec,
233 beacon_interval);
234 cmd.switch_time = iwl_add_beacon_time(priv,
235 priv->ucode_beacon_time,
236 ucode_switch_time,
237 beacon_interval);
238 }
239 IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
240 cmd.switch_time);
241 ch_info = iwl_get_channel_info(priv, priv->band, ch);
4a56e965
WYG
242 if (ch_info)
243 cmd.expect_beacon = is_channel_radar(ch_info);
244 else {
245 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
246ed355 246 ctx->active.channel, ch);
4a56e965
WYG
247 return -EFAULT;
248 }
249
e6bb4c9c 250 return iwl_trans_send_cmd(trans(priv), &hcmd);
4a56e965
WYG
251}
252
672639de 253static struct iwl_lib_ops iwl6000_lib = {
f3a2a424 254 .set_hw_params = iwl6000_hw_set_hw_params,
4a56e965 255 .set_channel_switch = iwl6000_hw_channel_switch,
e4c598b7 256 .nic_config = iwl6000_nic_config,
672639de
WYG
257 .eeprom_ops = {
258 .regulatory_bands = {
e04ed0a5
WYG
259 EEPROM_REG_BAND_1_CHANNELS,
260 EEPROM_REG_BAND_2_CHANNELS,
261 EEPROM_REG_BAND_3_CHANNELS,
262 EEPROM_REG_BAND_4_CHANNELS,
263 EEPROM_REG_BAND_5_CHANNELS,
f2fa1b01 264 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
e04ed0a5 265 EEPROM_REG_BAND_52_HT40_CHANNELS
672639de 266 },
b39488a9 267 .update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
672639de 268 },
909fc3cb 269 .temperature = iwlagn_temperature,
672639de
WYG
270};
271
1956e1ad 272static struct iwl_lib_ops iwl6030_lib = {
9e4afc21 273 .set_hw_params = iwl6000_hw_set_hw_params,
8d301193 274 .bt_rx_handler_setup = iwlagn_bt_rx_handler_setup,
6bd4dba3 275 .bt_setup_deferred_work = iwlagn_bt_setup_deferred_work,
b6e116e8 276 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
9e4afc21 277 .set_channel_switch = iwl6000_hw_channel_switch,
e4c598b7 278 .nic_config = iwl6000_nic_config,
9e4afc21
JB
279 .eeprom_ops = {
280 .regulatory_bands = {
281 EEPROM_REG_BAND_1_CHANNELS,
282 EEPROM_REG_BAND_2_CHANNELS,
283 EEPROM_REG_BAND_3_CHANNELS,
284 EEPROM_REG_BAND_4_CHANNELS,
285 EEPROM_REG_BAND_5_CHANNELS,
286 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
287 EEPROM_REG_BAND_52_HT40_CHANNELS
288 },
b39488a9 289 .update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
9e4afc21 290 },
909fc3cb 291 .temperature = iwlagn_temperature,
9e4afc21
JB
292};
293
7cb1b088 294static struct iwl_base_params iwl6000_base_params = {
0b5af201 295 .eeprom_size = OTP_LOW_IMAGE_SIZE,
0b5af201
JS
296 .num_of_queues = IWLAGN_NUM_QUEUES,
297 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
0b5af201 298 .pll_cfg_val = 0,
0b5af201
JS
299 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
300 .shadow_ram_support = true,
0b5af201 301 .led_compensation = 51,
0b5af201
JS
302 .adv_thermal_throttle = true,
303 .support_ct_kill_exit = true,
304 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
305 .chain_noise_scale = 1000,
22de94de 306 .wd_timeout = IWL_DEF_WD_TIMEOUT,
95b13014 307 .max_event_log_size = 512,
f81c1f48 308 .shadow_reg_enable = true,
0b5af201
JS
309};
310
7cb1b088 311static struct iwl_base_params iwl6050_base_params = {
1808972f 312 .eeprom_size = OTP_LOW_IMAGE_SIZE,
1808972f
SZ
313 .num_of_queues = IWLAGN_NUM_QUEUES,
314 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
1808972f 315 .pll_cfg_val = 0,
7cb1b088 316 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
1808972f
SZ
317 .shadow_ram_support = true,
318 .led_compensation = 51,
1808972f
SZ
319 .adv_thermal_throttle = true,
320 .support_ct_kill_exit = true,
321 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
7cb1b088 322 .chain_noise_scale = 1500,
22de94de 323 .wd_timeout = IWL_DEF_WD_TIMEOUT,
7cb1b088 324 .max_event_log_size = 1024,
f81c1f48 325 .shadow_reg_enable = true,
7cb1b088 326};
4fb33244 327static struct iwl_base_params iwl6000_g2_base_params = {
de05ead8
WYG
328 .eeprom_size = OTP_LOW_IMAGE_SIZE,
329 .num_of_queues = IWLAGN_NUM_QUEUES,
330 .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
331 .pll_cfg_val = 0,
de05ead8
WYG
332 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
333 .shadow_ram_support = true,
4fb33244 334 .led_compensation = 57,
de05ead8
WYG
335 .adv_thermal_throttle = true,
336 .support_ct_kill_exit = true,
337 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
338 .chain_noise_scale = 1000,
22de94de 339 .wd_timeout = IWL_LONG_WD_TIMEOUT,
de05ead8 340 .max_event_log_size = 512,
f81c1f48 341 .shadow_reg_enable = true,
de05ead8 342};
7cb1b088
WYG
343
344static struct iwl_ht_params iwl6000_ht_params = {
345 .ht_greenfield_support = true,
346 .use_rts_for_aggregation = true, /* use rts/cts protection */
347};
348
349static struct iwl_bt_params iwl6000_bt_params = {
7cb1b088
WYG
350 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
351 .advanced_bt_coexist = true,
66e863a5 352 .agg_time_limit = BT_AGG_THRESHOLD_DEF,
7cb1b088
WYG
353 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
354 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
e366176e 355 .bt_sco_disable = true,
7cb1b088
WYG
356};
357
65af8dea 358#define IWL_DEVICE_6005 \
ca9a4605 359 .fw_name_pre = IWL6005_FW_PRE, \
65af8dea 360 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
ca9a4605 361 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
65af8dea 362 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
1956e1ad
WYG
363 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
364 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
90c300cb 365 .lib = &iwl6000_lib, \
65af8dea
WYG
366 .base_params = &iwl6000_g2_base_params, \
367 .need_dc_calib = true, \
368 .need_temp_offset_calib = true, \
369 .led_mode = IWL_LED_RF_STATE
370
8b3ee296 371struct iwl_cfg iwl6005_2agn_cfg = {
55017ab8 372 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
65af8dea 373 IWL_DEVICE_6005,
7cb1b088 374 .ht_params = &iwl6000_ht_params,
7cb1b088
WYG
375};
376
8b3ee296 377struct iwl_cfg iwl6005_2abg_cfg = {
55017ab8 378 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
65af8dea 379 IWL_DEVICE_6005,
1808972f
SZ
380};
381
8b3ee296 382struct iwl_cfg iwl6005_2bg_cfg = {
55017ab8 383 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
65af8dea
WYG
384 IWL_DEVICE_6005,
385};
386
6a9ae0dc
WYG
387struct iwl_cfg iwl6005_2agn_sff_cfg = {
388 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
389 IWL_DEVICE_6005,
390 .ht_params = &iwl6000_ht_params,
391};
392
5131a600
WYG
393struct iwl_cfg iwl6005_2agn_d_cfg = {
394 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
395 IWL_DEVICE_6005,
396 .ht_params = &iwl6000_ht_params,
397};
398
65af8dea 399#define IWL_DEVICE_6030 \
ca9a4605 400 .fw_name_pre = IWL6030_FW_PRE, \
65af8dea 401 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
ca9a4605 402 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
65af8dea 403 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
1956e1ad
WYG
404 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
405 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
90c300cb 406 .lib = &iwl6030_lib, \
65af8dea
WYG
407 .base_params = &iwl6000_g2_base_params, \
408 .bt_params = &iwl6000_bt_params, \
409 .need_dc_calib = true, \
410 .need_temp_offset_calib = true, \
411 .led_mode = IWL_LED_RF_STATE, \
cd017f25 412 .adv_pm = true \
1808972f 413
8b3ee296 414struct iwl_cfg iwl6030_2agn_cfg = {
d2eceef0 415 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
65af8dea 416 IWL_DEVICE_6030,
7cb1b088 417 .ht_params = &iwl6000_ht_params,
1808972f
SZ
418};
419
8b3ee296 420struct iwl_cfg iwl6030_2abg_cfg = {
d2eceef0 421 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
65af8dea 422 IWL_DEVICE_6030,
1808972f
SZ
423};
424
8b3ee296 425struct iwl_cfg iwl6030_2bgn_cfg = {
d2eceef0 426 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
65af8dea 427 IWL_DEVICE_6030,
7cb1b088 428 .ht_params = &iwl6000_ht_params,
9f6e1baf
SZ
429};
430
8b3ee296 431struct iwl_cfg iwl6030_2bg_cfg = {
d2eceef0 432 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
65af8dea 433 IWL_DEVICE_6030,
1808972f
SZ
434};
435
d103e344
WYG
436struct iwl_cfg iwl6035_2agn_cfg = {
437 .name = "6035 Series 2x2 AGN/BT",
438 IWL_DEVICE_6030,
439 .ht_params = &iwl6000_ht_params,
440};
441
8b3ee296 442struct iwl_cfg iwl1030_bgn_cfg = {
d2eceef0 443 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
65af8dea 444 IWL_DEVICE_6030,
7cb1b088 445 .ht_params = &iwl6000_ht_params,
1808972f
SZ
446};
447
8b3ee296 448struct iwl_cfg iwl1030_bg_cfg = {
d2eceef0 449 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
65af8dea
WYG
450 IWL_DEVICE_6030,
451};
452
453struct iwl_cfg iwl130_bgn_cfg = {
454 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
455 IWL_DEVICE_6030,
456 .ht_params = &iwl6000_ht_params,
457 .rx_with_siso_diversity = true,
458};
459
460struct iwl_cfg iwl130_bg_cfg = {
461 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
462 IWL_DEVICE_6030,
463 .rx_with_siso_diversity = true,
1808972f
SZ
464};
465
95b13014
SZ
466/*
467 * "i": Internal configuration, use internal Power Amplifier
468 */
65af8dea
WYG
469#define IWL_DEVICE_6000i \
470 .fw_name_pre = IWL6000_FW_PRE, \
471 .ucode_api_max = IWL6000_UCODE_API_MAX, \
472 .ucode_api_min = IWL6000_UCODE_API_MIN, \
473 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
474 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
475 .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
476 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
90c300cb 477 .lib = &iwl6000_lib, \
65af8dea
WYG
478 .base_params = &iwl6000_base_params, \
479 .pa_type = IWL_PA_INTERNAL, \
480 .led_mode = IWL_LED_BLINK
481
65b7998a 482struct iwl_cfg iwl6000i_2agn_cfg = {
c11362c0 483 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
65af8dea 484 IWL_DEVICE_6000i,
7cb1b088 485 .ht_params = &iwl6000_ht_params,
e1228374
JS
486};
487
5953a62e 488struct iwl_cfg iwl6000i_2abg_cfg = {
c11362c0 489 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
65af8dea 490 IWL_DEVICE_6000i,
5953a62e
WYG
491};
492
493struct iwl_cfg iwl6000i_2bg_cfg = {
c11362c0 494 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
65af8dea
WYG
495 IWL_DEVICE_6000i,
496};
497
498#define IWL_DEVICE_6050 \
499 .fw_name_pre = IWL6050_FW_PRE, \
500 .ucode_api_max = IWL6050_UCODE_API_MAX, \
501 .ucode_api_min = IWL6050_UCODE_API_MIN, \
ff458edc
WYG
502 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
503 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
90c300cb 504 .lib = &iwl6000_lib, \
e4305fe9 505 .additional_nic_config = iwl6050_additional_nic_config, \
65af8dea
WYG
506 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
507 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
65af8dea
WYG
508 .base_params = &iwl6050_base_params, \
509 .need_dc_calib = true, \
510 .led_mode = IWL_LED_BLINK, \
511 .internal_wimax_coex = true
5953a62e 512
e1228374 513struct iwl_cfg iwl6050_2agn_cfg = {
c11362c0 514 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
65af8dea 515 IWL_DEVICE_6050,
7cb1b088 516 .ht_params = &iwl6000_ht_params,
65af8dea
WYG
517};
518
519struct iwl_cfg iwl6050_2abg_cfg = {
520 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
521 IWL_DEVICE_6050,
03264339
SZ
522};
523
1144181c
WYG
524#define IWL_DEVICE_6150 \
525 .fw_name_pre = IWL6050_FW_PRE, \
526 .ucode_api_max = IWL6050_UCODE_API_MAX, \
527 .ucode_api_min = IWL6050_UCODE_API_MIN, \
90c300cb 528 .lib = &iwl6000_lib, \
e4305fe9 529 .additional_nic_config = iwl6150_additional_nic_config, \
1144181c
WYG
530 .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \
531 .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
532 .base_params = &iwl6050_base_params, \
533 .need_dc_calib = true, \
534 .led_mode = IWL_LED_BLINK, \
535 .internal_wimax_coex = true
536
8b3ee296 537struct iwl_cfg iwl6150_bgn_cfg = {
f9dc6467 538 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
1144181c 539 IWL_DEVICE_6150,
7cb1b088 540 .ht_params = &iwl6000_ht_params,
1144181c
WYG
541};
542
543struct iwl_cfg iwl6150_bg_cfg = {
544 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
545 IWL_DEVICE_6150,
e1228374
JS
546};
547
548struct iwl_cfg iwl6000_3agn_cfg = {
c11362c0 549 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
e1228374
JS
550 .fw_name_pre = IWL6000_FW_PRE,
551 .ucode_api_max = IWL6000_UCODE_API_MAX,
552 .ucode_api_min = IWL6000_UCODE_API_MIN,
1f4b9665 553 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
00e70590 554 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
90c300cb 555 .lib = &iwl6000_lib,
7cb1b088
WYG
556 .base_params = &iwl6000_base_params,
557 .ht_params = &iwl6000_ht_params,
558 .need_dc_calib = true,
564b344c 559 .led_mode = IWL_LED_BLINK,
e1228374
JS
560};
561
e1228374
JS
562MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
563MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
1956e1ad
WYG
564MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
565MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
This page took 0.417778 seconds and 5 git commands to generate.