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