aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-6000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-6000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c305
1 files changed, 249 insertions, 56 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index 1473452ba22f..74e571049273 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -44,14 +44,16 @@
44#include "iwl-sta.h" 44#include "iwl-sta.h"
45#include "iwl-helpers.h" 45#include "iwl-helpers.h"
46#include "iwl-5000-hw.h" 46#include "iwl-5000-hw.h"
47#include "iwl-6000-hw.h"
48#include "iwl-agn-led.h"
47 49
48/* Highest firmware API version supported */ 50/* Highest firmware API version supported */
49#define IWL6000_UCODE_API_MAX 4 51#define IWL6000_UCODE_API_MAX 4
50#define IWL6050_UCODE_API_MAX 4 52#define IWL6050_UCODE_API_MAX 4
51 53
52/* Lowest firmware API version supported */ 54/* Lowest firmware API version supported */
53#define IWL6000_UCODE_API_MIN 1 55#define IWL6000_UCODE_API_MIN 4
54#define IWL6050_UCODE_API_MIN 1 56#define IWL6050_UCODE_API_MIN 4
55 57
56#define IWL6000_FW_PRE "iwlwifi-6000-" 58#define IWL6000_FW_PRE "iwlwifi-6000-"
57#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode" 59#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
@@ -71,14 +73,24 @@ static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
71/* NIC configuration for 6000 series */ 73/* NIC configuration for 6000 series */
72static void iwl6000_nic_config(struct iwl_priv *priv) 74static void iwl6000_nic_config(struct iwl_priv *priv)
73{ 75{
74 iwl5000_nic_config(priv); 76 u16 radio_cfg;
77
78 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
79
80 /* write radio config values to register */
81 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
82 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
83 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
84 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
85 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
86
87 /* set CSR_HW_CONFIG_REG for uCode use */
88 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
89 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
90 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
75 91
76 /* no locking required for register write */ 92 /* no locking required for register write */
77 if (priv->cfg->pa_type == IWL_PA_HYBRID) { 93 if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
78 /* 2x2 hybrid phy type */
79 iwl_write32(priv, CSR_GP_DRIVER_REG,
80 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
81 } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
82 /* 2x2 IPA phy type */ 94 /* 2x2 IPA phy type */
83 iwl_write32(priv, CSR_GP_DRIVER_REG, 95 iwl_write32(priv, CSR_GP_DRIVER_REG,
84 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA); 96 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
@@ -86,8 +98,109 @@ static void iwl6000_nic_config(struct iwl_priv *priv)
86 /* else do nothing, uCode configured */ 98 /* else do nothing, uCode configured */
87} 99}
88 100
101static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
102 .min_nrg_cck = 97,
103 .max_nrg_cck = 0, /* not used, set to 0 */
104 .auto_corr_min_ofdm = 80,
105 .auto_corr_min_ofdm_mrc = 128,
106 .auto_corr_min_ofdm_x1 = 105,
107 .auto_corr_min_ofdm_mrc_x1 = 192,
108
109 .auto_corr_max_ofdm = 145,
110 .auto_corr_max_ofdm_mrc = 232,
111 .auto_corr_max_ofdm_x1 = 145,
112 .auto_corr_max_ofdm_mrc_x1 = 232,
113
114 .auto_corr_min_cck = 125,
115 .auto_corr_max_cck = 175,
116 .auto_corr_min_cck_mrc = 160,
117 .auto_corr_max_cck_mrc = 310,
118 .nrg_th_cck = 97,
119 .nrg_th_ofdm = 100,
120
121 .barker_corr_th_min = 190,
122 .barker_corr_th_min_mrc = 390,
123 .nrg_th_cca = 62,
124};
125
126static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
127{
128 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
129 priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
130 priv->cfg->num_of_queues =
131 priv->cfg->mod_params->num_of_queues;
132
133 priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
134 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
135 priv->hw_params.scd_bc_tbls_size =
136 priv->cfg->num_of_queues *
137 sizeof(struct iwl5000_scd_bc_tbl);
138 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
139 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
140 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
141
142 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
143 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
144
145 priv->hw_params.max_bsm_size = 0;
146 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
147 BIT(IEEE80211_BAND_5GHZ);
148 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
149
150 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
151 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
152 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
153 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
154
155 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
156 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
157
158 /* Set initial sensitivity parameters */
159 /* Set initial calibration set */
160 priv->hw_params.sens = &iwl6000_sensitivity;
161 priv->hw_params.calib_init_cfg =
162 BIT(IWL_CALIB_XTAL) |
163 BIT(IWL_CALIB_LO) |
164 BIT(IWL_CALIB_TX_IQ) |
165 BIT(IWL_CALIB_BASE_BAND);
166 return 0;
167}
168
169static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
170{
171 struct iwl6000_channel_switch_cmd cmd;
172 const struct iwl_channel_info *ch_info;
173 struct iwl_host_cmd hcmd = {
174 .id = REPLY_CHANNEL_SWITCH,
175 .len = sizeof(cmd),
176 .flags = CMD_SIZE_HUGE,
177 .data = &cmd,
178 };
179
180 IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
181 priv->active_rxon.channel, channel);
182
183 cmd.band = priv->band == IEEE80211_BAND_2GHZ;
184 cmd.channel = cpu_to_le16(channel);
185 cmd.rxon_flags = priv->staging_rxon.flags;
186 cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
187 cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
188 ch_info = iwl_get_channel_info(priv, priv->band, channel);
189 if (ch_info)
190 cmd.expect_beacon = is_channel_radar(ch_info);
191 else {
192 IWL_ERR(priv, "invalid channel switch from %u to %u\n",
193 priv->active_rxon.channel, channel);
194 return -EFAULT;
195 }
196 priv->switch_rxon.channel = cpu_to_le16(channel);
197 priv->switch_rxon.switch_in_progress = true;
198
199 return iwl_send_cmd_sync(priv, &hcmd);
200}
201
89static struct iwl_lib_ops iwl6000_lib = { 202static struct iwl_lib_ops iwl6000_lib = {
90 .set_hw_params = iwl5000_hw_set_hw_params, 203 .set_hw_params = iwl6000_hw_set_hw_params,
91 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl, 204 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
92 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, 205 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
93 .txq_set_sched = iwl5000_txq_set_sched, 206 .txq_set_sched = iwl5000_txq_set_sched,
@@ -106,10 +219,10 @@ static struct iwl_lib_ops iwl6000_lib = {
106 .alive_notify = iwl5000_alive_notify, 219 .alive_notify = iwl5000_alive_notify,
107 .send_tx_power = iwl5000_send_tx_power, 220 .send_tx_power = iwl5000_send_tx_power,
108 .update_chain_flags = iwl_update_chain_flags, 221 .update_chain_flags = iwl_update_chain_flags,
222 .set_channel_switch = iwl6000_hw_channel_switch,
109 .apm_ops = { 223 .apm_ops = {
110 .init = iwl5000_apm_init, 224 .init = iwl_apm_init,
111 .reset = iwl5000_apm_reset, 225 .stop = iwl_apm_stop,
112 .stop = iwl5000_apm_stop,
113 .config = iwl6000_nic_config, 226 .config = iwl6000_nic_config,
114 .set_pwr_src = iwl_set_pwr_src, 227 .set_pwr_src = iwl_set_pwr_src,
115 }, 228 },
@@ -139,25 +252,33 @@ static struct iwl_lib_ops iwl6000_lib = {
139 }, 252 },
140}; 253};
141 254
142static struct iwl_hcmd_utils_ops iwl6000_hcmd_utils = { 255static struct iwl_ops iwl6000_ops = {
256 .ucode = &iwl5000_ucode,
257 .lib = &iwl6000_lib,
258 .hcmd = &iwl5000_hcmd,
259 .utils = &iwl5000_hcmd_utils,
260 .led = &iwlagn_led_ops,
261};
262
263static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
143 .get_hcmd_size = iwl5000_get_hcmd_size, 264 .get_hcmd_size = iwl5000_get_hcmd_size,
144 .build_addsta_hcmd = iwl5000_build_addsta_hcmd, 265 .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
145 .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag, 266 .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
146 .calc_rssi = iwl5000_calc_rssi, 267 .calc_rssi = iwl5000_calc_rssi,
147}; 268};
148 269
149static struct iwl_ops iwl6000_ops = { 270static struct iwl_ops iwl6050_ops = {
150 .ucode = &iwl5000_ucode, 271 .ucode = &iwl5000_ucode,
151 .lib = &iwl6000_lib, 272 .lib = &iwl6000_lib,
152 .hcmd = &iwl5000_hcmd, 273 .hcmd = &iwl5000_hcmd,
153 .utils = &iwl6000_hcmd_utils, 274 .utils = &iwl6050_hcmd_utils,
275 .led = &iwlagn_led_ops,
154}; 276};
155 277
156
157/* 278/*
158 * "h": Hybrid configuration, use both internal and external Power Amplifier 279 * "i": Internal configuration, use internal Power Amplifier
159 */ 280 */
160struct iwl_cfg iwl6000h_2agn_cfg = { 281struct iwl_cfg iwl6000i_2agn_cfg = {
161 .name = "6000 Series 2x2 AGN", 282 .name = "6000 Series 2x2 AGN",
162 .fw_name_pre = IWL6000_FW_PRE, 283 .fw_name_pre = IWL6000_FW_PRE,
163 .ucode_api_max = IWL6000_UCODE_API_MAX, 284 .ucode_api_max = IWL6000_UCODE_API_MAX,
@@ -165,41 +286,85 @@ struct iwl_cfg iwl6000h_2agn_cfg = {
165 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, 286 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
166 .ops = &iwl6000_ops, 287 .ops = &iwl6000_ops,
167 .eeprom_size = OTP_LOW_IMAGE_SIZE, 288 .eeprom_size = OTP_LOW_IMAGE_SIZE,
168 .eeprom_ver = EEPROM_5000_EEPROM_VERSION, 289 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
169 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 290 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
291 .num_of_queues = IWL50_NUM_QUEUES,
292 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
170 .mod_params = &iwl50_mod_params, 293 .mod_params = &iwl50_mod_params,
171 .valid_tx_ant = ANT_AB, 294 .valid_tx_ant = ANT_BC,
172 .valid_rx_ant = ANT_AB, 295 .valid_rx_ant = ANT_BC,
173 .need_pll_cfg = false, 296 .pll_cfg_val = 0,
174 .pa_type = IWL_PA_HYBRID, 297 .set_l0s = true,
298 .use_bsm = false,
299 .pa_type = IWL_PA_INTERNAL,
175 .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 300 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
176 .shadow_ram_support = true, 301 .shadow_ram_support = true,
177 .ht_greenfield_support = true, 302 .ht_greenfield_support = true,
303 .led_compensation = 51,
178 .use_rts_for_ht = true, /* use rts/cts protection */ 304 .use_rts_for_ht = true, /* use rts/cts protection */
305 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
306 .supports_idle = true,
307 .adv_thermal_throttle = true,
308 .support_ct_kill_exit = true,
309 .sm_ps_mode = WLAN_HT_CAP_SM_PS_DISABLED,
179}; 310};
180 311
181/* 312struct iwl_cfg iwl6000i_2abg_cfg = {
182 * "i": Internal configuration, use internal Power Amplifier 313 .name = "6000 Series 2x2 ABG",
183 */
184struct iwl_cfg iwl6000i_2agn_cfg = {
185 .name = "6000 Series 2x2 AGN",
186 .fw_name_pre = IWL6000_FW_PRE, 314 .fw_name_pre = IWL6000_FW_PRE,
187 .ucode_api_max = IWL6000_UCODE_API_MAX, 315 .ucode_api_max = IWL6000_UCODE_API_MAX,
188 .ucode_api_min = IWL6000_UCODE_API_MIN, 316 .ucode_api_min = IWL6000_UCODE_API_MIN,
189 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, 317 .sku = IWL_SKU_A|IWL_SKU_G,
190 .ops = &iwl6000_ops, 318 .ops = &iwl6000_ops,
191 .eeprom_size = OTP_LOW_IMAGE_SIZE, 319 .eeprom_size = OTP_LOW_IMAGE_SIZE,
192 .eeprom_ver = EEPROM_5000_EEPROM_VERSION, 320 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
193 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 321 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
322 .num_of_queues = IWL50_NUM_QUEUES,
323 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
194 .mod_params = &iwl50_mod_params, 324 .mod_params = &iwl50_mod_params,
195 .valid_tx_ant = ANT_BC, 325 .valid_tx_ant = ANT_BC,
196 .valid_rx_ant = ANT_BC, 326 .valid_rx_ant = ANT_BC,
197 .need_pll_cfg = false, 327 .pll_cfg_val = 0,
328 .set_l0s = true,
329 .use_bsm = false,
198 .pa_type = IWL_PA_INTERNAL, 330 .pa_type = IWL_PA_INTERNAL,
199 .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 331 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
200 .shadow_ram_support = true, 332 .shadow_ram_support = true,
201 .ht_greenfield_support = true, 333 .ht_greenfield_support = true,
202 .use_rts_for_ht = true, /* use rts/cts protection */ 334 .led_compensation = 51,
335 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
336 .supports_idle = true,
337 .adv_thermal_throttle = true,
338 .support_ct_kill_exit = true,
339};
340
341struct iwl_cfg iwl6000i_2bg_cfg = {
342 .name = "6000 Series 2x2 BG",
343 .fw_name_pre = IWL6000_FW_PRE,
344 .ucode_api_max = IWL6000_UCODE_API_MAX,
345 .ucode_api_min = IWL6000_UCODE_API_MIN,
346 .sku = IWL_SKU_G,
347 .ops = &iwl6000_ops,
348 .eeprom_size = OTP_LOW_IMAGE_SIZE,
349 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
350 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
351 .num_of_queues = IWL50_NUM_QUEUES,
352 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
353 .mod_params = &iwl50_mod_params,
354 .valid_tx_ant = ANT_BC,
355 .valid_rx_ant = ANT_BC,
356 .pll_cfg_val = 0,
357 .set_l0s = true,
358 .use_bsm = false,
359 .pa_type = IWL_PA_INTERNAL,
360 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
361 .shadow_ram_support = true,
362 .ht_greenfield_support = true,
363 .led_compensation = 51,
364 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
365 .supports_idle = true,
366 .adv_thermal_throttle = true,
367 .support_ct_kill_exit = true,
203}; 368};
204 369
205struct iwl_cfg iwl6050_2agn_cfg = { 370struct iwl_cfg iwl6050_2agn_cfg = {
@@ -208,61 +373,89 @@ struct iwl_cfg iwl6050_2agn_cfg = {
208 .ucode_api_max = IWL6050_UCODE_API_MAX, 373 .ucode_api_max = IWL6050_UCODE_API_MAX,
209 .ucode_api_min = IWL6050_UCODE_API_MIN, 374 .ucode_api_min = IWL6050_UCODE_API_MIN,
210 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, 375 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
211 .ops = &iwl6000_ops, 376 .ops = &iwl6050_ops,
212 .eeprom_size = OTP_LOW_IMAGE_SIZE, 377 .eeprom_size = OTP_LOW_IMAGE_SIZE,
213 .eeprom_ver = EEPROM_5000_EEPROM_VERSION, 378 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
214 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 379 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
380 .num_of_queues = IWL50_NUM_QUEUES,
381 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
215 .mod_params = &iwl50_mod_params, 382 .mod_params = &iwl50_mod_params,
216 .valid_tx_ant = ANT_AB, 383 .valid_tx_ant = ANT_AB,
217 .valid_rx_ant = ANT_AB, 384 .valid_rx_ant = ANT_AB,
218 .need_pll_cfg = false, 385 .pll_cfg_val = 0,
386 .set_l0s = true,
387 .use_bsm = false,
219 .pa_type = IWL_PA_SYSTEM, 388 .pa_type = IWL_PA_SYSTEM,
220 .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 389 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
221 .shadow_ram_support = true, 390 .shadow_ram_support = true,
222 .ht_greenfield_support = true, 391 .ht_greenfield_support = true,
392 .led_compensation = 51,
223 .use_rts_for_ht = true, /* use rts/cts protection */ 393 .use_rts_for_ht = true, /* use rts/cts protection */
394 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
395 .supports_idle = true,
396 .adv_thermal_throttle = true,
397 .support_ct_kill_exit = true,
398 .sm_ps_mode = WLAN_HT_CAP_SM_PS_DYNAMIC,
224}; 399};
225 400
226struct iwl_cfg iwl6000_3agn_cfg = { 401struct iwl_cfg iwl6050_2abg_cfg = {
227 .name = "6000 Series 3x3 AGN", 402 .name = "6050 Series 2x2 ABG",
228 .fw_name_pre = IWL6000_FW_PRE, 403 .fw_name_pre = IWL6050_FW_PRE,
229 .ucode_api_max = IWL6000_UCODE_API_MAX, 404 .ucode_api_max = IWL6050_UCODE_API_MAX,
230 .ucode_api_min = IWL6000_UCODE_API_MIN, 405 .ucode_api_min = IWL6050_UCODE_API_MIN,
231 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, 406 .sku = IWL_SKU_A|IWL_SKU_G,
232 .ops = &iwl6000_ops, 407 .ops = &iwl6050_ops,
233 .eeprom_size = OTP_LOW_IMAGE_SIZE, 408 .eeprom_size = OTP_LOW_IMAGE_SIZE,
234 .eeprom_ver = EEPROM_5000_EEPROM_VERSION, 409 .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
235 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 410 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
411 .num_of_queues = IWL50_NUM_QUEUES,
412 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
236 .mod_params = &iwl50_mod_params, 413 .mod_params = &iwl50_mod_params,
237 .valid_tx_ant = ANT_ABC, 414 .valid_tx_ant = ANT_AB,
238 .valid_rx_ant = ANT_ABC, 415 .valid_rx_ant = ANT_AB,
239 .need_pll_cfg = false, 416 .pll_cfg_val = 0,
417 .set_l0s = true,
418 .use_bsm = false,
240 .pa_type = IWL_PA_SYSTEM, 419 .pa_type = IWL_PA_SYSTEM,
241 .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 420 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
242 .shadow_ram_support = true, 421 .shadow_ram_support = true,
243 .ht_greenfield_support = true, 422 .ht_greenfield_support = true,
244 .use_rts_for_ht = true, /* use rts/cts protection */ 423 .led_compensation = 51,
424 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
425 .supports_idle = true,
426 .adv_thermal_throttle = true,
427 .support_ct_kill_exit = true,
245}; 428};
246 429
247struct iwl_cfg iwl6050_3agn_cfg = { 430struct iwl_cfg iwl6000_3agn_cfg = {
248 .name = "6050 Series 3x3 AGN", 431 .name = "6000 Series 3x3 AGN",
249 .fw_name_pre = IWL6050_FW_PRE, 432 .fw_name_pre = IWL6000_FW_PRE,
250 .ucode_api_max = IWL6050_UCODE_API_MAX, 433 .ucode_api_max = IWL6000_UCODE_API_MAX,
251 .ucode_api_min = IWL6050_UCODE_API_MIN, 434 .ucode_api_min = IWL6000_UCODE_API_MIN,
252 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, 435 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
253 .ops = &iwl6000_ops, 436 .ops = &iwl6000_ops,
254 .eeprom_size = OTP_LOW_IMAGE_SIZE, 437 .eeprom_size = OTP_LOW_IMAGE_SIZE,
255 .eeprom_ver = EEPROM_5000_EEPROM_VERSION, 438 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
256 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, 439 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
440 .num_of_queues = IWL50_NUM_QUEUES,
441 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
257 .mod_params = &iwl50_mod_params, 442 .mod_params = &iwl50_mod_params,
258 .valid_tx_ant = ANT_ABC, 443 .valid_tx_ant = ANT_ABC,
259 .valid_rx_ant = ANT_ABC, 444 .valid_rx_ant = ANT_ABC,
260 .need_pll_cfg = false, 445 .pll_cfg_val = 0,
446 .set_l0s = true,
447 .use_bsm = false,
261 .pa_type = IWL_PA_SYSTEM, 448 .pa_type = IWL_PA_SYSTEM,
262 .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 449 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
263 .shadow_ram_support = true, 450 .shadow_ram_support = true,
264 .ht_greenfield_support = true, 451 .ht_greenfield_support = true,
452 .led_compensation = 51,
265 .use_rts_for_ht = true, /* use rts/cts protection */ 453 .use_rts_for_ht = true, /* use rts/cts protection */
454 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
455 .supports_idle = true,
456 .adv_thermal_throttle = true,
457 .support_ct_kill_exit = true,
458 .sm_ps_mode = WLAN_HT_CAP_SM_PS_DISABLED,
266}; 459};
267 460
268MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); 461MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));