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