Commit | Line | Data |
---|---|---|
e1228374 JS |
1 | /****************************************************************************** |
2 | * | |
1f447808 | 3 | * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved. |
e1228374 JS |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of version 2 of the GNU General Public License as | |
7 | * published by the Free Software Foundation. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
12 | * more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along with | |
15 | * this program; if not, write to the Free Software Foundation, Inc., | |
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | |
17 | * | |
18 | * The full GNU General Public License is included in this distribution in the | |
19 | * file called LICENSE. | |
20 | * | |
21 | * Contact Information: | |
22 | * Intel Linux Wireless <ilw@linux.intel.com> | |
23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | |
24 | * | |
25 | *****************************************************************************/ | |
26 | ||
27 | #include <linux/kernel.h> | |
28 | #include <linux/module.h> | |
29 | #include <linux/init.h> | |
30 | #include <linux/pci.h> | |
31 | #include <linux/dma-mapping.h> | |
32 | #include <linux/delay.h> | |
33 | #include <linux/skbuff.h> | |
34 | #include <linux/netdevice.h> | |
35 | #include <linux/wireless.h> | |
36 | #include <net/mac80211.h> | |
37 | #include <linux/etherdevice.h> | |
38 | #include <asm/unaligned.h> | |
39 | ||
40 | #include "iwl-eeprom.h" | |
41 | #include "iwl-dev.h" | |
42 | #include "iwl-core.h" | |
43 | #include "iwl-io.h" | |
44 | #include "iwl-sta.h" | |
a1175124 | 45 | #include "iwl-agn.h" |
e1228374 | 46 | #include "iwl-helpers.h" |
19e6cda0 | 47 | #include "iwl-agn-hw.h" |
f3a2a424 | 48 | #include "iwl-6000-hw.h" |
e932a609 | 49 | #include "iwl-agn-led.h" |
b8c76267 | 50 | #include "iwl-agn-debugfs.h" |
e1228374 JS |
51 | |
52 | /* Highest firmware API version supported */ | |
fcbaf8b0 WYG |
53 | #define IWL6000_UCODE_API_MAX 4 |
54 | #define IWL6050_UCODE_API_MAX 4 | |
670245ed | 55 | #define IWL6000G2_UCODE_API_MAX 5 |
e1228374 JS |
56 | |
57 | /* Lowest firmware API version supported */ | |
44246421 WYG |
58 | #define IWL6000_UCODE_API_MIN 4 |
59 | #define IWL6050_UCODE_API_MIN 4 | |
4b3e8062 | 60 | #define IWL6000G2_UCODE_API_MIN 4 |
e1228374 JS |
61 | |
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 | ||
95b13014 SZ |
70 | #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 | ||
1808972f SZ |
74 | #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 | ||
4b3e8062 | 78 | |
672639de WYG |
79 | static 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 | ||
d5755939 | 86 | /* Indicate calibration version to uCode. */ |
178d1596 | 87 | static void iwl6000_set_calib_version(struct iwl_priv *priv) |
d5755939 | 88 | { |
178d1596 WYG |
89 | if (priv->cfg->need_dc_calib && |
90 | (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)) | |
d5755939 AK |
91 | iwl_set_bit(priv, CSR_GP_DRIVER_REG, |
92 | CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6); | |
93 | } | |
94 | ||
65b7998a WYG |
95 | /* NIC configuration for 6000 series */ |
96 | static void iwl6000_nic_config(struct iwl_priv *priv) | |
97 | { | |
9371d4ed WYG |
98 | 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); | |
65b7998a WYG |
113 | |
114 | /* no locking required for register write */ | |
740e7f51 | 115 | if (priv->cfg->pa_type == IWL_PA_INTERNAL) { |
65b7998a WYG |
116 | /* 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 */ | |
d5755939 AK |
121 | if (priv->cfg->ops->lib->temp_ops.set_calib_version) |
122 | priv->cfg->ops->lib->temp_ops.set_calib_version(priv); | |
65b7998a WYG |
123 | } |
124 | ||
670245ed JB |
125 | /* |
126 | * Macros to access the lookup table. | |
127 | * | |
128 | * The lookup table has 7 inputs: bt3_prio, bt3_txrx, bt_rf_act, wifi_req, | |
129 | * wifi_prio, wifi_txrx and wifi_sh_ant_req. | |
130 | * | |
131 | * It has three outputs: WLAN_ACTIVE, WLAN_KILL and ANT_SWITCH | |
132 | * | |
133 | * The format is that "registers" 8 through 11 contain the WLAN_ACTIVE bits | |
134 | * one after another in 32-bit registers, and "registers" 0 through 7 contain | |
135 | * the WLAN_KILL and ANT_SWITCH bits interleaved (in that order). | |
136 | * | |
137 | * These macros encode that format. | |
138 | */ | |
139 | #define LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, wifi_req, wifi_prio, \ | |
140 | wifi_txrx, wifi_sh_ant_req) \ | |
141 | (bt3_prio | (bt3_txrx << 1) | (bt_rf_act << 2) | (wifi_req << 3) | \ | |
142 | (wifi_prio << 4) | (wifi_txrx << 5) | (wifi_sh_ant_req << 6)) | |
143 | ||
144 | #define LUT_PTA_WLAN_ACTIVE_OP(lut, op, val) \ | |
145 | lut[8 + ((val) >> 5)] op (cpu_to_le32(BIT((val) & 0x1f))) | |
146 | #define LUT_TEST_PTA_WLAN_ACTIVE(lut, bt3_prio, bt3_txrx, bt_rf_act, \ | |
147 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
148 | (!!(LUT_PTA_WLAN_ACTIVE_OP(lut, &, LUT_VALUE(bt3_prio, bt3_txrx,\ | |
149 | bt_rf_act, wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)))) | |
150 | #define LUT_SET_PTA_WLAN_ACTIVE(lut, bt3_prio, bt3_txrx, bt_rf_act, \ | |
151 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
152 | LUT_PTA_WLAN_ACTIVE_OP(lut, |=, LUT_VALUE(bt3_prio, bt3_txrx, \ | |
153 | bt_rf_act, wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)) | |
154 | #define LUT_CLEAR_PTA_WLAN_ACTIVE(lut, bt3_prio, bt3_txrx, bt_rf_act, \ | |
155 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
156 | LUT_PTA_WLAN_ACTIVE_OP(lut, &= ~, LUT_VALUE(bt3_prio, bt3_txrx, \ | |
157 | bt_rf_act, wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)) | |
158 | ||
159 | #define LUT_WLAN_KILL_OP(lut, op, val) \ | |
160 | lut[(val) >> 4] op (cpu_to_le32(BIT(((val) << 1) & 0x1e))) | |
161 | #define LUT_TEST_WLAN_KILL(lut, bt3_prio, bt3_txrx, bt_rf_act, wifi_req, \ | |
162 | wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
163 | (!!(LUT_WLAN_KILL_OP(lut, &, LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, \ | |
164 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)))) | |
165 | #define LUT_SET_WLAN_KILL(lut, bt3_prio, bt3_txrx, bt_rf_act, wifi_req, \ | |
166 | wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
167 | LUT_WLAN_KILL_OP(lut, |=, LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, \ | |
168 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)) | |
169 | #define LUT_CLEAR_WLAN_KILL(lut, bt3_prio, bt3_txrx, bt_rf_act, wifi_req, \ | |
170 | wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
171 | LUT_WLAN_KILL_OP(lut, &= ~, LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, \ | |
172 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)) | |
173 | ||
174 | #define LUT_ANT_SWITCH_OP(lut, op, val) \ | |
175 | lut[(val) >> 4] op (cpu_to_le32(BIT((((val) << 1) & 0x1e) + 1))) | |
176 | #define LUT_TEST_ANT_SWITCH(lut, bt3_prio, bt3_txrx, bt_rf_act, wifi_req, \ | |
177 | wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
178 | (!!(LUT_ANT_SWITCH_OP(lut, &, LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, \ | |
179 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)))) | |
180 | #define LUT_SET_ANT_SWITCH(lut, bt3_prio, bt3_txrx, bt_rf_act, wifi_req, \ | |
181 | wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
182 | LUT_ANT_SWITCH_OP(lut, |=, LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, \ | |
183 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)) | |
184 | #define LUT_CLEAR_ANT_SWITCH(lut, bt3_prio, bt3_txrx, bt_rf_act, wifi_req, \ | |
185 | wifi_prio, wifi_txrx, wifi_sh_ant_req) \ | |
186 | LUT_ANT_SWITCH_OP(lut, &= ~, LUT_VALUE(bt3_prio, bt3_txrx, bt_rf_act, \ | |
187 | wifi_req, wifi_prio, wifi_txrx, wifi_sh_ant_req)) | |
188 | ||
189 | static const __le32 iwl6000g2b_def_3w_lookup[12] = { | |
190 | cpu_to_le32(0xaaaaaaaa), | |
191 | cpu_to_le32(0xaaaaaaaa), | |
192 | cpu_to_le32(0xaeaaaaaa), | |
193 | cpu_to_le32(0xaaaaaaaa), | |
194 | cpu_to_le32(0xcc00ff28), | |
195 | cpu_to_le32(0x0000aaaa), | |
196 | cpu_to_le32(0xcc00aaaa), | |
197 | cpu_to_le32(0x0000aaaa), | |
198 | cpu_to_le32(0xc0004000), | |
199 | cpu_to_le32(0x00004000), | |
200 | cpu_to_le32(0xf0005000), | |
201 | cpu_to_le32(0xf0004000), | |
202 | }; | |
203 | ||
204 | static void iwl6000g2b_send_bt_config(struct iwl_priv *priv) | |
205 | { | |
206 | struct iwl6000g2b_bt_cmd bt_cmd = { | |
207 | .prio_boost = IWL6000G2B_BT_PRIO_BOOST_DEFAULT, | |
208 | .max_kill = IWL6000G2B_BT_MAX_KILL_DEFAULT, | |
209 | .bt3_timer_t7_value = IWL6000G2B_BT3_T7_DEFAULT, | |
210 | .kill_ack_mask = IWL6000G2B_BT_KILL_ACK_MASK_DEFAULT, | |
211 | .kill_cts_mask = IWL6000G2B_BT_KILL_CTS_MASK_DEFAULT, | |
212 | .bt3_prio_sample_time = IWL6000G2B_BT3_PRIO_SAMPLE_DEFAULT, | |
213 | .bt3_timer_t2_value = IWL6000G2B_BT3_T2_DEFAULT, | |
214 | .valid = IWL6000G2B_BT_VALID_ENABLE_FLAGS, | |
215 | }; | |
216 | ||
217 | BUILD_BUG_ON(sizeof(iwl6000g2b_def_3w_lookup) != | |
218 | sizeof(bt_cmd.bt3_lookup_table)); | |
219 | ||
220 | if (!bt_coex_active) { | |
221 | bt_cmd.flags = 0; | |
222 | } else { | |
223 | bt_cmd.flags = IWL6000G2B_BT_FLAG_CHANNEL_INHIBITION | | |
224 | IWL6000G2B_BT_FLAG_COEX_MODE_3W << | |
225 | IWL6000G2B_BT_FLAG_COEX_MODE_SHIFT; | |
226 | bt_cmd.valid |= IWL6000G2B_BT_ALL_VALID_MSK; | |
227 | } | |
228 | ||
229 | memcpy(bt_cmd.bt3_lookup_table, iwl6000g2b_def_3w_lookup, | |
230 | sizeof(iwl6000g2b_def_3w_lookup)); | |
231 | ||
232 | IWL_DEBUG_INFO(priv, "BT coex %s\n", | |
233 | bt_cmd.flags ? "active" : "disabled"); | |
234 | ||
235 | if (iwl_send_cmd_pdu(priv, REPLY_BT_CONFIG, sizeof(bt_cmd), &bt_cmd)) | |
236 | IWL_ERR(priv, "failed to send BT Coex Config\n"); | |
237 | } | |
238 | ||
f3a2a424 WYG |
239 | static struct iwl_sensitivity_ranges iwl6000_sensitivity = { |
240 | .min_nrg_cck = 97, | |
241 | .max_nrg_cck = 0, /* not used, set to 0 */ | |
242 | .auto_corr_min_ofdm = 80, | |
243 | .auto_corr_min_ofdm_mrc = 128, | |
244 | .auto_corr_min_ofdm_x1 = 105, | |
245 | .auto_corr_min_ofdm_mrc_x1 = 192, | |
246 | ||
247 | .auto_corr_max_ofdm = 145, | |
248 | .auto_corr_max_ofdm_mrc = 232, | |
2494f63c | 249 | .auto_corr_max_ofdm_x1 = 110, |
f3a2a424 WYG |
250 | .auto_corr_max_ofdm_mrc_x1 = 232, |
251 | ||
252 | .auto_corr_min_cck = 125, | |
253 | .auto_corr_max_cck = 175, | |
254 | .auto_corr_min_cck_mrc = 160, | |
255 | .auto_corr_max_cck_mrc = 310, | |
256 | .nrg_th_cck = 97, | |
257 | .nrg_th_ofdm = 100, | |
55036d66 WYG |
258 | |
259 | .barker_corr_th_min = 190, | |
260 | .barker_corr_th_min_mrc = 390, | |
261 | .nrg_th_cca = 62, | |
f3a2a424 WYG |
262 | }; |
263 | ||
264 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) | |
265 | { | |
88804e2b | 266 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
19e6cda0 | 267 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) |
88804e2b WYG |
268 | priv->cfg->num_of_queues = |
269 | priv->cfg->mod_params->num_of_queues; | |
f3a2a424 | 270 | |
88804e2b | 271 | priv->hw_params.max_txq_num = priv->cfg->num_of_queues; |
f3a2a424 WYG |
272 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
273 | priv->hw_params.scd_bc_tbls_size = | |
88804e2b | 274 | priv->cfg->num_of_queues * |
19e6cda0 | 275 | sizeof(struct iwlagn_scd_bc_tbl); |
f3a2a424 | 276 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
bf3c7fdd WYG |
277 | priv->hw_params.max_stations = IWLAGN_STATION_COUNT; |
278 | priv->hw_params.bcast_sta_id = IWLAGN_BROADCAST_ID; | |
f3a2a424 WYG |
279 | |
280 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; | |
281 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; | |
282 | ||
283 | priv->hw_params.max_bsm_size = 0; | |
284 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | |
285 | BIT(IEEE80211_BAND_5GHZ); | |
286 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | |
287 | ||
288 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | |
289 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); | |
290 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | |
291 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | |
292 | ||
293 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) | |
294 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); | |
295 | ||
296 | /* Set initial sensitivity parameters */ | |
297 | /* Set initial calibration set */ | |
298 | priv->hw_params.sens = &iwl6000_sensitivity; | |
e517736a WYG |
299 | priv->hw_params.calib_init_cfg = |
300 | BIT(IWL_CALIB_XTAL) | | |
301 | BIT(IWL_CALIB_LO) | | |
302 | BIT(IWL_CALIB_TX_IQ) | | |
303 | BIT(IWL_CALIB_BASE_BAND); | |
178d1596 WYG |
304 | if (priv->cfg->need_dc_calib) |
305 | priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC); | |
07f33f92 | 306 | |
a0ee74cf WYG |
307 | priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; |
308 | ||
f3a2a424 WYG |
309 | return 0; |
310 | } | |
311 | ||
79d07325 WYG |
312 | static int iwl6000_hw_channel_switch(struct iwl_priv *priv, |
313 | struct ieee80211_channel_switch *ch_switch) | |
4a56e965 WYG |
314 | { |
315 | struct iwl6000_channel_switch_cmd cmd; | |
316 | const struct iwl_channel_info *ch_info; | |
79d07325 WYG |
317 | u32 switch_time_in_usec, ucode_switch_time; |
318 | u16 ch; | |
319 | u32 tsf_low; | |
320 | u8 switch_count; | |
321 | u16 beacon_interval = le16_to_cpu(priv->rxon_timing.beacon_interval); | |
322 | struct ieee80211_vif *vif = priv->vif; | |
4a56e965 WYG |
323 | struct iwl_host_cmd hcmd = { |
324 | .id = REPLY_CHANNEL_SWITCH, | |
325 | .len = sizeof(cmd), | |
3839f7ce | 326 | .flags = CMD_SYNC, |
4a56e965 WYG |
327 | .data = &cmd, |
328 | }; | |
329 | ||
4a56e965 | 330 | cmd.band = priv->band == IEEE80211_BAND_2GHZ; |
81e95430 | 331 | ch = ch_switch->channel->hw_value; |
79d07325 WYG |
332 | IWL_DEBUG_11H(priv, "channel switch from %u to %u\n", |
333 | priv->active_rxon.channel, ch); | |
334 | cmd.channel = cpu_to_le16(ch); | |
0924e519 WYG |
335 | cmd.rxon_flags = priv->staging_rxon.flags; |
336 | cmd.rxon_filter_flags = priv->staging_rxon.filter_flags; | |
79d07325 WYG |
337 | switch_count = ch_switch->count; |
338 | tsf_low = ch_switch->timestamp & 0x0ffffffff; | |
339 | /* | |
340 | * calculate the ucode channel switch time | |
341 | * adding TSF as one of the factor for when to switch | |
342 | */ | |
343 | if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) { | |
344 | if (switch_count > ((priv->ucode_beacon_time - tsf_low) / | |
345 | beacon_interval)) { | |
346 | switch_count -= (priv->ucode_beacon_time - | |
347 | tsf_low) / beacon_interval; | |
348 | } else | |
349 | switch_count = 0; | |
350 | } | |
351 | if (switch_count <= 1) | |
352 | cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time); | |
353 | else { | |
354 | switch_time_in_usec = | |
355 | vif->bss_conf.beacon_int * switch_count * TIME_UNIT; | |
356 | ucode_switch_time = iwl_usecs_to_beacons(priv, | |
357 | switch_time_in_usec, | |
358 | beacon_interval); | |
359 | cmd.switch_time = iwl_add_beacon_time(priv, | |
360 | priv->ucode_beacon_time, | |
361 | ucode_switch_time, | |
362 | beacon_interval); | |
363 | } | |
364 | IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n", | |
365 | cmd.switch_time); | |
366 | ch_info = iwl_get_channel_info(priv, priv->band, ch); | |
4a56e965 WYG |
367 | if (ch_info) |
368 | cmd.expect_beacon = is_channel_radar(ch_info); | |
369 | else { | |
370 | IWL_ERR(priv, "invalid channel switch from %u to %u\n", | |
79d07325 | 371 | priv->active_rxon.channel, ch); |
4a56e965 WYG |
372 | return -EFAULT; |
373 | } | |
79d07325 | 374 | priv->switch_rxon.channel = cmd.channel; |
0924e519 | 375 | priv->switch_rxon.switch_in_progress = true; |
4a56e965 WYG |
376 | |
377 | return iwl_send_cmd_sync(priv, &hcmd); | |
378 | } | |
379 | ||
9e4afc21 JB |
380 | static void iwl6000g2b_bt_traffic_change_work(struct work_struct *work) |
381 | { | |
382 | struct iwl_priv *priv = | |
383 | container_of(work, struct iwl_priv, bt_traffic_change_work); | |
384 | int smps_request = -1; | |
385 | ||
386 | switch (priv->bt_traffic_load) { | |
387 | case IWL_BT_COEX_TRAFFIC_LOAD_NONE: | |
388 | smps_request = IEEE80211_SMPS_AUTOMATIC; | |
389 | break; | |
390 | case IWL_BT_COEX_TRAFFIC_LOAD_LOW: | |
391 | smps_request = IEEE80211_SMPS_DYNAMIC; | |
392 | break; | |
393 | case IWL_BT_COEX_TRAFFIC_LOAD_HIGH: | |
394 | case IWL_BT_COEX_TRAFFIC_LOAD_CONTINUOUS: | |
395 | smps_request = IEEE80211_SMPS_STATIC; | |
396 | break; | |
397 | default: | |
398 | IWL_ERR(priv, "Invalid BT traffic load: %d\n", | |
399 | priv->bt_traffic_load); | |
400 | break; | |
401 | } | |
402 | ||
403 | mutex_lock(&priv->mutex); | |
404 | ||
405 | if (smps_request != -1 && | |
406 | priv->vif && priv->vif->type == NL80211_IFTYPE_STATION) | |
407 | ieee80211_request_smps(priv->vif, smps_request); | |
408 | ||
409 | mutex_unlock(&priv->mutex); | |
410 | } | |
411 | ||
412 | static void iwl6000g2b_bt_coex_profile_notif(struct iwl_priv *priv, | |
413 | struct iwl_rx_mem_buffer *rxb) | |
414 | { | |
415 | struct iwl_rx_packet *pkt = rxb_addr(rxb); | |
416 | struct iwl_bt_coex_profile_notif *coex = &pkt->u.bt_coex_profile_notif; | |
417 | struct iwl6000g2b_bt_sco_cmd sco_cmd = { .flags = 0 }; | |
418 | ||
419 | IWL_DEBUG_NOTIF(priv, "BT Coex notification:\n"); | |
420 | IWL_DEBUG_NOTIF(priv, " status: %d\n", coex->bt_status); | |
421 | IWL_DEBUG_NOTIF(priv, " traffic load: %d\n", coex->bt_traffic_load); | |
422 | IWL_DEBUG_NOTIF(priv, " CI compliance: %d\n", coex->bt_ci_compliance); | |
423 | IWL_DEBUG_NOTIF(priv, " UART msg: %.2x:%.2x:%.2x:%.2x:%.2x:%.2x:" | |
424 | "%.2x:%.2x\n", | |
425 | coex->uart_msg[0], coex->uart_msg[1], coex->uart_msg[2], | |
426 | coex->uart_msg[3], coex->uart_msg[4], coex->uart_msg[5], | |
427 | coex->uart_msg[6], coex->uart_msg[7]); | |
428 | ||
429 | if (coex->bt_traffic_load != priv->bt_traffic_load) { | |
430 | priv->bt_traffic_load = coex->bt_traffic_load; | |
431 | ||
432 | queue_work(priv->workqueue, &priv->bt_traffic_change_work); | |
433 | } | |
434 | ||
435 | /* FIXME: add defines for this check */ | |
436 | priv->bt_sco_active = coex->uart_msg[3] & 1; | |
437 | if (priv->bt_sco_active) | |
438 | sco_cmd.flags |= IWL6000G2B_BT_SCO_ACTIVE; | |
439 | iwl_send_cmd_pdu_async(priv, REPLY_BT_COEX_SCO, | |
440 | sizeof(sco_cmd), &sco_cmd, NULL); | |
441 | } | |
442 | ||
443 | void iwl6000g2b_rx_handler_setup(struct iwl_priv *priv) | |
444 | { | |
445 | iwlagn_rx_handler_setup(priv); | |
446 | priv->rx_handlers[REPLY_BT_COEX_PROFILE_NOTIF] = | |
447 | iwl6000g2b_bt_coex_profile_notif; | |
448 | } | |
449 | ||
450 | static void iwl6000g2b_bt_setup_deferred_work(struct iwl_priv *priv) | |
451 | { | |
452 | iwlagn_setup_deferred_work(priv); | |
453 | ||
454 | INIT_WORK(&priv->bt_traffic_change_work, | |
455 | iwl6000g2b_bt_traffic_change_work); | |
456 | ||
457 | } | |
458 | ||
459 | static void iwl6000g2b_bt_cancel_deferred_work(struct iwl_priv *priv) | |
460 | { | |
461 | cancel_work_sync(&priv->bt_traffic_change_work); | |
462 | } | |
463 | ||
672639de | 464 | static struct iwl_lib_ops iwl6000_lib = { |
f3a2a424 | 465 | .set_hw_params = iwl6000_hw_set_hw_params, |
b305a080 WYG |
466 | .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl, |
467 | .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl, | |
468 | .txq_set_sched = iwlagn_txq_set_sched, | |
469 | .txq_agg_enable = iwlagn_txq_agg_enable, | |
470 | .txq_agg_disable = iwlagn_txq_agg_disable, | |
672639de WYG |
471 | .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, |
472 | .txq_free_tfd = iwl_hw_txq_free_tfd, | |
473 | .txq_init = iwl_hw_tx_queue_init, | |
e04ed0a5 WYG |
474 | .rx_handler_setup = iwlagn_rx_handler_setup, |
475 | .setup_deferred_work = iwlagn_setup_deferred_work, | |
476 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | |
81b8176e | 477 | .load_ucode = iwlagn_load_ucode, |
b7a79404 RC |
478 | .dump_nic_event_log = iwl_dump_nic_event_log, |
479 | .dump_nic_error_log = iwl_dump_nic_error_log, | |
696bdee3 | 480 | .dump_csr = iwl_dump_csr, |
1b3eb823 | 481 | .dump_fh = iwl_dump_fh, |
741a6266 WYG |
482 | .init_alive_start = iwlagn_init_alive_start, |
483 | .alive_notify = iwlagn_alive_notify, | |
e04ed0a5 | 484 | .send_tx_power = iwlagn_send_tx_power, |
672639de | 485 | .update_chain_flags = iwl_update_chain_flags, |
4a56e965 | 486 | .set_channel_switch = iwl6000_hw_channel_switch, |
672639de | 487 | .apm_ops = { |
fadb3582 | 488 | .init = iwl_apm_init, |
d68b603c | 489 | .stop = iwl_apm_stop, |
65b7998a | 490 | .config = iwl6000_nic_config, |
672639de WYG |
491 | .set_pwr_src = iwl_set_pwr_src, |
492 | }, | |
493 | .eeprom_ops = { | |
494 | .regulatory_bands = { | |
e04ed0a5 WYG |
495 | EEPROM_REG_BAND_1_CHANNELS, |
496 | EEPROM_REG_BAND_2_CHANNELS, | |
497 | EEPROM_REG_BAND_3_CHANNELS, | |
498 | EEPROM_REG_BAND_4_CHANNELS, | |
499 | EEPROM_REG_BAND_5_CHANNELS, | |
f2fa1b01 | 500 | EEPROM_6000_REG_BAND_24_HT40_CHANNELS, |
e04ed0a5 | 501 | EEPROM_REG_BAND_52_HT40_CHANNELS |
672639de WYG |
502 | }, |
503 | .verify_signature = iwlcore_eeprom_verify_signature, | |
504 | .acquire_semaphore = iwlcore_eeprom_acquire_semaphore, | |
505 | .release_semaphore = iwlcore_eeprom_release_semaphore, | |
e04ed0a5 WYG |
506 | .calib_version = iwlagn_eeprom_calib_version, |
507 | .query_addr = iwlagn_eeprom_query_addr, | |
ab9fd1bf | 508 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
672639de WYG |
509 | }, |
510 | .post_associate = iwl_post_associate, | |
511 | .isr = iwl_isr_ict, | |
512 | .config_ap = iwl_config_ap, | |
513 | .temp_ops = { | |
e04ed0a5 | 514 | .temperature = iwlagn_temperature, |
672639de | 515 | .set_ct_kill = iwl6000_set_ct_threshold, |
178d1596 | 516 | .set_calib_version = iwl6000_set_calib_version, |
672639de | 517 | }, |
1fa61b2e | 518 | .manage_ibss_station = iwlagn_manage_ibss_station, |
278c2f6f | 519 | .update_bcast_station = iwl_update_bcast_station, |
b8c76267 AK |
520 | .debugfs_ops = { |
521 | .rx_stats_read = iwl_ucode_rx_stats_read, | |
522 | .tx_stats_read = iwl_ucode_tx_stats_read, | |
523 | .general_stats_read = iwl_ucode_general_stats_read, | |
ffb7d896 | 524 | .bt_stats_read = iwl_ucode_bt_stats_read, |
b8c76267 | 525 | }, |
b74e31a9 | 526 | .recover_from_tx_stall = iwl_bg_monitor_recover, |
fa8f130c WYG |
527 | .check_plcp_health = iwl_good_plcp_health, |
528 | .check_ack_health = iwl_good_ack_health, | |
716c74b0 | 529 | .txfifo_flush = iwlagn_txfifo_flush, |
65550636 | 530 | .dev_txfifo_flush = iwlagn_dev_txfifo_flush, |
0975cc8f WYG |
531 | .tt_ops = { |
532 | .lower_power_detection = iwl_tt_is_low_power_state, | |
533 | .tt_power_mode = iwl_tt_current_power_mode, | |
534 | .ct_kill_check = iwl_check_for_ct_kill, | |
535 | } | |
672639de WYG |
536 | }; |
537 | ||
9e4afc21 JB |
538 | static struct iwl_lib_ops iwl6000g2b_lib = { |
539 | .set_hw_params = iwl6000_hw_set_hw_params, | |
540 | .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl, | |
541 | .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl, | |
542 | .txq_set_sched = iwlagn_txq_set_sched, | |
543 | .txq_agg_enable = iwlagn_txq_agg_enable, | |
544 | .txq_agg_disable = iwlagn_txq_agg_disable, | |
545 | .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, | |
546 | .txq_free_tfd = iwl_hw_txq_free_tfd, | |
547 | .txq_init = iwl_hw_tx_queue_init, | |
548 | .rx_handler_setup = iwl6000g2b_rx_handler_setup, | |
549 | .setup_deferred_work = iwl6000g2b_bt_setup_deferred_work, | |
550 | .cancel_deferred_work = iwl6000g2b_bt_cancel_deferred_work, | |
551 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | |
552 | .load_ucode = iwlagn_load_ucode, | |
553 | .dump_nic_event_log = iwl_dump_nic_event_log, | |
554 | .dump_nic_error_log = iwl_dump_nic_error_log, | |
555 | .dump_csr = iwl_dump_csr, | |
556 | .dump_fh = iwl_dump_fh, | |
557 | .init_alive_start = iwlagn_init_alive_start, | |
558 | .alive_notify = iwlagn_alive_notify, | |
559 | .send_tx_power = iwlagn_send_tx_power, | |
560 | .update_chain_flags = iwl_update_chain_flags, | |
561 | .set_channel_switch = iwl6000_hw_channel_switch, | |
562 | .apm_ops = { | |
563 | .init = iwl_apm_init, | |
564 | .stop = iwl_apm_stop, | |
565 | .config = iwl6000_nic_config, | |
566 | .set_pwr_src = iwl_set_pwr_src, | |
567 | }, | |
568 | .eeprom_ops = { | |
569 | .regulatory_bands = { | |
570 | EEPROM_REG_BAND_1_CHANNELS, | |
571 | EEPROM_REG_BAND_2_CHANNELS, | |
572 | EEPROM_REG_BAND_3_CHANNELS, | |
573 | EEPROM_REG_BAND_4_CHANNELS, | |
574 | EEPROM_REG_BAND_5_CHANNELS, | |
575 | EEPROM_6000_REG_BAND_24_HT40_CHANNELS, | |
576 | EEPROM_REG_BAND_52_HT40_CHANNELS | |
577 | }, | |
578 | .verify_signature = iwlcore_eeprom_verify_signature, | |
579 | .acquire_semaphore = iwlcore_eeprom_acquire_semaphore, | |
580 | .release_semaphore = iwlcore_eeprom_release_semaphore, | |
581 | .calib_version = iwlagn_eeprom_calib_version, | |
582 | .query_addr = iwlagn_eeprom_query_addr, | |
583 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | |
584 | }, | |
585 | .post_associate = iwl_post_associate, | |
586 | .isr = iwl_isr_ict, | |
587 | .config_ap = iwl_config_ap, | |
588 | .temp_ops = { | |
589 | .temperature = iwlagn_temperature, | |
590 | .set_ct_kill = iwl6000_set_ct_threshold, | |
591 | .set_calib_version = iwl6000_set_calib_version, | |
592 | }, | |
593 | .manage_ibss_station = iwlagn_manage_ibss_station, | |
594 | .update_bcast_station = iwl_update_bcast_station, | |
595 | .debugfs_ops = { | |
596 | .rx_stats_read = iwl_ucode_rx_stats_read, | |
597 | .tx_stats_read = iwl_ucode_tx_stats_read, | |
598 | .general_stats_read = iwl_ucode_general_stats_read, | |
599 | .bt_stats_read = iwl_ucode_bt_stats_read, | |
600 | }, | |
601 | .recover_from_tx_stall = iwl_bg_monitor_recover, | |
602 | .check_plcp_health = iwl_good_plcp_health, | |
603 | .check_ack_health = iwl_good_ack_health, | |
604 | .txfifo_flush = iwlagn_txfifo_flush, | |
605 | .dev_txfifo_flush = iwlagn_dev_txfifo_flush, | |
606 | .tt_ops = { | |
607 | .lower_power_detection = iwl_tt_is_low_power_state, | |
608 | .tt_power_mode = iwl_tt_current_power_mode, | |
609 | .ct_kill_check = iwl_check_for_ct_kill, | |
610 | } | |
611 | }; | |
612 | ||
45d5d805 | 613 | static const struct iwl_ops iwl6000_ops = { |
672639de | 614 | .lib = &iwl6000_lib, |
7dc77dba WYG |
615 | .hcmd = &iwlagn_hcmd, |
616 | .utils = &iwlagn_hcmd_utils, | |
e932a609 | 617 | .led = &iwlagn_led_ops, |
29f35c14 JS |
618 | }; |
619 | ||
1808972f SZ |
620 | static struct iwl_hcmd_ops iwl6000g2b_hcmd = { |
621 | .rxon_assoc = iwlagn_send_rxon_assoc, | |
622 | .commit_rxon = iwl_commit_rxon, | |
623 | .set_rxon_chain = iwl_set_rxon_chain, | |
624 | .set_tx_ant = iwlagn_send_tx_ant_config, | |
670245ed | 625 | .send_bt_config = iwl6000g2b_send_bt_config, |
1808972f SZ |
626 | }; |
627 | ||
628 | static const struct iwl_ops iwl6000g2b_ops = { | |
9e4afc21 | 629 | .lib = &iwl6000g2b_lib, |
1808972f SZ |
630 | .hcmd = &iwl6000g2b_hcmd, |
631 | .utils = &iwlagn_hcmd_utils, | |
632 | .led = &iwlagn_led_ops, | |
633 | }; | |
634 | ||
95b13014 SZ |
635 | struct iwl_cfg iwl6000g2a_2agn_cfg = { |
636 | .name = "6000 Series 2x2 AGN Gen2a", | |
637 | .fw_name_pre = IWL6000G2A_FW_PRE, | |
4b3e8062 SZ |
638 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
639 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
0b5af201 JS |
640 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
641 | .ops = &iwl6000_ops, | |
642 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
4b3e8062 SZ |
643 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
644 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
0b5af201 JS |
645 | .num_of_queues = IWLAGN_NUM_QUEUES, |
646 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
647 | .mod_params = &iwlagn_mod_params, | |
648 | .valid_tx_ant = ANT_AB, | |
649 | .valid_rx_ant = ANT_AB, | |
650 | .pll_cfg_val = 0, | |
651 | .set_l0s = true, | |
652 | .use_bsm = false, | |
33e6f816 | 653 | .pa_type = IWL_PA_SYSTEM, |
0b5af201 JS |
654 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
655 | .shadow_ram_support = true, | |
656 | .ht_greenfield_support = true, | |
657 | .led_compensation = 51, | |
94597ab2 | 658 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
0b5af201 JS |
659 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
660 | .supports_idle = true, | |
661 | .adv_thermal_throttle = true, | |
662 | .support_ct_kill_exit = true, | |
663 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
664 | .chain_noise_scale = 1000, | |
ce60659a | 665 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
95b13014 | 666 | .max_event_log_size = 512, |
6e5c800e | 667 | .ucode_tracing = true, |
65d1f896 WYG |
668 | .sensitivity_calib_by_driver = true, |
669 | .chain_noise_calib_by_driver = true, | |
178d1596 | 670 | .need_dc_calib = true, |
0b5af201 JS |
671 | }; |
672 | ||
1808972f SZ |
673 | struct iwl_cfg iwl6000g2a_2abg_cfg = { |
674 | .name = "6000 Series 2x2 ABG Gen2a", | |
675 | .fw_name_pre = IWL6000G2A_FW_PRE, | |
676 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
677 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
678 | .sku = IWL_SKU_A|IWL_SKU_G, | |
679 | .ops = &iwl6000_ops, | |
680 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
681 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
682 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
683 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
684 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
685 | .mod_params = &iwlagn_mod_params, | |
686 | .valid_tx_ant = ANT_AB, | |
687 | .valid_rx_ant = ANT_AB, | |
688 | .pll_cfg_val = 0, | |
689 | .set_l0s = true, | |
690 | .use_bsm = false, | |
691 | .pa_type = IWL_PA_SYSTEM, | |
692 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
693 | .shadow_ram_support = true, | |
694 | .led_compensation = 51, | |
695 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | |
696 | .supports_idle = true, | |
697 | .adv_thermal_throttle = true, | |
698 | .support_ct_kill_exit = true, | |
699 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
700 | .chain_noise_scale = 1000, | |
ce60659a | 701 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
1808972f | 702 | .max_event_log_size = 512, |
679db794 WYG |
703 | .sensitivity_calib_by_driver = true, |
704 | .chain_noise_calib_by_driver = true, | |
178d1596 | 705 | .need_dc_calib = true, |
1808972f SZ |
706 | }; |
707 | ||
708 | struct iwl_cfg iwl6000g2a_2bg_cfg = { | |
709 | .name = "6000 Series 2x2 BG Gen2a", | |
710 | .fw_name_pre = IWL6000G2A_FW_PRE, | |
711 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
712 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
713 | .sku = IWL_SKU_G, | |
714 | .ops = &iwl6000_ops, | |
715 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
716 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
717 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
718 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
719 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
720 | .mod_params = &iwlagn_mod_params, | |
721 | .valid_tx_ant = ANT_AB, | |
722 | .valid_rx_ant = ANT_AB, | |
723 | .pll_cfg_val = 0, | |
724 | .set_l0s = true, | |
725 | .use_bsm = false, | |
726 | .pa_type = IWL_PA_SYSTEM, | |
727 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
728 | .shadow_ram_support = true, | |
729 | .led_compensation = 51, | |
730 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | |
731 | .supports_idle = true, | |
732 | .adv_thermal_throttle = true, | |
733 | .support_ct_kill_exit = true, | |
734 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
735 | .chain_noise_scale = 1000, | |
ce60659a | 736 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
1808972f | 737 | .max_event_log_size = 512, |
679db794 WYG |
738 | .sensitivity_calib_by_driver = true, |
739 | .chain_noise_calib_by_driver = true, | |
178d1596 | 740 | .need_dc_calib = true, |
1808972f SZ |
741 | }; |
742 | ||
743 | struct iwl_cfg iwl6000g2b_2agn_cfg = { | |
744 | .name = "6000 Series 2x2 AGN Gen2b", | |
745 | .fw_name_pre = IWL6000G2B_FW_PRE, | |
746 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
747 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
748 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | |
749 | .ops = &iwl6000g2b_ops, | |
750 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
751 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
752 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
753 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
754 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
755 | .mod_params = &iwlagn_mod_params, | |
756 | .valid_tx_ant = ANT_AB, | |
757 | .valid_rx_ant = ANT_AB, | |
758 | .pll_cfg_val = 0, | |
759 | .set_l0s = true, | |
760 | .use_bsm = false, | |
761 | .pa_type = IWL_PA_SYSTEM, | |
762 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
763 | .shadow_ram_support = true, | |
764 | .ht_greenfield_support = true, | |
765 | .led_compensation = 51, | |
94597ab2 | 766 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
1808972f SZ |
767 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
768 | .supports_idle = true, | |
769 | .adv_thermal_throttle = true, | |
770 | .support_ct_kill_exit = true, | |
771 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
772 | .chain_noise_scale = 1000, | |
3198c68c | 773 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
1808972f | 774 | .max_event_log_size = 512, |
679db794 WYG |
775 | .sensitivity_calib_by_driver = true, |
776 | .chain_noise_calib_by_driver = true, | |
178d1596 | 777 | .need_dc_calib = true, |
af8ee055 | 778 | .bt_statistics = true, |
670245ed JB |
779 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ |
780 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | |
781 | .advanced_bt_coexist = true, | |
1808972f SZ |
782 | }; |
783 | ||
784 | struct iwl_cfg iwl6000g2b_2abg_cfg = { | |
785 | .name = "6000 Series 2x2 ABG Gen2b", | |
786 | .fw_name_pre = IWL6000G2B_FW_PRE, | |
787 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
788 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
789 | .sku = IWL_SKU_A|IWL_SKU_G, | |
790 | .ops = &iwl6000g2b_ops, | |
791 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
792 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
793 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
794 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
795 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
796 | .mod_params = &iwlagn_mod_params, | |
797 | .valid_tx_ant = ANT_AB, | |
798 | .valid_rx_ant = ANT_AB, | |
799 | .pll_cfg_val = 0, | |
800 | .set_l0s = true, | |
801 | .use_bsm = false, | |
802 | .pa_type = IWL_PA_SYSTEM, | |
803 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
804 | .shadow_ram_support = true, | |
805 | .led_compensation = 51, | |
806 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | |
807 | .supports_idle = true, | |
808 | .adv_thermal_throttle = true, | |
809 | .support_ct_kill_exit = true, | |
810 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
811 | .chain_noise_scale = 1000, | |
3198c68c | 812 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
1808972f | 813 | .max_event_log_size = 512, |
679db794 WYG |
814 | .sensitivity_calib_by_driver = true, |
815 | .chain_noise_calib_by_driver = true, | |
178d1596 | 816 | .need_dc_calib = true, |
af8ee055 | 817 | .bt_statistics = true, |
670245ed JB |
818 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ |
819 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | |
820 | .advanced_bt_coexist = true, | |
1808972f SZ |
821 | }; |
822 | ||
9f6e1baf SZ |
823 | struct iwl_cfg iwl6000g2b_2bgn_cfg = { |
824 | .name = "6000 Series 2x2 BGN Gen2b", | |
825 | .fw_name_pre = IWL6000G2B_FW_PRE, | |
826 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
827 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
828 | .sku = IWL_SKU_G|IWL_SKU_N, | |
829 | .ops = &iwl6000g2b_ops, | |
830 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
831 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
832 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
833 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
834 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
835 | .mod_params = &iwlagn_mod_params, | |
836 | .valid_tx_ant = ANT_AB, | |
837 | .valid_rx_ant = ANT_AB, | |
838 | .pll_cfg_val = 0, | |
839 | .set_l0s = true, | |
840 | .use_bsm = false, | |
841 | .pa_type = IWL_PA_SYSTEM, | |
842 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
843 | .shadow_ram_support = true, | |
844 | .ht_greenfield_support = true, | |
845 | .led_compensation = 51, | |
94597ab2 | 846 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
9f6e1baf SZ |
847 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
848 | .supports_idle = true, | |
849 | .adv_thermal_throttle = true, | |
850 | .support_ct_kill_exit = true, | |
851 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
852 | .chain_noise_scale = 1000, | |
3198c68c | 853 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
9f6e1baf | 854 | .max_event_log_size = 512, |
679db794 WYG |
855 | .sensitivity_calib_by_driver = true, |
856 | .chain_noise_calib_by_driver = true, | |
178d1596 | 857 | .need_dc_calib = true, |
af8ee055 | 858 | .bt_statistics = true, |
670245ed JB |
859 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ |
860 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | |
861 | .advanced_bt_coexist = true, | |
9f6e1baf SZ |
862 | }; |
863 | ||
1808972f SZ |
864 | struct iwl_cfg iwl6000g2b_2bg_cfg = { |
865 | .name = "6000 Series 2x2 BG Gen2b", | |
866 | .fw_name_pre = IWL6000G2B_FW_PRE, | |
867 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
868 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
869 | .sku = IWL_SKU_G, | |
870 | .ops = &iwl6000g2b_ops, | |
871 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
872 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
873 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
874 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
875 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
876 | .mod_params = &iwlagn_mod_params, | |
877 | .valid_tx_ant = ANT_AB, | |
878 | .valid_rx_ant = ANT_AB, | |
879 | .pll_cfg_val = 0, | |
880 | .set_l0s = true, | |
881 | .use_bsm = false, | |
882 | .pa_type = IWL_PA_SYSTEM, | |
883 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
884 | .shadow_ram_support = true, | |
885 | .led_compensation = 51, | |
886 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | |
887 | .supports_idle = true, | |
888 | .adv_thermal_throttle = true, | |
889 | .support_ct_kill_exit = true, | |
890 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
891 | .chain_noise_scale = 1000, | |
3198c68c | 892 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
1808972f | 893 | .max_event_log_size = 512, |
679db794 WYG |
894 | .sensitivity_calib_by_driver = true, |
895 | .chain_noise_calib_by_driver = true, | |
178d1596 | 896 | .need_dc_calib = true, |
af8ee055 | 897 | .bt_statistics = true, |
670245ed JB |
898 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ |
899 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | |
900 | .advanced_bt_coexist = true, | |
1808972f SZ |
901 | }; |
902 | ||
903 | struct iwl_cfg iwl6000g2b_bgn_cfg = { | |
904 | .name = "6000 Series 1x2 BGN Gen2b", | |
905 | .fw_name_pre = IWL6000G2B_FW_PRE, | |
906 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
907 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
908 | .sku = IWL_SKU_G|IWL_SKU_N, | |
909 | .ops = &iwl6000g2b_ops, | |
910 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
911 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
912 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
913 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
914 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
915 | .mod_params = &iwlagn_mod_params, | |
916 | .valid_tx_ant = ANT_A, | |
917 | .valid_rx_ant = ANT_AB, | |
918 | .pll_cfg_val = 0, | |
919 | .set_l0s = true, | |
920 | .use_bsm = false, | |
921 | .pa_type = IWL_PA_SYSTEM, | |
922 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
923 | .shadow_ram_support = true, | |
924 | .ht_greenfield_support = true, | |
925 | .led_compensation = 51, | |
94597ab2 | 926 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
1808972f SZ |
927 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
928 | .supports_idle = true, | |
929 | .adv_thermal_throttle = true, | |
930 | .support_ct_kill_exit = true, | |
931 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
932 | .chain_noise_scale = 1000, | |
3198c68c | 933 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
1808972f | 934 | .max_event_log_size = 512, |
679db794 WYG |
935 | .sensitivity_calib_by_driver = true, |
936 | .chain_noise_calib_by_driver = true, | |
178d1596 | 937 | .need_dc_calib = true, |
af8ee055 | 938 | .bt_statistics = true, |
670245ed JB |
939 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ |
940 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | |
941 | .advanced_bt_coexist = true, | |
1808972f SZ |
942 | }; |
943 | ||
944 | struct iwl_cfg iwl6000g2b_bg_cfg = { | |
945 | .name = "6000 Series 1x2 BG Gen2b", | |
946 | .fw_name_pre = IWL6000G2B_FW_PRE, | |
947 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, | |
948 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, | |
949 | .sku = IWL_SKU_G, | |
950 | .ops = &iwl6000g2b_ops, | |
951 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
952 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | |
953 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | |
954 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
955 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
956 | .mod_params = &iwlagn_mod_params, | |
957 | .valid_tx_ant = ANT_A, | |
958 | .valid_rx_ant = ANT_AB, | |
959 | .pll_cfg_val = 0, | |
960 | .set_l0s = true, | |
961 | .use_bsm = false, | |
962 | .pa_type = IWL_PA_SYSTEM, | |
963 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
964 | .shadow_ram_support = true, | |
965 | .led_compensation = 51, | |
966 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | |
967 | .supports_idle = true, | |
968 | .adv_thermal_throttle = true, | |
969 | .support_ct_kill_exit = true, | |
970 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
971 | .chain_noise_scale = 1000, | |
3198c68c | 972 | .monitor_recover_period = IWL_LONG_MONITORING_PERIOD, |
1808972f | 973 | .max_event_log_size = 512, |
679db794 WYG |
974 | .sensitivity_calib_by_driver = true, |
975 | .chain_noise_calib_by_driver = true, | |
178d1596 | 976 | .need_dc_calib = true, |
af8ee055 | 977 | .bt_statistics = true, |
670245ed JB |
978 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ |
979 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | |
980 | .advanced_bt_coexist = true, | |
1808972f SZ |
981 | }; |
982 | ||
95b13014 SZ |
983 | /* |
984 | * "i": Internal configuration, use internal Power Amplifier | |
985 | */ | |
65b7998a | 986 | struct iwl_cfg iwl6000i_2agn_cfg = { |
c11362c0 | 987 | .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", |
65b7998a WYG |
988 | .fw_name_pre = IWL6000_FW_PRE, |
989 | .ucode_api_max = IWL6000_UCODE_API_MAX, | |
990 | .ucode_api_min = IWL6000_UCODE_API_MIN, | |
991 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | |
992 | .ops = &iwl6000_ops, | |
415e4993 | 993 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
1f4b9665 | 994 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
00e70590 | 995 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
19e6cda0 WYG |
996 | .num_of_queues = IWLAGN_NUM_QUEUES, |
997 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
348ee7cd | 998 | .mod_params = &iwlagn_mod_params, |
65b7998a WYG |
999 | .valid_tx_ant = ANT_BC, |
1000 | .valid_rx_ant = ANT_BC, | |
fadb3582 | 1001 | .pll_cfg_val = 0, |
a6c5c731 | 1002 | .set_l0s = true, |
fadb3582 | 1003 | .use_bsm = false, |
65b7998a | 1004 | .pa_type = IWL_PA_INTERNAL, |
415e4993 WYG |
1005 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
1006 | .shadow_ram_support = true, | |
b261793d | 1007 | .ht_greenfield_support = true, |
f2d0d0e2 | 1008 | .led_compensation = 51, |
94597ab2 | 1009 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
d8c07e7a | 1010 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
78f5fb7f | 1011 | .supports_idle = true, |
6047b4f9 | 1012 | .adv_thermal_throttle = true, |
480e8407 | 1013 | .support_ct_kill_exit = true, |
3e4fb5fa | 1014 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
d4fe5ac9 | 1015 | .chain_noise_scale = 1000, |
ce60659a | 1016 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
678b385d | 1017 | .max_event_log_size = 1024, |
6e5c800e | 1018 | .ucode_tracing = true, |
65d1f896 WYG |
1019 | .sensitivity_calib_by_driver = true, |
1020 | .chain_noise_calib_by_driver = true, | |
e1228374 JS |
1021 | }; |
1022 | ||
5953a62e | 1023 | struct iwl_cfg iwl6000i_2abg_cfg = { |
c11362c0 | 1024 | .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG", |
5953a62e WYG |
1025 | .fw_name_pre = IWL6000_FW_PRE, |
1026 | .ucode_api_max = IWL6000_UCODE_API_MAX, | |
1027 | .ucode_api_min = IWL6000_UCODE_API_MIN, | |
1028 | .sku = IWL_SKU_A|IWL_SKU_G, | |
1029 | .ops = &iwl6000_ops, | |
1030 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
1031 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | |
00e70590 | 1032 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
19e6cda0 WYG |
1033 | .num_of_queues = IWLAGN_NUM_QUEUES, |
1034 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
348ee7cd | 1035 | .mod_params = &iwlagn_mod_params, |
5953a62e WYG |
1036 | .valid_tx_ant = ANT_BC, |
1037 | .valid_rx_ant = ANT_BC, | |
fadb3582 | 1038 | .pll_cfg_val = 0, |
a6c5c731 | 1039 | .set_l0s = true, |
fadb3582 | 1040 | .use_bsm = false, |
5953a62e WYG |
1041 | .pa_type = IWL_PA_INTERNAL, |
1042 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
1043 | .shadow_ram_support = true, | |
5953a62e | 1044 | .led_compensation = 51, |
d8c07e7a | 1045 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
78f5fb7f | 1046 | .supports_idle = true, |
6047b4f9 | 1047 | .adv_thermal_throttle = true, |
480e8407 | 1048 | .support_ct_kill_exit = true, |
3e4fb5fa | 1049 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
d4fe5ac9 | 1050 | .chain_noise_scale = 1000, |
ce60659a | 1051 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
678b385d | 1052 | .max_event_log_size = 1024, |
6e5c800e | 1053 | .ucode_tracing = true, |
65d1f896 WYG |
1054 | .sensitivity_calib_by_driver = true, |
1055 | .chain_noise_calib_by_driver = true, | |
5953a62e WYG |
1056 | }; |
1057 | ||
1058 | struct iwl_cfg iwl6000i_2bg_cfg = { | |
c11362c0 | 1059 | .name = "Intel(R) Centrino(R) Advanced-N 6200 BG", |
5953a62e WYG |
1060 | .fw_name_pre = IWL6000_FW_PRE, |
1061 | .ucode_api_max = IWL6000_UCODE_API_MAX, | |
1062 | .ucode_api_min = IWL6000_UCODE_API_MIN, | |
1063 | .sku = IWL_SKU_G, | |
1064 | .ops = &iwl6000_ops, | |
1065 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
1066 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | |
00e70590 | 1067 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
19e6cda0 WYG |
1068 | .num_of_queues = IWLAGN_NUM_QUEUES, |
1069 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
348ee7cd | 1070 | .mod_params = &iwlagn_mod_params, |
5953a62e WYG |
1071 | .valid_tx_ant = ANT_BC, |
1072 | .valid_rx_ant = ANT_BC, | |
fadb3582 | 1073 | .pll_cfg_val = 0, |
a6c5c731 | 1074 | .set_l0s = true, |
fadb3582 | 1075 | .use_bsm = false, |
5953a62e WYG |
1076 | .pa_type = IWL_PA_INTERNAL, |
1077 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, | |
1078 | .shadow_ram_support = true, | |
5953a62e | 1079 | .led_compensation = 51, |
d8c07e7a | 1080 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
78f5fb7f | 1081 | .supports_idle = true, |
6047b4f9 | 1082 | .adv_thermal_throttle = true, |
480e8407 | 1083 | .support_ct_kill_exit = true, |
3e4fb5fa | 1084 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
d4fe5ac9 | 1085 | .chain_noise_scale = 1000, |
ce60659a | 1086 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
678b385d | 1087 | .max_event_log_size = 1024, |
6e5c800e | 1088 | .ucode_tracing = true, |
65d1f896 WYG |
1089 | .sensitivity_calib_by_driver = true, |
1090 | .chain_noise_calib_by_driver = true, | |
5953a62e WYG |
1091 | }; |
1092 | ||
e1228374 | 1093 | struct iwl_cfg iwl6050_2agn_cfg = { |
c11362c0 | 1094 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", |
e1228374 JS |
1095 | .fw_name_pre = IWL6050_FW_PRE, |
1096 | .ucode_api_max = IWL6050_UCODE_API_MAX, | |
1097 | .ucode_api_min = IWL6050_UCODE_API_MIN, | |
1098 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | |
178d1596 | 1099 | .ops = &iwl6000_ops, |
415e4993 | 1100 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
32b7e244 | 1101 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
00e70590 | 1102 | .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, |
19e6cda0 WYG |
1103 | .num_of_queues = IWLAGN_NUM_QUEUES, |
1104 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
348ee7cd | 1105 | .mod_params = &iwlagn_mod_params, |
542cc793 JS |
1106 | .valid_tx_ant = ANT_AB, |
1107 | .valid_rx_ant = ANT_AB, | |
fadb3582 | 1108 | .pll_cfg_val = 0, |
a6c5c731 | 1109 | .set_l0s = true, |
fadb3582 | 1110 | .use_bsm = false, |
65b7998a | 1111 | .pa_type = IWL_PA_SYSTEM, |
3ab312a8 | 1112 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
415e4993 | 1113 | .shadow_ram_support = true, |
b261793d | 1114 | .ht_greenfield_support = true, |
f2d0d0e2 | 1115 | .led_compensation = 51, |
94597ab2 | 1116 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
d8c07e7a | 1117 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
03264339 SZ |
1118 | .supports_idle = true, |
1119 | .adv_thermal_throttle = true, | |
1120 | .support_ct_kill_exit = true, | |
1121 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | |
1122 | .chain_noise_scale = 1500, | |
ce60659a | 1123 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
03264339 SZ |
1124 | .max_event_log_size = 1024, |
1125 | .ucode_tracing = true, | |
1126 | .sensitivity_calib_by_driver = true, | |
1127 | .chain_noise_calib_by_driver = true, | |
1128 | .need_dc_calib = true, | |
1129 | }; | |
1130 | ||
1131 | struct iwl_cfg iwl6050g2_bgn_cfg = { | |
1132 | .name = "6050 Series 1x2 BGN Gen2", | |
1133 | .fw_name_pre = IWL6050_FW_PRE, | |
1134 | .ucode_api_max = IWL6050_UCODE_API_MAX, | |
1135 | .ucode_api_min = IWL6050_UCODE_API_MIN, | |
1136 | .sku = IWL_SKU_G|IWL_SKU_N, | |
1137 | .ops = &iwl6000_ops, | |
1138 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | |
1139 | .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION, | |
1140 | .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION, | |
1141 | .num_of_queues = IWLAGN_NUM_QUEUES, | |
1142 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
1143 | .mod_params = &iwlagn_mod_params, | |
1144 | .valid_tx_ant = ANT_A, | |
1145 | .valid_rx_ant = ANT_AB, | |
1146 | .pll_cfg_val = 0, | |
1147 | .set_l0s = true, | |
1148 | .use_bsm = false, | |
1149 | .pa_type = IWL_PA_SYSTEM, | |
1150 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, | |
1151 | .shadow_ram_support = true, | |
1152 | .ht_greenfield_support = true, | |
1153 | .led_compensation = 51, | |
94597ab2 | 1154 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
03264339 | 1155 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
78f5fb7f | 1156 | .supports_idle = true, |
6047b4f9 | 1157 | .adv_thermal_throttle = true, |
480e8407 | 1158 | .support_ct_kill_exit = true, |
3e4fb5fa | 1159 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
d4fe5ac9 | 1160 | .chain_noise_scale = 1500, |
ce60659a | 1161 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
678b385d | 1162 | .max_event_log_size = 1024, |
6e5c800e | 1163 | .ucode_tracing = true, |
65d1f896 WYG |
1164 | .sensitivity_calib_by_driver = true, |
1165 | .chain_noise_calib_by_driver = true, | |
178d1596 | 1166 | .need_dc_calib = true, |
e1228374 JS |
1167 | }; |
1168 | ||
5953a62e | 1169 | struct iwl_cfg iwl6050_2abg_cfg = { |
c11362c0 | 1170 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG", |
5953a62e WYG |
1171 | .fw_name_pre = IWL6050_FW_PRE, |
1172 | .ucode_api_max = IWL6050_UCODE_API_MAX, | |
1173 | .ucode_api_min = IWL6050_UCODE_API_MIN, | |
1174 | .sku = IWL_SKU_A|IWL_SKU_G, | |
178d1596 | 1175 | .ops = &iwl6000_ops, |
5953a62e | 1176 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
32b7e244 | 1177 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
00e70590 | 1178 | .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, |
19e6cda0 WYG |
1179 | .num_of_queues = IWLAGN_NUM_QUEUES, |
1180 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
348ee7cd | 1181 | .mod_params = &iwlagn_mod_params, |
5953a62e WYG |
1182 | .valid_tx_ant = ANT_AB, |
1183 | .valid_rx_ant = ANT_AB, | |
fadb3582 | 1184 | .pll_cfg_val = 0, |
a6c5c731 | 1185 | .set_l0s = true, |
fadb3582 | 1186 | .use_bsm = false, |
5953a62e | 1187 | .pa_type = IWL_PA_SYSTEM, |
3ab312a8 | 1188 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
5953a62e | 1189 | .shadow_ram_support = true, |
5953a62e | 1190 | .led_compensation = 51, |
d8c07e7a | 1191 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
78f5fb7f | 1192 | .supports_idle = true, |
6047b4f9 | 1193 | .adv_thermal_throttle = true, |
480e8407 | 1194 | .support_ct_kill_exit = true, |
3e4fb5fa | 1195 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
d4fe5ac9 | 1196 | .chain_noise_scale = 1500, |
ce60659a | 1197 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
678b385d | 1198 | .max_event_log_size = 1024, |
6e5c800e | 1199 | .ucode_tracing = true, |
65d1f896 WYG |
1200 | .sensitivity_calib_by_driver = true, |
1201 | .chain_noise_calib_by_driver = true, | |
178d1596 | 1202 | .need_dc_calib = true, |
5953a62e WYG |
1203 | }; |
1204 | ||
e1228374 | 1205 | struct iwl_cfg iwl6000_3agn_cfg = { |
c11362c0 | 1206 | .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN", |
e1228374 JS |
1207 | .fw_name_pre = IWL6000_FW_PRE, |
1208 | .ucode_api_max = IWL6000_UCODE_API_MAX, | |
1209 | .ucode_api_min = IWL6000_UCODE_API_MIN, | |
1210 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | |
29f35c14 | 1211 | .ops = &iwl6000_ops, |
415e4993 | 1212 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
1f4b9665 | 1213 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
00e70590 | 1214 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
19e6cda0 WYG |
1215 | .num_of_queues = IWLAGN_NUM_QUEUES, |
1216 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | |
348ee7cd | 1217 | .mod_params = &iwlagn_mod_params, |
c0bac76a JS |
1218 | .valid_tx_ant = ANT_ABC, |
1219 | .valid_rx_ant = ANT_ABC, | |
fadb3582 | 1220 | .pll_cfg_val = 0, |
a6c5c731 | 1221 | .set_l0s = true, |
fadb3582 | 1222 | .use_bsm = false, |
65b7998a | 1223 | .pa_type = IWL_PA_SYSTEM, |
415e4993 WYG |
1224 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
1225 | .shadow_ram_support = true, | |
b261793d | 1226 | .ht_greenfield_support = true, |
f2d0d0e2 | 1227 | .led_compensation = 51, |
94597ab2 | 1228 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
d8c07e7a | 1229 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
78f5fb7f | 1230 | .supports_idle = true, |
6047b4f9 | 1231 | .adv_thermal_throttle = true, |
480e8407 | 1232 | .support_ct_kill_exit = true, |
3e4fb5fa | 1233 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
d4fe5ac9 | 1234 | .chain_noise_scale = 1000, |
ce60659a | 1235 | .monitor_recover_period = IWL_DEF_MONITORING_PERIOD, |
678b385d | 1236 | .max_event_log_size = 1024, |
6e5c800e | 1237 | .ucode_tracing = true, |
65d1f896 WYG |
1238 | .sensitivity_calib_by_driver = true, |
1239 | .chain_noise_calib_by_driver = true, | |
e1228374 JS |
1240 | }; |
1241 | ||
e1228374 JS |
1242 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |
1243 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); | |
95b13014 | 1244 | MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); |
1808972f | 1245 | MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); |