Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
Reinette Chatre | 1f44780 | 2010-01-15 13:43:41 -0800 | [diff] [blame] | 3 | * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved. |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 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" |
Johannes Berg | a117512 | 2010-01-21 06:21:10 -0800 | [diff] [blame] | 45 | #include "iwl-agn.h" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 46 | #include "iwl-helpers.h" |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 47 | #include "iwl-agn-hw.h" |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 48 | #include "iwl-6000-hw.h" |
Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame] | 49 | #include "iwl-agn-led.h" |
Abhijeet Kolekar | b8c7626 | 2010-04-08 15:29:07 -0700 | [diff] [blame] | 50 | #include "iwl-agn-debugfs.h" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 51 | |
| 52 | /* Highest firmware API version supported */ |
Wey-Yi Guy | fcbaf8b | 2009-08-21 13:34:18 -0700 | [diff] [blame] | 53 | #define IWL6000_UCODE_API_MAX 4 |
| 54 | #define IWL6050_UCODE_API_MAX 4 |
Shanyu Zhao | 4b3e806 | 2010-04-07 18:06:36 -0700 | [diff] [blame] | 55 | #define IWL6000G2_UCODE_API_MAX 4 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 56 | |
| 57 | /* Lowest firmware API version supported */ |
Wey-Yi Guy | 4424642 | 2009-10-23 13:42:34 -0700 | [diff] [blame] | 58 | #define IWL6000_UCODE_API_MIN 4 |
| 59 | #define IWL6050_UCODE_API_MIN 4 |
Shanyu Zhao | 4b3e806 | 2010-04-07 18:06:36 -0700 | [diff] [blame] | 60 | #define IWL6000G2_UCODE_API_MIN 4 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 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 | |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 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 | |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 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 | |
Shanyu Zhao | 4b3e806 | 2010-04-07 18:06:36 -0700 | [diff] [blame] | 78 | |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 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 | |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 86 | /* Indicate calibration version to uCode. */ |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 87 | static void iwl6000_set_calib_version(struct iwl_priv *priv) |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 88 | { |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 89 | if (priv->cfg->need_dc_calib && |
| 90 | (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)) |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 91 | iwl_set_bit(priv, CSR_GP_DRIVER_REG, |
| 92 | CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6); |
| 93 | } |
| 94 | |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 95 | /* NIC configuration for 6000 series */ |
| 96 | static void iwl6000_nic_config(struct iwl_priv *priv) |
| 97 | { |
Wey-Yi Guy | 9371d4e | 2009-09-11 10:38:10 -0700 | [diff] [blame] | 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); |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 113 | |
| 114 | /* no locking required for register write */ |
Wey-Yi Guy | 740e7f5 | 2009-11-06 14:52:55 -0800 | [diff] [blame] | 115 | if (priv->cfg->pa_type == IWL_PA_INTERNAL) { |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 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 */ |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 121 | if (priv->cfg->ops->lib->temp_ops.set_calib_version) |
| 122 | priv->cfg->ops->lib->temp_ops.set_calib_version(priv); |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 123 | } |
| 124 | |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 125 | static struct iwl_sensitivity_ranges iwl6000_sensitivity = { |
| 126 | .min_nrg_cck = 97, |
| 127 | .max_nrg_cck = 0, /* not used, set to 0 */ |
| 128 | .auto_corr_min_ofdm = 80, |
| 129 | .auto_corr_min_ofdm_mrc = 128, |
| 130 | .auto_corr_min_ofdm_x1 = 105, |
| 131 | .auto_corr_min_ofdm_mrc_x1 = 192, |
| 132 | |
| 133 | .auto_corr_max_ofdm = 145, |
| 134 | .auto_corr_max_ofdm_mrc = 232, |
Wey-Yi Guy | 2494f63 | 2010-01-20 12:22:52 -0800 | [diff] [blame] | 135 | .auto_corr_max_ofdm_x1 = 110, |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 136 | .auto_corr_max_ofdm_mrc_x1 = 232, |
| 137 | |
| 138 | .auto_corr_min_cck = 125, |
| 139 | .auto_corr_max_cck = 175, |
| 140 | .auto_corr_min_cck_mrc = 160, |
| 141 | .auto_corr_max_cck_mrc = 310, |
| 142 | .nrg_th_cck = 97, |
| 143 | .nrg_th_ofdm = 100, |
Wey-Yi Guy | 55036d6 | 2009-10-09 13:20:24 -0700 | [diff] [blame] | 144 | |
| 145 | .barker_corr_th_min = 190, |
| 146 | .barker_corr_th_min_mrc = 390, |
| 147 | .nrg_th_cca = 62, |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 148 | }; |
| 149 | |
| 150 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) |
| 151 | { |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 152 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 153 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 154 | priv->cfg->num_of_queues = |
| 155 | priv->cfg->mod_params->num_of_queues; |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 156 | |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 157 | priv->hw_params.max_txq_num = priv->cfg->num_of_queues; |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 158 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
| 159 | priv->hw_params.scd_bc_tbls_size = |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 160 | priv->cfg->num_of_queues * |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 161 | sizeof(struct iwlagn_scd_bc_tbl); |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 162 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
| 163 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; |
| 164 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; |
| 165 | |
| 166 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; |
| 167 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; |
| 168 | |
| 169 | priv->hw_params.max_bsm_size = 0; |
| 170 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
| 171 | BIT(IEEE80211_BAND_5GHZ); |
| 172 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; |
| 173 | |
| 174 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
| 175 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); |
| 176 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
| 177 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
| 178 | |
| 179 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) |
| 180 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); |
| 181 | |
| 182 | /* Set initial sensitivity parameters */ |
| 183 | /* Set initial calibration set */ |
| 184 | priv->hw_params.sens = &iwl6000_sensitivity; |
Wey-Yi Guy | e517736a | 2010-04-19 18:49:40 -0700 | [diff] [blame] | 185 | priv->hw_params.calib_init_cfg = |
| 186 | BIT(IWL_CALIB_XTAL) | |
| 187 | BIT(IWL_CALIB_LO) | |
| 188 | BIT(IWL_CALIB_TX_IQ) | |
| 189 | BIT(IWL_CALIB_BASE_BAND); |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 190 | if (priv->cfg->need_dc_calib) |
| 191 | priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC); |
Abhijeet Kolekar | 07f33f9 | 2010-01-22 14:22:47 -0800 | [diff] [blame] | 192 | |
Wey-Yi Guy | a0ee74c | 2010-05-06 08:54:10 -0700 | [diff] [blame] | 193 | priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; |
| 194 | |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 195 | return 0; |
| 196 | } |
| 197 | |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 198 | static int iwl6000_hw_channel_switch(struct iwl_priv *priv, |
| 199 | struct ieee80211_channel_switch *ch_switch) |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 200 | { |
| 201 | struct iwl6000_channel_switch_cmd cmd; |
| 202 | const struct iwl_channel_info *ch_info; |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 203 | u32 switch_time_in_usec, ucode_switch_time; |
| 204 | u16 ch; |
| 205 | u32 tsf_low; |
| 206 | u8 switch_count; |
| 207 | u16 beacon_interval = le16_to_cpu(priv->rxon_timing.beacon_interval); |
| 208 | struct ieee80211_vif *vif = priv->vif; |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 209 | struct iwl_host_cmd hcmd = { |
| 210 | .id = REPLY_CHANNEL_SWITCH, |
| 211 | .len = sizeof(cmd), |
Wey-Yi Guy | 3839f7c | 2010-05-18 09:18:06 -0700 | [diff] [blame] | 212 | .flags = CMD_SYNC, |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 213 | .data = &cmd, |
| 214 | }; |
| 215 | |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 216 | cmd.band = priv->band == IEEE80211_BAND_2GHZ; |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 217 | ch = ieee80211_frequency_to_channel(ch_switch->channel->center_freq); |
| 218 | IWL_DEBUG_11H(priv, "channel switch from %u to %u\n", |
| 219 | priv->active_rxon.channel, ch); |
| 220 | cmd.channel = cpu_to_le16(ch); |
Wey-Yi Guy | 0924e519 | 2009-11-06 14:52:54 -0800 | [diff] [blame] | 221 | cmd.rxon_flags = priv->staging_rxon.flags; |
| 222 | cmd.rxon_filter_flags = priv->staging_rxon.filter_flags; |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 223 | switch_count = ch_switch->count; |
| 224 | tsf_low = ch_switch->timestamp & 0x0ffffffff; |
| 225 | /* |
| 226 | * calculate the ucode channel switch time |
| 227 | * adding TSF as one of the factor for when to switch |
| 228 | */ |
| 229 | if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) { |
| 230 | if (switch_count > ((priv->ucode_beacon_time - tsf_low) / |
| 231 | beacon_interval)) { |
| 232 | switch_count -= (priv->ucode_beacon_time - |
| 233 | tsf_low) / beacon_interval; |
| 234 | } else |
| 235 | switch_count = 0; |
| 236 | } |
| 237 | if (switch_count <= 1) |
| 238 | cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time); |
| 239 | else { |
| 240 | switch_time_in_usec = |
| 241 | vif->bss_conf.beacon_int * switch_count * TIME_UNIT; |
| 242 | ucode_switch_time = iwl_usecs_to_beacons(priv, |
| 243 | switch_time_in_usec, |
| 244 | beacon_interval); |
| 245 | cmd.switch_time = iwl_add_beacon_time(priv, |
| 246 | priv->ucode_beacon_time, |
| 247 | ucode_switch_time, |
| 248 | beacon_interval); |
| 249 | } |
| 250 | IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n", |
| 251 | cmd.switch_time); |
| 252 | ch_info = iwl_get_channel_info(priv, priv->band, ch); |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 253 | if (ch_info) |
| 254 | cmd.expect_beacon = is_channel_radar(ch_info); |
| 255 | else { |
| 256 | IWL_ERR(priv, "invalid channel switch from %u to %u\n", |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 257 | priv->active_rxon.channel, ch); |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 258 | return -EFAULT; |
| 259 | } |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 260 | priv->switch_rxon.channel = cmd.channel; |
Wey-Yi Guy | 0924e519 | 2009-11-06 14:52:54 -0800 | [diff] [blame] | 261 | priv->switch_rxon.switch_in_progress = true; |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 262 | |
| 263 | return iwl_send_cmd_sync(priv, &hcmd); |
| 264 | } |
| 265 | |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 266 | static struct iwl_lib_ops iwl6000_lib = { |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 267 | .set_hw_params = iwl6000_hw_set_hw_params, |
Wey-Yi Guy | b305a08 | 2010-03-16 17:41:22 -0700 | [diff] [blame] | 268 | .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl, |
| 269 | .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl, |
| 270 | .txq_set_sched = iwlagn_txq_set_sched, |
| 271 | .txq_agg_enable = iwlagn_txq_agg_enable, |
| 272 | .txq_agg_disable = iwlagn_txq_agg_disable, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 273 | .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, |
| 274 | .txq_free_tfd = iwl_hw_txq_free_tfd, |
| 275 | .txq_init = iwl_hw_tx_queue_init, |
Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 276 | .rx_handler_setup = iwlagn_rx_handler_setup, |
| 277 | .setup_deferred_work = iwlagn_setup_deferred_work, |
| 278 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
Wey-Yi Guy | 81b8176 | 2010-03-16 10:23:30 -0700 | [diff] [blame] | 279 | .load_ucode = iwlagn_load_ucode, |
Reinette Chatre | b7a7940 | 2009-09-25 14:24:23 -0700 | [diff] [blame] | 280 | .dump_nic_event_log = iwl_dump_nic_event_log, |
| 281 | .dump_nic_error_log = iwl_dump_nic_error_log, |
Wey-Yi Guy | 696bdee | 2009-12-10 14:37:25 -0800 | [diff] [blame] | 282 | .dump_csr = iwl_dump_csr, |
Wey-Yi Guy | 1b3eb82 | 2010-01-15 13:43:39 -0800 | [diff] [blame] | 283 | .dump_fh = iwl_dump_fh, |
Wey-Yi Guy | 741a626 | 2010-03-16 12:37:24 -0700 | [diff] [blame] | 284 | .init_alive_start = iwlagn_init_alive_start, |
| 285 | .alive_notify = iwlagn_alive_notify, |
Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 286 | .send_tx_power = iwlagn_send_tx_power, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 287 | .update_chain_flags = iwl_update_chain_flags, |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 288 | .set_channel_switch = iwl6000_hw_channel_switch, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 289 | .apm_ops = { |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 290 | .init = iwl_apm_init, |
Abhijeet Kolekar | d68b603 | 2009-10-02 13:44:04 -0700 | [diff] [blame] | 291 | .stop = iwl_apm_stop, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 292 | .config = iwl6000_nic_config, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 293 | .set_pwr_src = iwl_set_pwr_src, |
| 294 | }, |
| 295 | .eeprom_ops = { |
| 296 | .regulatory_bands = { |
Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 297 | EEPROM_REG_BAND_1_CHANNELS, |
| 298 | EEPROM_REG_BAND_2_CHANNELS, |
| 299 | EEPROM_REG_BAND_3_CHANNELS, |
| 300 | EEPROM_REG_BAND_4_CHANNELS, |
| 301 | EEPROM_REG_BAND_5_CHANNELS, |
Shanyu Zhao | f2fa1b0 | 2010-04-07 18:37:52 -0700 | [diff] [blame] | 302 | EEPROM_6000_REG_BAND_24_HT40_CHANNELS, |
Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 303 | EEPROM_REG_BAND_52_HT40_CHANNELS |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 304 | }, |
| 305 | .verify_signature = iwlcore_eeprom_verify_signature, |
| 306 | .acquire_semaphore = iwlcore_eeprom_acquire_semaphore, |
| 307 | .release_semaphore = iwlcore_eeprom_release_semaphore, |
Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 308 | .calib_version = iwlagn_eeprom_calib_version, |
| 309 | .query_addr = iwlagn_eeprom_query_addr, |
Wey-Yi Guy | ab9fd1b | 2009-08-21 13:34:23 -0700 | [diff] [blame] | 310 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 311 | }, |
| 312 | .post_associate = iwl_post_associate, |
| 313 | .isr = iwl_isr_ict, |
| 314 | .config_ap = iwl_config_ap, |
| 315 | .temp_ops = { |
Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 316 | .temperature = iwlagn_temperature, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 317 | .set_ct_kill = iwl6000_set_ct_threshold, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 318 | .set_calib_version = iwl6000_set_calib_version, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 319 | }, |
Johannes Berg | 1fa61b2 | 2010-04-28 08:44:52 -0700 | [diff] [blame] | 320 | .manage_ibss_station = iwlagn_manage_ibss_station, |
Abhijeet Kolekar | b8c7626 | 2010-04-08 15:29:07 -0700 | [diff] [blame] | 321 | .debugfs_ops = { |
| 322 | .rx_stats_read = iwl_ucode_rx_stats_read, |
| 323 | .tx_stats_read = iwl_ucode_tx_stats_read, |
| 324 | .general_stats_read = iwl_ucode_general_stats_read, |
| 325 | }, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 326 | .recover_from_tx_stall = iwl_bg_monitor_recover, |
Wey-Yi Guy | fa8f130 | 2010-03-05 14:22:46 -0800 | [diff] [blame] | 327 | .check_plcp_health = iwl_good_plcp_health, |
| 328 | .check_ack_health = iwl_good_ack_health, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 329 | }; |
| 330 | |
Emese Revfy | 45d5d80 | 2009-12-14 00:59:53 +0100 | [diff] [blame] | 331 | static const struct iwl_ops iwl6000_ops = { |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 332 | .lib = &iwl6000_lib, |
Wey-Yi Guy | 7dc77db | 2010-03-16 10:23:31 -0700 | [diff] [blame] | 333 | .hcmd = &iwlagn_hcmd, |
| 334 | .utils = &iwlagn_hcmd_utils, |
Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame] | 335 | .led = &iwlagn_led_ops, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 336 | }; |
| 337 | |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 338 | static void do_not_send_bt_config(struct iwl_priv *priv) |
| 339 | { |
| 340 | } |
| 341 | |
| 342 | static struct iwl_hcmd_ops iwl6000g2b_hcmd = { |
| 343 | .rxon_assoc = iwlagn_send_rxon_assoc, |
| 344 | .commit_rxon = iwl_commit_rxon, |
| 345 | .set_rxon_chain = iwl_set_rxon_chain, |
| 346 | .set_tx_ant = iwlagn_send_tx_ant_config, |
| 347 | .send_bt_config = do_not_send_bt_config, |
| 348 | }; |
| 349 | |
| 350 | static const struct iwl_ops iwl6000g2b_ops = { |
| 351 | .lib = &iwl6000_lib, |
| 352 | .hcmd = &iwl6000g2b_hcmd, |
| 353 | .utils = &iwlagn_hcmd_utils, |
| 354 | .led = &iwlagn_led_ops, |
| 355 | }; |
| 356 | |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 357 | struct iwl_cfg iwl6000g2a_2agn_cfg = { |
| 358 | .name = "6000 Series 2x2 AGN Gen2a", |
| 359 | .fw_name_pre = IWL6000G2A_FW_PRE, |
Shanyu Zhao | 4b3e806 | 2010-04-07 18:06:36 -0700 | [diff] [blame] | 360 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 361 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 362 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
| 363 | .ops = &iwl6000_ops, |
| 364 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Shanyu Zhao | 4b3e806 | 2010-04-07 18:06:36 -0700 | [diff] [blame] | 365 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 366 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 367 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 368 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 369 | .mod_params = &iwlagn_mod_params, |
| 370 | .valid_tx_ant = ANT_AB, |
| 371 | .valid_rx_ant = ANT_AB, |
| 372 | .pll_cfg_val = 0, |
| 373 | .set_l0s = true, |
| 374 | .use_bsm = false, |
Wey-Yi Guy | 33e6f81 | 2010-04-09 09:36:11 -0700 | [diff] [blame] | 375 | .pa_type = IWL_PA_SYSTEM, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 376 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 377 | .shadow_ram_support = true, |
| 378 | .ht_greenfield_support = true, |
| 379 | .led_compensation = 51, |
| 380 | .use_rts_for_ht = true, /* use rts/cts protection */ |
| 381 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 382 | .supports_idle = true, |
| 383 | .adv_thermal_throttle = true, |
| 384 | .support_ct_kill_exit = true, |
| 385 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 386 | .chain_noise_scale = 1000, |
| 387 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 388 | .max_event_log_size = 512, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 389 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 390 | .sensitivity_calib_by_driver = true, |
| 391 | .chain_noise_calib_by_driver = true, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 392 | .need_dc_calib = true, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 393 | }; |
| 394 | |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 395 | struct iwl_cfg iwl6000g2a_2abg_cfg = { |
| 396 | .name = "6000 Series 2x2 ABG Gen2a", |
| 397 | .fw_name_pre = IWL6000G2A_FW_PRE, |
| 398 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 399 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 400 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 401 | .ops = &iwl6000_ops, |
| 402 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 403 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 404 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 405 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 406 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 407 | .mod_params = &iwlagn_mod_params, |
| 408 | .valid_tx_ant = ANT_AB, |
| 409 | .valid_rx_ant = ANT_AB, |
| 410 | .pll_cfg_val = 0, |
| 411 | .set_l0s = true, |
| 412 | .use_bsm = false, |
| 413 | .pa_type = IWL_PA_SYSTEM, |
| 414 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 415 | .shadow_ram_support = true, |
| 416 | .led_compensation = 51, |
| 417 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 418 | .supports_idle = true, |
| 419 | .adv_thermal_throttle = true, |
| 420 | .support_ct_kill_exit = true, |
| 421 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 422 | .chain_noise_scale = 1000, |
| 423 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 424 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 425 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 426 | }; |
| 427 | |
| 428 | struct iwl_cfg iwl6000g2a_2bg_cfg = { |
| 429 | .name = "6000 Series 2x2 BG Gen2a", |
| 430 | .fw_name_pre = IWL6000G2A_FW_PRE, |
| 431 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 432 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 433 | .sku = IWL_SKU_G, |
| 434 | .ops = &iwl6000_ops, |
| 435 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 436 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 437 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 438 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 439 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 440 | .mod_params = &iwlagn_mod_params, |
| 441 | .valid_tx_ant = ANT_AB, |
| 442 | .valid_rx_ant = ANT_AB, |
| 443 | .pll_cfg_val = 0, |
| 444 | .set_l0s = true, |
| 445 | .use_bsm = false, |
| 446 | .pa_type = IWL_PA_SYSTEM, |
| 447 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 448 | .shadow_ram_support = true, |
| 449 | .led_compensation = 51, |
| 450 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 451 | .supports_idle = true, |
| 452 | .adv_thermal_throttle = true, |
| 453 | .support_ct_kill_exit = true, |
| 454 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 455 | .chain_noise_scale = 1000, |
| 456 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 457 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 458 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 459 | }; |
| 460 | |
| 461 | struct iwl_cfg iwl6000g2b_2agn_cfg = { |
| 462 | .name = "6000 Series 2x2 AGN Gen2b", |
| 463 | .fw_name_pre = IWL6000G2B_FW_PRE, |
| 464 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 465 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 466 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
| 467 | .ops = &iwl6000g2b_ops, |
| 468 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 469 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 470 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 471 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 472 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 473 | .mod_params = &iwlagn_mod_params, |
| 474 | .valid_tx_ant = ANT_AB, |
| 475 | .valid_rx_ant = ANT_AB, |
| 476 | .pll_cfg_val = 0, |
| 477 | .set_l0s = true, |
| 478 | .use_bsm = false, |
| 479 | .pa_type = IWL_PA_SYSTEM, |
| 480 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 481 | .shadow_ram_support = true, |
| 482 | .ht_greenfield_support = true, |
| 483 | .led_compensation = 51, |
| 484 | .use_rts_for_ht = true, /* use rts/cts protection */ |
| 485 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 486 | .supports_idle = true, |
| 487 | .adv_thermal_throttle = true, |
| 488 | .support_ct_kill_exit = true, |
| 489 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 490 | .chain_noise_scale = 1000, |
| 491 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 492 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 493 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 494 | }; |
| 495 | |
| 496 | struct iwl_cfg iwl6000g2b_2abg_cfg = { |
| 497 | .name = "6000 Series 2x2 ABG Gen2b", |
| 498 | .fw_name_pre = IWL6000G2B_FW_PRE, |
| 499 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 500 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 501 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 502 | .ops = &iwl6000g2b_ops, |
| 503 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 504 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 505 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 506 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 507 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 508 | .mod_params = &iwlagn_mod_params, |
| 509 | .valid_tx_ant = ANT_AB, |
| 510 | .valid_rx_ant = ANT_AB, |
| 511 | .pll_cfg_val = 0, |
| 512 | .set_l0s = true, |
| 513 | .use_bsm = false, |
| 514 | .pa_type = IWL_PA_SYSTEM, |
| 515 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 516 | .shadow_ram_support = true, |
| 517 | .led_compensation = 51, |
| 518 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 519 | .supports_idle = true, |
| 520 | .adv_thermal_throttle = true, |
| 521 | .support_ct_kill_exit = true, |
| 522 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 523 | .chain_noise_scale = 1000, |
| 524 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 525 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 526 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 527 | }; |
| 528 | |
Shanyu Zhao | 9f6e1ba | 2010-05-11 15:21:54 -0700 | [diff] [blame] | 529 | struct iwl_cfg iwl6000g2b_2bgn_cfg = { |
| 530 | .name = "6000 Series 2x2 BGN Gen2b", |
| 531 | .fw_name_pre = IWL6000G2B_FW_PRE, |
| 532 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 533 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 534 | .sku = IWL_SKU_G|IWL_SKU_N, |
| 535 | .ops = &iwl6000g2b_ops, |
| 536 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 537 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 538 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 539 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 540 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 541 | .mod_params = &iwlagn_mod_params, |
| 542 | .valid_tx_ant = ANT_AB, |
| 543 | .valid_rx_ant = ANT_AB, |
| 544 | .pll_cfg_val = 0, |
| 545 | .set_l0s = true, |
| 546 | .use_bsm = false, |
| 547 | .pa_type = IWL_PA_SYSTEM, |
| 548 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 549 | .shadow_ram_support = true, |
| 550 | .ht_greenfield_support = true, |
| 551 | .led_compensation = 51, |
| 552 | .use_rts_for_ht = true, /* use rts/cts protection */ |
| 553 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 554 | .supports_idle = true, |
| 555 | .adv_thermal_throttle = true, |
| 556 | .support_ct_kill_exit = true, |
| 557 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 558 | .chain_noise_scale = 1000, |
| 559 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 560 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 561 | .need_dc_calib = true, |
Shanyu Zhao | 9f6e1ba | 2010-05-11 15:21:54 -0700 | [diff] [blame] | 562 | }; |
| 563 | |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 564 | struct iwl_cfg iwl6000g2b_2bg_cfg = { |
| 565 | .name = "6000 Series 2x2 BG Gen2b", |
| 566 | .fw_name_pre = IWL6000G2B_FW_PRE, |
| 567 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 568 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 569 | .sku = IWL_SKU_G, |
| 570 | .ops = &iwl6000g2b_ops, |
| 571 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 572 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 573 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 574 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 575 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 576 | .mod_params = &iwlagn_mod_params, |
| 577 | .valid_tx_ant = ANT_AB, |
| 578 | .valid_rx_ant = ANT_AB, |
| 579 | .pll_cfg_val = 0, |
| 580 | .set_l0s = true, |
| 581 | .use_bsm = false, |
| 582 | .pa_type = IWL_PA_SYSTEM, |
| 583 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 584 | .shadow_ram_support = true, |
| 585 | .led_compensation = 51, |
| 586 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 587 | .supports_idle = true, |
| 588 | .adv_thermal_throttle = true, |
| 589 | .support_ct_kill_exit = true, |
| 590 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 591 | .chain_noise_scale = 1000, |
| 592 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 593 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 594 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 595 | }; |
| 596 | |
| 597 | struct iwl_cfg iwl6000g2b_bgn_cfg = { |
| 598 | .name = "6000 Series 1x2 BGN Gen2b", |
| 599 | .fw_name_pre = IWL6000G2B_FW_PRE, |
| 600 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 601 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 602 | .sku = IWL_SKU_G|IWL_SKU_N, |
| 603 | .ops = &iwl6000g2b_ops, |
| 604 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 605 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 606 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 607 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 608 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 609 | .mod_params = &iwlagn_mod_params, |
| 610 | .valid_tx_ant = ANT_A, |
| 611 | .valid_rx_ant = ANT_AB, |
| 612 | .pll_cfg_val = 0, |
| 613 | .set_l0s = true, |
| 614 | .use_bsm = false, |
| 615 | .pa_type = IWL_PA_SYSTEM, |
| 616 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 617 | .shadow_ram_support = true, |
| 618 | .ht_greenfield_support = true, |
| 619 | .led_compensation = 51, |
| 620 | .use_rts_for_ht = true, /* use rts/cts protection */ |
| 621 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 622 | .supports_idle = true, |
| 623 | .adv_thermal_throttle = true, |
| 624 | .support_ct_kill_exit = true, |
| 625 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 626 | .chain_noise_scale = 1000, |
| 627 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 628 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 629 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 630 | }; |
| 631 | |
| 632 | struct iwl_cfg iwl6000g2b_bg_cfg = { |
| 633 | .name = "6000 Series 1x2 BG Gen2b", |
| 634 | .fw_name_pre = IWL6000G2B_FW_PRE, |
| 635 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, |
| 636 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, |
| 637 | .sku = IWL_SKU_G, |
| 638 | .ops = &iwl6000g2b_ops, |
| 639 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 640 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, |
| 641 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, |
| 642 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 643 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
| 644 | .mod_params = &iwlagn_mod_params, |
| 645 | .valid_tx_ant = ANT_A, |
| 646 | .valid_rx_ant = ANT_AB, |
| 647 | .pll_cfg_val = 0, |
| 648 | .set_l0s = true, |
| 649 | .use_bsm = false, |
| 650 | .pa_type = IWL_PA_SYSTEM, |
| 651 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 652 | .shadow_ram_support = true, |
| 653 | .led_compensation = 51, |
| 654 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
| 655 | .supports_idle = true, |
| 656 | .adv_thermal_throttle = true, |
| 657 | .support_ct_kill_exit = true, |
| 658 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
| 659 | .chain_noise_scale = 1000, |
| 660 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
| 661 | .max_event_log_size = 512, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 662 | .need_dc_calib = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 663 | }; |
| 664 | |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 665 | /* |
| 666 | * "i": Internal configuration, use internal Power Amplifier |
| 667 | */ |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 668 | struct iwl_cfg iwl6000i_2agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 669 | .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 670 | .fw_name_pre = IWL6000_FW_PRE, |
| 671 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 672 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 673 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
| 674 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 675 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 676 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Wey-Yi Guy | 00e7059 | 2010-03-16 12:37:26 -0700 | [diff] [blame] | 677 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 678 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 679 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 348ee7cd | 2010-03-16 12:37:27 -0700 | [diff] [blame] | 680 | .mod_params = &iwlagn_mod_params, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 681 | .valid_tx_ant = ANT_BC, |
| 682 | .valid_rx_ant = ANT_BC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 683 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 684 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 685 | .use_bsm = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 686 | .pa_type = IWL_PA_INTERNAL, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 687 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 688 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 689 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 690 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 691 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 692 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 693 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 694 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 695 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 696 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 697 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 698 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 678b385 | 2010-03-26 12:54:37 -0700 | [diff] [blame] | 699 | .max_event_log_size = 1024, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 700 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 701 | .sensitivity_calib_by_driver = true, |
| 702 | .chain_noise_calib_by_driver = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 703 | }; |
| 704 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 705 | struct iwl_cfg iwl6000i_2abg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 706 | .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG", |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 707 | .fw_name_pre = IWL6000_FW_PRE, |
| 708 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 709 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 710 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 711 | .ops = &iwl6000_ops, |
| 712 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 713 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Wey-Yi Guy | 00e7059 | 2010-03-16 12:37:26 -0700 | [diff] [blame] | 714 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 715 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 716 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 348ee7cd | 2010-03-16 12:37:27 -0700 | [diff] [blame] | 717 | .mod_params = &iwlagn_mod_params, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 718 | .valid_tx_ant = ANT_BC, |
| 719 | .valid_rx_ant = ANT_BC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 720 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 721 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 722 | .use_bsm = false, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 723 | .pa_type = IWL_PA_INTERNAL, |
| 724 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 725 | .shadow_ram_support = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 726 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 727 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 728 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 729 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 730 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 731 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 732 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 733 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 678b385 | 2010-03-26 12:54:37 -0700 | [diff] [blame] | 734 | .max_event_log_size = 1024, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 735 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 736 | .sensitivity_calib_by_driver = true, |
| 737 | .chain_noise_calib_by_driver = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 738 | }; |
| 739 | |
| 740 | struct iwl_cfg iwl6000i_2bg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 741 | .name = "Intel(R) Centrino(R) Advanced-N 6200 BG", |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 742 | .fw_name_pre = IWL6000_FW_PRE, |
| 743 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 744 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 745 | .sku = IWL_SKU_G, |
| 746 | .ops = &iwl6000_ops, |
| 747 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 748 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Wey-Yi Guy | 00e7059 | 2010-03-16 12:37:26 -0700 | [diff] [blame] | 749 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 750 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 751 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 348ee7cd | 2010-03-16 12:37:27 -0700 | [diff] [blame] | 752 | .mod_params = &iwlagn_mod_params, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 753 | .valid_tx_ant = ANT_BC, |
| 754 | .valid_rx_ant = ANT_BC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 755 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 756 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 757 | .use_bsm = false, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 758 | .pa_type = IWL_PA_INTERNAL, |
| 759 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 760 | .shadow_ram_support = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 761 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 762 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 763 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 764 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 765 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 766 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 767 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 768 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 678b385 | 2010-03-26 12:54:37 -0700 | [diff] [blame] | 769 | .max_event_log_size = 1024, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 770 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 771 | .sensitivity_calib_by_driver = true, |
| 772 | .chain_noise_calib_by_driver = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 773 | }; |
| 774 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 775 | struct iwl_cfg iwl6050_2agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 776 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 777 | .fw_name_pre = IWL6050_FW_PRE, |
| 778 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 779 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 780 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 781 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 782 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 32b7e24 | 2009-10-16 14:25:51 -0700 | [diff] [blame] | 783 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
Wey-Yi Guy | 00e7059 | 2010-03-16 12:37:26 -0700 | [diff] [blame] | 784 | .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 785 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 786 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 348ee7cd | 2010-03-16 12:37:27 -0700 | [diff] [blame] | 787 | .mod_params = &iwlagn_mod_params, |
Jay Sternberg | 542cc79 | 2009-05-08 13:44:46 -0700 | [diff] [blame] | 788 | .valid_tx_ant = ANT_AB, |
| 789 | .valid_rx_ant = ANT_AB, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 790 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 791 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 792 | .use_bsm = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 793 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 3ab312a | 2009-10-16 14:25:52 -0700 | [diff] [blame] | 794 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 795 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 796 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 797 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 798 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 799 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 800 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 801 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 802 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 803 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 804 | .chain_noise_scale = 1500, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 805 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 678b385 | 2010-03-26 12:54:37 -0700 | [diff] [blame] | 806 | .max_event_log_size = 1024, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 807 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 808 | .sensitivity_calib_by_driver = true, |
| 809 | .chain_noise_calib_by_driver = true, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 810 | .need_dc_calib = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 811 | }; |
| 812 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 813 | struct iwl_cfg iwl6050_2abg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 814 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG", |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 815 | .fw_name_pre = IWL6050_FW_PRE, |
| 816 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 817 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 818 | .sku = IWL_SKU_A|IWL_SKU_G, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 819 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 820 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 32b7e24 | 2009-10-16 14:25:51 -0700 | [diff] [blame] | 821 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
Wey-Yi Guy | 00e7059 | 2010-03-16 12:37:26 -0700 | [diff] [blame] | 822 | .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 823 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 824 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 348ee7cd | 2010-03-16 12:37:27 -0700 | [diff] [blame] | 825 | .mod_params = &iwlagn_mod_params, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 826 | .valid_tx_ant = ANT_AB, |
| 827 | .valid_rx_ant = ANT_AB, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 828 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 829 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 830 | .use_bsm = false, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 831 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 3ab312a | 2009-10-16 14:25:52 -0700 | [diff] [blame] | 832 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 833 | .shadow_ram_support = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 834 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 835 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 836 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 837 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 838 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 839 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 840 | .chain_noise_scale = 1500, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 841 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 678b385 | 2010-03-26 12:54:37 -0700 | [diff] [blame] | 842 | .max_event_log_size = 1024, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 843 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 844 | .sensitivity_calib_by_driver = true, |
| 845 | .chain_noise_calib_by_driver = true, |
Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame^] | 846 | .need_dc_calib = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 847 | }; |
| 848 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 849 | struct iwl_cfg iwl6000_3agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 850 | .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN", |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 851 | .fw_name_pre = IWL6000_FW_PRE, |
| 852 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 853 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 854 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 855 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 856 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 857 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Wey-Yi Guy | 00e7059 | 2010-03-16 12:37:26 -0700 | [diff] [blame] | 858 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 859 | .num_of_queues = IWLAGN_NUM_QUEUES, |
| 860 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 348ee7cd | 2010-03-16 12:37:27 -0700 | [diff] [blame] | 861 | .mod_params = &iwlagn_mod_params, |
Jay Sternberg | c0bac76 | 2009-02-02 16:21:14 -0800 | [diff] [blame] | 862 | .valid_tx_ant = ANT_ABC, |
| 863 | .valid_rx_ant = ANT_ABC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 864 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 865 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 866 | .use_bsm = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 867 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 868 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 869 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 870 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 871 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 872 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 873 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 874 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 875 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 876 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 877 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 878 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 879 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 678b385 | 2010-03-26 12:54:37 -0700 | [diff] [blame] | 880 | .max_event_log_size = 1024, |
Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 881 | .ucode_tracing = true, |
Wey-Yi Guy | 65d1f89 | 2010-04-25 15:41:43 -0700 | [diff] [blame] | 882 | .sensitivity_calib_by_driver = true, |
| 883 | .chain_noise_calib_by_driver = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 884 | }; |
| 885 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 886 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |
| 887 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 888 | MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 889 | MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); |