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