| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 1 | /****************************************************************************** | 
 | 2 |  * | 
| Wey-Yi Guy | 901069c | 2011-04-05 09:42:00 -0700 | [diff] [blame] | 3 |  * Copyright(c) 2008 - 2011 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 | 
| 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-" | 
| root | 1d5cc555 | 2011-03-28 16:12:43 -0700 | [diff] [blame] | 63 | #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode" | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 64 |  | 
 | 65 | #define IWL6050_FW_PRE "iwlwifi-6050-" | 
| root | 1d5cc555 | 2011-03-28 16:12:43 -0700 | [diff] [blame] | 66 | #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode" | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 67 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 68 | #define IWL6005_FW_PRE "iwlwifi-6000g2a-" | 
| root | 1d5cc555 | 2011-03-28 16:12:43 -0700 | [diff] [blame] | 69 | #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE #api ".ucode" | 
| Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 70 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 71 | #define IWL6030_FW_PRE "iwlwifi-6000g2b-" | 
| root | 1d5cc555 | 2011-03-28 16:12:43 -0700 | [diff] [blame] | 72 | #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE #api ".ucode" | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 73 |  | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 74 | static void iwl6000_set_ct_threshold(struct iwl_priv *priv) | 
 | 75 | { | 
 | 76 | 	/* want Celsius */ | 
 | 77 | 	priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; | 
 | 78 | 	priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; | 
 | 79 | } | 
 | 80 |  | 
| Shanyu Zhao | 6b5ce50 | 2010-09-14 16:23:32 -0700 | [diff] [blame] | 81 | static void iwl6050_additional_nic_config(struct iwl_priv *priv) | 
| Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 82 | { | 
| Shanyu Zhao | 6b5ce50 | 2010-09-14 16:23:32 -0700 | [diff] [blame] | 83 | 	/* Indicate calibration version to uCode. */ | 
 | 84 | 	if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6) | 
| Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 85 | 		iwl_set_bit(priv, CSR_GP_DRIVER_REG, | 
 | 86 | 				CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6); | 
 | 87 | } | 
 | 88 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 89 | static void iwl6150_additional_nic_config(struct iwl_priv *priv) | 
| Shanyu Zhao | 02796d7 | 2010-09-14 16:23:42 -0700 | [diff] [blame] | 90 | { | 
 | 91 | 	/* Indicate calibration version to uCode. */ | 
 | 92 | 	if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6) | 
 | 93 | 		iwl_set_bit(priv, CSR_GP_DRIVER_REG, | 
 | 94 | 				CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6); | 
 | 95 | 	iwl_set_bit(priv, CSR_GP_DRIVER_REG, | 
 | 96 | 		    CSR_GP_DRIVER_REG_BIT_6050_1x2); | 
 | 97 | } | 
 | 98 |  | 
| Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 99 | /* NIC configuration for 6000 series */ | 
 | 100 | static void iwl6000_nic_config(struct iwl_priv *priv) | 
 | 101 | { | 
| Wey-Yi Guy | 9371d4e | 2009-09-11 10:38:10 -0700 | [diff] [blame] | 102 | 	u16 radio_cfg; | 
 | 103 |  | 
 | 104 | 	radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG); | 
 | 105 |  | 
 | 106 | 	/* write radio config values to register */ | 
 | 107 | 	if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX) | 
 | 108 | 		iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, | 
 | 109 | 			    EEPROM_RF_CFG_TYPE_MSK(radio_cfg) | | 
 | 110 | 			    EEPROM_RF_CFG_STEP_MSK(radio_cfg) | | 
 | 111 | 			    EEPROM_RF_CFG_DASH_MSK(radio_cfg)); | 
 | 112 |  | 
 | 113 | 	/* set CSR_HW_CONFIG_REG for uCode use */ | 
 | 114 | 	iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, | 
 | 115 | 		    CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI | | 
 | 116 | 		    CSR_HW_IF_CONFIG_REG_BIT_MAC_SI); | 
| Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 117 |  | 
 | 118 | 	/* no locking required for register write */ | 
| Wey-Yi Guy | 740e7f5 | 2009-11-06 14:52:55 -0800 | [diff] [blame] | 119 | 	if (priv->cfg->pa_type == IWL_PA_INTERNAL) { | 
| Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 120 | 		/* 2x2 IPA phy type */ | 
 | 121 | 		iwl_write32(priv, CSR_GP_DRIVER_REG, | 
 | 122 | 			     CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA); | 
 | 123 | 	} | 
| Shanyu Zhao | 6b5ce50 | 2010-09-14 16:23:32 -0700 | [diff] [blame] | 124 | 	/* do additional nic configuration if needed */ | 
 | 125 | 	if (priv->cfg->ops->nic && | 
 | 126 | 		priv->cfg->ops->nic->additional_nic_config) { | 
 | 127 | 			priv->cfg->ops->nic->additional_nic_config(priv); | 
 | 128 | 	} | 
| Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 129 | } | 
 | 130 |  | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 131 | static struct iwl_sensitivity_ranges iwl6000_sensitivity = { | 
 | 132 | 	.min_nrg_cck = 97, | 
 | 133 | 	.max_nrg_cck = 0, /* not used, set to 0 */ | 
 | 134 | 	.auto_corr_min_ofdm = 80, | 
 | 135 | 	.auto_corr_min_ofdm_mrc = 128, | 
 | 136 | 	.auto_corr_min_ofdm_x1 = 105, | 
 | 137 | 	.auto_corr_min_ofdm_mrc_x1 = 192, | 
 | 138 |  | 
 | 139 | 	.auto_corr_max_ofdm = 145, | 
 | 140 | 	.auto_corr_max_ofdm_mrc = 232, | 
| Wey-Yi Guy | 2494f63 | 2010-01-20 12:22:52 -0800 | [diff] [blame] | 141 | 	.auto_corr_max_ofdm_x1 = 110, | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 142 | 	.auto_corr_max_ofdm_mrc_x1 = 232, | 
 | 143 |  | 
 | 144 | 	.auto_corr_min_cck = 125, | 
 | 145 | 	.auto_corr_max_cck = 175, | 
 | 146 | 	.auto_corr_min_cck_mrc = 160, | 
 | 147 | 	.auto_corr_max_cck_mrc = 310, | 
 | 148 | 	.nrg_th_cck = 97, | 
 | 149 | 	.nrg_th_ofdm = 100, | 
| Wey-Yi Guy | 55036d6 | 2009-10-09 13:20:24 -0700 | [diff] [blame] | 150 |  | 
 | 151 | 	.barker_corr_th_min = 190, | 
 | 152 | 	.barker_corr_th_min_mrc = 390, | 
 | 153 | 	.nrg_th_cca = 62, | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 154 | }; | 
 | 155 |  | 
 | 156 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) | 
 | 157 | { | 
| Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 158 | 	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] | 159 | 	    priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 160 | 		priv->cfg->base_params->num_of_queues = | 
| Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 161 | 			priv->cfg->mod_params->num_of_queues; | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 162 |  | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 163 | 	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] | 164 | 	priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; | 
 | 165 | 	priv->hw_params.scd_bc_tbls_size = | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 166 | 			priv->cfg->base_params->num_of_queues * | 
| Wey-Yi Guy | 19e6cda | 2010-03-16 17:41:23 -0700 | [diff] [blame] | 167 | 			sizeof(struct iwlagn_scd_bc_tbl); | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 168 | 	priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 
| Wey-Yi Guy | bf3c7fd | 2010-06-24 14:08:05 -0700 | [diff] [blame] | 169 | 	priv->hw_params.max_stations = IWLAGN_STATION_COUNT; | 
| Johannes Berg | a194e32 | 2010-08-27 08:53:46 -0700 | [diff] [blame] | 170 | 	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] | 171 |  | 
 | 172 | 	priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; | 
 | 173 | 	priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; | 
 | 174 |  | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 175 | 	priv->hw_params.ht40_channel =  BIT(IEEE80211_BAND_2GHZ) | | 
 | 176 | 					BIT(IEEE80211_BAND_5GHZ); | 
 | 177 | 	priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | 
 | 178 |  | 
 | 179 | 	priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 
| Wey-Yi Guy | 17423ea | 2010-12-06 11:51:39 -0800 | [diff] [blame] | 180 | 	if (priv->cfg->rx_with_siso_diversity) | 
 | 181 | 		priv->hw_params.rx_chains_num = 1; | 
 | 182 | 	else | 
 | 183 | 		priv->hw_params.rx_chains_num = | 
 | 184 | 			num_of_ant(priv->cfg->valid_rx_ant); | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 185 | 	priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; | 
 | 186 | 	priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; | 
 | 187 |  | 
| Johannes Berg | 0453674 | 2010-09-22 18:02:08 +0200 | [diff] [blame] | 188 | 	iwl6000_set_ct_threshold(priv); | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 189 |  | 
 | 190 | 	/* Set initial sensitivity parameters */ | 
 | 191 | 	/* Set initial calibration set */ | 
 | 192 | 	priv->hw_params.sens = &iwl6000_sensitivity; | 
| Wey-Yi Guy | e517736 | 2010-04-19 18:49:40 -0700 | [diff] [blame] | 193 | 	priv->hw_params.calib_init_cfg = | 
 | 194 | 		BIT(IWL_CALIB_XTAL)		| | 
 | 195 | 		BIT(IWL_CALIB_LO)		| | 
 | 196 | 		BIT(IWL_CALIB_TX_IQ)		| | 
 | 197 | 		BIT(IWL_CALIB_BASE_BAND); | 
| Wey-Yi Guy | 178d159 | 2010-06-15 16:14:53 -0700 | [diff] [blame] | 198 | 	if (priv->cfg->need_dc_calib) | 
| Shanyu Zhao | 6d6a1af | 2010-09-14 18:13:31 -0700 | [diff] [blame] | 199 | 		priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX); | 
| Shanyu Zhao | bf53f93 | 2010-09-21 16:54:01 -0700 | [diff] [blame] | 200 | 	if (priv->cfg->need_temp_offset_calib) | 
 | 201 | 		priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET); | 
| Abhijeet Kolekar | 07f33f9 | 2010-01-22 14:22:47 -0800 | [diff] [blame] | 202 |  | 
| Wey-Yi Guy | a0ee74c | 2010-05-06 08:54:10 -0700 | [diff] [blame] | 203 | 	priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS; | 
 | 204 |  | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 205 | 	return 0; | 
 | 206 | } | 
 | 207 |  | 
| Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 208 | static int iwl6000_hw_channel_switch(struct iwl_priv *priv, | 
 | 209 | 				     struct ieee80211_channel_switch *ch_switch) | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 210 | { | 
| Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 211 | 	/* | 
 | 212 | 	 * MULTI-FIXME | 
 | 213 | 	 * See iwl_mac_channel_switch. | 
 | 214 | 	 */ | 
 | 215 | 	struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 216 | 	struct iwl6000_channel_switch_cmd cmd; | 
 | 217 | 	const struct iwl_channel_info *ch_info; | 
| Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 218 | 	u32 switch_time_in_usec, ucode_switch_time; | 
 | 219 | 	u16 ch; | 
 | 220 | 	u32 tsf_low; | 
 | 221 | 	u8 switch_count; | 
| Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 222 | 	u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval); | 
| Johannes Berg | 8bd413e | 2010-08-23 10:46:40 +0200 | [diff] [blame] | 223 | 	struct ieee80211_vif *vif = ctx->vif; | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 224 | 	struct iwl_host_cmd hcmd = { | 
 | 225 | 		.id = REPLY_CHANNEL_SWITCH, | 
 | 226 | 		.len = sizeof(cmd), | 
| Wey-Yi Guy | 3839f7c | 2010-05-18 09:18:06 -0700 | [diff] [blame] | 227 | 		.flags = CMD_SYNC, | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 228 | 		.data = &cmd, | 
 | 229 | 	}; | 
 | 230 |  | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 231 | 	cmd.band = priv->band == IEEE80211_BAND_2GHZ; | 
| Shanyu Zhao | 81e9543 | 2010-07-28 13:40:27 -0700 | [diff] [blame] | 232 | 	ch = ch_switch->channel->hw_value; | 
| Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 233 | 	IWL_DEBUG_11H(priv, "channel switch from %u to %u\n", | 
| Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 234 | 		      ctx->active.channel, ch); | 
| Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 235 | 	cmd.channel = cpu_to_le16(ch); | 
| Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 236 | 	cmd.rxon_flags = ctx->staging.flags; | 
 | 237 | 	cmd.rxon_filter_flags = ctx->staging.filter_flags; | 
| Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 238 | 	switch_count = ch_switch->count; | 
 | 239 | 	tsf_low = ch_switch->timestamp & 0x0ffffffff; | 
 | 240 | 	/* | 
 | 241 | 	 * calculate the ucode channel switch time | 
 | 242 | 	 * adding TSF as one of the factor for when to switch | 
 | 243 | 	 */ | 
 | 244 | 	if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) { | 
 | 245 | 		if (switch_count > ((priv->ucode_beacon_time - tsf_low) / | 
 | 246 | 		    beacon_interval)) { | 
 | 247 | 			switch_count -= (priv->ucode_beacon_time - | 
 | 248 | 				tsf_low) / beacon_interval; | 
 | 249 | 		} else | 
 | 250 | 			switch_count = 0; | 
 | 251 | 	} | 
 | 252 | 	if (switch_count <= 1) | 
 | 253 | 		cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time); | 
 | 254 | 	else { | 
 | 255 | 		switch_time_in_usec = | 
 | 256 | 			vif->bss_conf.beacon_int * switch_count * TIME_UNIT; | 
 | 257 | 		ucode_switch_time = iwl_usecs_to_beacons(priv, | 
 | 258 | 							 switch_time_in_usec, | 
 | 259 | 							 beacon_interval); | 
 | 260 | 		cmd.switch_time = iwl_add_beacon_time(priv, | 
 | 261 | 						      priv->ucode_beacon_time, | 
 | 262 | 						      ucode_switch_time, | 
 | 263 | 						      beacon_interval); | 
 | 264 | 	} | 
 | 265 | 	IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n", | 
 | 266 | 		      cmd.switch_time); | 
 | 267 | 	ch_info = iwl_get_channel_info(priv, priv->band, ch); | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 268 | 	if (ch_info) | 
 | 269 | 		cmd.expect_beacon = is_channel_radar(ch_info); | 
 | 270 | 	else { | 
 | 271 | 		IWL_ERR(priv, "invalid channel switch from %u to %u\n", | 
| Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 272 | 			ctx->active.channel, ch); | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 273 | 		return -EFAULT; | 
 | 274 | 	} | 
| Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 275 | 	priv->switch_rxon.channel = cmd.channel; | 
| Wey-Yi Guy | 0924e51 | 2009-11-06 14:52:54 -0800 | [diff] [blame] | 276 | 	priv->switch_rxon.switch_in_progress = true; | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 277 |  | 
 | 278 | 	return iwl_send_cmd_sync(priv, &hcmd); | 
 | 279 | } | 
 | 280 |  | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 281 | static struct iwl_lib_ops iwl6000_lib = { | 
| Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 282 | 	.set_hw_params = iwl6000_hw_set_hw_params, | 
| Wey-Yi Guy | b305a08 | 2010-03-16 17:41:22 -0700 | [diff] [blame] | 283 | 	.txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl, | 
 | 284 | 	.txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl, | 
 | 285 | 	.txq_set_sched = iwlagn_txq_set_sched, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 286 | 	.txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, | 
 | 287 | 	.txq_free_tfd = iwl_hw_txq_free_tfd, | 
 | 288 | 	.txq_init = iwl_hw_tx_queue_init, | 
| Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 289 | 	.rx_handler_setup = iwlagn_rx_handler_setup, | 
 | 290 | 	.setup_deferred_work = iwlagn_setup_deferred_work, | 
 | 291 | 	.is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 
| Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 292 | 	.send_tx_power = iwlagn_send_tx_power, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 293 | 	.update_chain_flags = iwl_update_chain_flags, | 
| Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 294 | 	.set_channel_switch = iwl6000_hw_channel_switch, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 295 | 	.apm_ops = { | 
| Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 296 | 		.init = iwl_apm_init, | 
| Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 297 | 		.config = iwl6000_nic_config, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 298 | 	}, | 
 | 299 | 	.eeprom_ops = { | 
 | 300 | 		.regulatory_bands = { | 
| Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 301 | 			EEPROM_REG_BAND_1_CHANNELS, | 
 | 302 | 			EEPROM_REG_BAND_2_CHANNELS, | 
 | 303 | 			EEPROM_REG_BAND_3_CHANNELS, | 
 | 304 | 			EEPROM_REG_BAND_4_CHANNELS, | 
 | 305 | 			EEPROM_REG_BAND_5_CHANNELS, | 
| Shanyu Zhao | f2fa1b0 | 2010-04-07 18:37:52 -0700 | [diff] [blame] | 306 | 			EEPROM_6000_REG_BAND_24_HT40_CHANNELS, | 
| Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 307 | 			EEPROM_REG_BAND_52_HT40_CHANNELS | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 308 | 		}, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 309 | 		.acquire_semaphore = iwlcore_eeprom_acquire_semaphore, | 
 | 310 | 		.release_semaphore = iwlcore_eeprom_release_semaphore, | 
| Wey-Yi Guy | e04ed0a | 2010-03-16 17:47:58 -0700 | [diff] [blame] | 311 | 		.calib_version	= iwlagn_eeprom_calib_version, | 
 | 312 | 		.query_addr = iwlagn_eeprom_query_addr, | 
| Wey-Yi Guy | ab9fd1b | 2009-08-21 13:34:23 -0700 | [diff] [blame] | 313 | 		.update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 314 | 	}, | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 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 | 	 }, | 
| Abhijeet Kolekar | b8c7626 | 2010-04-08 15:29:07 -0700 | [diff] [blame] | 318 | 	.debugfs_ops = { | 
 | 319 | 		.rx_stats_read = iwl_ucode_rx_stats_read, | 
 | 320 | 		.tx_stats_read = iwl_ucode_tx_stats_read, | 
 | 321 | 		.general_stats_read = iwl_ucode_general_stats_read, | 
| Wey-Yi Guy | ffb7d89 | 2010-07-14 08:09:55 -0700 | [diff] [blame] | 322 | 		.bt_stats_read = iwl_ucode_bt_stats_read, | 
| Wey-Yi Guy | 54a9aa6 | 2010-09-05 10:49:42 -0700 | [diff] [blame] | 323 | 		.reply_tx_error = iwl_reply_tx_error_read, | 
| Abhijeet Kolekar | b8c7626 | 2010-04-08 15:29:07 -0700 | [diff] [blame] | 324 | 	}, | 
| Wey-Yi Guy | 716c74b | 2010-06-24 13:22:36 -0700 | [diff] [blame] | 325 | 	.txfifo_flush = iwlagn_txfifo_flush, | 
| Wey-Yi Guy | 6555063 | 2010-06-24 13:18:35 -0700 | [diff] [blame] | 326 | 	.dev_txfifo_flush = iwlagn_dev_txfifo_flush, | 
| Wey-Yi Guy | 0975cc8 | 2010-07-31 08:34:07 -0700 | [diff] [blame] | 327 | 	.tt_ops = { | 
 | 328 | 		.lower_power_detection = iwl_tt_is_low_power_state, | 
 | 329 | 		.tt_power_mode = iwl_tt_current_power_mode, | 
 | 330 | 		.ct_kill_check = iwl_check_for_ct_kill, | 
 | 331 | 	} | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 332 | }; | 
 | 333 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 334 | static struct iwl_lib_ops iwl6030_lib = { | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 335 | 	.set_hw_params = iwl6000_hw_set_hw_params, | 
 | 336 | 	.txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl, | 
 | 337 | 	.txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl, | 
 | 338 | 	.txq_set_sched = iwlagn_txq_set_sched, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 339 | 	.txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, | 
 | 340 | 	.txq_free_tfd = iwl_hw_txq_free_tfd, | 
 | 341 | 	.txq_init = iwl_hw_tx_queue_init, | 
| Wey-Yi Guy | b6e116e | 2010-08-23 07:57:14 -0700 | [diff] [blame] | 342 | 	.rx_handler_setup = iwlagn_bt_rx_handler_setup, | 
 | 343 | 	.setup_deferred_work = iwlagn_bt_setup_deferred_work, | 
 | 344 | 	.cancel_deferred_work = iwlagn_bt_cancel_deferred_work, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 345 | 	.is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 346 | 	.send_tx_power = iwlagn_send_tx_power, | 
 | 347 | 	.update_chain_flags = iwl_update_chain_flags, | 
 | 348 | 	.set_channel_switch = iwl6000_hw_channel_switch, | 
 | 349 | 	.apm_ops = { | 
 | 350 | 		.init = iwl_apm_init, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 351 | 		.config = iwl6000_nic_config, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 352 | 	}, | 
 | 353 | 	.eeprom_ops = { | 
 | 354 | 		.regulatory_bands = { | 
 | 355 | 			EEPROM_REG_BAND_1_CHANNELS, | 
 | 356 | 			EEPROM_REG_BAND_2_CHANNELS, | 
 | 357 | 			EEPROM_REG_BAND_3_CHANNELS, | 
 | 358 | 			EEPROM_REG_BAND_4_CHANNELS, | 
 | 359 | 			EEPROM_REG_BAND_5_CHANNELS, | 
 | 360 | 			EEPROM_6000_REG_BAND_24_HT40_CHANNELS, | 
 | 361 | 			EEPROM_REG_BAND_52_HT40_CHANNELS | 
 | 362 | 		}, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 363 | 		.acquire_semaphore = iwlcore_eeprom_acquire_semaphore, | 
 | 364 | 		.release_semaphore = iwlcore_eeprom_release_semaphore, | 
 | 365 | 		.calib_version	= iwlagn_eeprom_calib_version, | 
 | 366 | 		.query_addr = iwlagn_eeprom_query_addr, | 
 | 367 | 		.update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 
 | 368 | 	}, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 369 | 	.temp_ops = { | 
 | 370 | 		.temperature = iwlagn_temperature, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 371 | 	 }, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 372 | 	.debugfs_ops = { | 
 | 373 | 		.rx_stats_read = iwl_ucode_rx_stats_read, | 
 | 374 | 		.tx_stats_read = iwl_ucode_tx_stats_read, | 
 | 375 | 		.general_stats_read = iwl_ucode_general_stats_read, | 
 | 376 | 		.bt_stats_read = iwl_ucode_bt_stats_read, | 
| Wey-Yi Guy | 54a9aa6 | 2010-09-05 10:49:42 -0700 | [diff] [blame] | 377 | 		.reply_tx_error = iwl_reply_tx_error_read, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 378 | 	}, | 
| Johannes Berg | 9e4afc2 | 2010-08-23 07:56:57 -0700 | [diff] [blame] | 379 | 	.txfifo_flush = iwlagn_txfifo_flush, | 
 | 380 | 	.dev_txfifo_flush = iwlagn_dev_txfifo_flush, | 
 | 381 | 	.tt_ops = { | 
 | 382 | 		.lower_power_detection = iwl_tt_is_low_power_state, | 
 | 383 | 		.tt_power_mode = iwl_tt_current_power_mode, | 
 | 384 | 		.ct_kill_check = iwl_check_for_ct_kill, | 
 | 385 | 	} | 
 | 386 | }; | 
 | 387 |  | 
| Shanyu Zhao | 6b5ce50 | 2010-09-14 16:23:32 -0700 | [diff] [blame] | 388 | static struct iwl_nic_ops iwl6050_nic_ops = { | 
 | 389 | 	.additional_nic_config = &iwl6050_additional_nic_config, | 
 | 390 | }; | 
 | 391 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 392 | static struct iwl_nic_ops iwl6150_nic_ops = { | 
 | 393 | 	.additional_nic_config = &iwl6150_additional_nic_config, | 
| Shanyu Zhao | 02796d7 | 2010-09-14 16:23:42 -0700 | [diff] [blame] | 394 | }; | 
 | 395 |  | 
| Emese Revfy | 45d5d80 | 2009-12-14 00:59:53 +0100 | [diff] [blame] | 396 | static const struct iwl_ops iwl6000_ops = { | 
| Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 397 | 	.lib = &iwl6000_lib, | 
| Wey-Yi Guy | 7dc77db | 2010-03-16 10:23:31 -0700 | [diff] [blame] | 398 | 	.hcmd = &iwlagn_hcmd, | 
 | 399 | 	.utils = &iwlagn_hcmd_utils, | 
| Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame] | 400 | 	.led = &iwlagn_led_ops, | 
| Johannes Berg | dc21b54 | 2010-10-23 09:15:39 -0700 | [diff] [blame] | 401 | 	.ieee80211_ops = &iwlagn_hw_ops, | 
| Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 402 | }; | 
 | 403 |  | 
| Shanyu Zhao | 6b5ce50 | 2010-09-14 16:23:32 -0700 | [diff] [blame] | 404 | static const struct iwl_ops iwl6050_ops = { | 
 | 405 | 	.lib = &iwl6000_lib, | 
 | 406 | 	.hcmd = &iwlagn_hcmd, | 
 | 407 | 	.utils = &iwlagn_hcmd_utils, | 
 | 408 | 	.led = &iwlagn_led_ops, | 
 | 409 | 	.nic = &iwl6050_nic_ops, | 
| Johannes Berg | dc21b54 | 2010-10-23 09:15:39 -0700 | [diff] [blame] | 410 | 	.ieee80211_ops = &iwlagn_hw_ops, | 
| Shanyu Zhao | 6b5ce50 | 2010-09-14 16:23:32 -0700 | [diff] [blame] | 411 | }; | 
 | 412 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 413 | static const struct iwl_ops iwl6150_ops = { | 
| Shanyu Zhao | 02796d7 | 2010-09-14 16:23:42 -0700 | [diff] [blame] | 414 | 	.lib = &iwl6000_lib, | 
 | 415 | 	.hcmd = &iwlagn_hcmd, | 
 | 416 | 	.utils = &iwlagn_hcmd_utils, | 
 | 417 | 	.led = &iwlagn_led_ops, | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 418 | 	.nic = &iwl6150_nic_ops, | 
| Johannes Berg | dc21b54 | 2010-10-23 09:15:39 -0700 | [diff] [blame] | 419 | 	.ieee80211_ops = &iwlagn_hw_ops, | 
| Shanyu Zhao | 02796d7 | 2010-09-14 16:23:42 -0700 | [diff] [blame] | 420 | }; | 
 | 421 |  | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 422 | static const struct iwl_ops iwl6030_ops = { | 
 | 423 | 	.lib = &iwl6030_lib, | 
| Wey-Yi Guy | b6e116e | 2010-08-23 07:57:14 -0700 | [diff] [blame] | 424 | 	.hcmd = &iwlagn_bt_hcmd, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 425 | 	.utils = &iwlagn_hcmd_utils, | 
 | 426 | 	.led = &iwlagn_led_ops, | 
| Johannes Berg | dc21b54 | 2010-10-23 09:15:39 -0700 | [diff] [blame] | 427 | 	.ieee80211_ops = &iwlagn_hw_ops, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 428 | }; | 
 | 429 |  | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 430 | static struct iwl_base_params iwl6000_base_params = { | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 431 | 	.eeprom_size = OTP_LOW_IMAGE_SIZE, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 432 | 	.num_of_queues = IWLAGN_NUM_QUEUES, | 
 | 433 | 	.num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 434 | 	.pll_cfg_val = 0, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 435 | 	.max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 
 | 436 | 	.shadow_ram_support = true, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 437 | 	.led_compensation = 51, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 438 | 	.chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 439 | 	.adv_thermal_throttle = true, | 
 | 440 | 	.support_ct_kill_exit = true, | 
 | 441 | 	.plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 
 | 442 | 	.chain_noise_scale = 1000, | 
| Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 443 | 	.wd_timeout = IWL_DEF_WD_TIMEOUT, | 
| Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 444 | 	.max_event_log_size = 512, | 
| Wey-Yi Guy | 6e5c800 | 2010-04-27 14:00:28 -0700 | [diff] [blame] | 445 | 	.ucode_tracing = true, | 
| Wey-Yi Guy | f81c1f4 | 2010-11-10 09:56:50 -0800 | [diff] [blame] | 446 | 	.shadow_reg_enable = true, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 447 | }; | 
 | 448 |  | 
 | 449 | static struct iwl_base_params iwl6050_base_params = { | 
 | 450 | 	.eeprom_size = OTP_LOW_IMAGE_SIZE, | 
 | 451 | 	.num_of_queues = IWLAGN_NUM_QUEUES, | 
 | 452 | 	.num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | 
 | 453 | 	.pll_cfg_val = 0, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 454 | 	.max_ll_items = OTP_MAX_LL_ITEMS_6x50, | 
 | 455 | 	.shadow_ram_support = true, | 
 | 456 | 	.led_compensation = 51, | 
 | 457 | 	.chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 458 | 	.adv_thermal_throttle = true, | 
 | 459 | 	.support_ct_kill_exit = true, | 
 | 460 | 	.plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 
 | 461 | 	.chain_noise_scale = 1500, | 
| Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 462 | 	.wd_timeout = IWL_DEF_WD_TIMEOUT, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 463 | 	.max_event_log_size = 1024, | 
 | 464 | 	.ucode_tracing = true, | 
| Wey-Yi Guy | f81c1f4 | 2010-11-10 09:56:50 -0800 | [diff] [blame] | 465 | 	.shadow_reg_enable = true, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 466 | }; | 
| Wey-Yi Guy | 4fb3324 | 2010-11-29 10:45:16 -0800 | [diff] [blame] | 467 | static struct iwl_base_params iwl6000_g2_base_params = { | 
| Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 468 | 	.eeprom_size = OTP_LOW_IMAGE_SIZE, | 
 | 469 | 	.num_of_queues = IWLAGN_NUM_QUEUES, | 
 | 470 | 	.num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, | 
 | 471 | 	.pll_cfg_val = 0, | 
| Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 472 | 	.max_ll_items = OTP_MAX_LL_ITEMS_6x00, | 
 | 473 | 	.shadow_ram_support = true, | 
| Wey-Yi Guy | 4fb3324 | 2010-11-29 10:45:16 -0800 | [diff] [blame] | 474 | 	.led_compensation = 57, | 
| Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 475 | 	.chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, | 
| Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 476 | 	.adv_thermal_throttle = true, | 
 | 477 | 	.support_ct_kill_exit = true, | 
 | 478 | 	.plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, | 
 | 479 | 	.chain_noise_scale = 1000, | 
| Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 480 | 	.wd_timeout = IWL_LONG_WD_TIMEOUT, | 
| Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 481 | 	.max_event_log_size = 512, | 
 | 482 | 	.ucode_tracing = true, | 
| Wey-Yi Guy | f81c1f4 | 2010-11-10 09:56:50 -0800 | [diff] [blame] | 483 | 	.shadow_reg_enable = true, | 
| Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 484 | }; | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 485 |  | 
 | 486 | static struct iwl_ht_params iwl6000_ht_params = { | 
 | 487 | 	.ht_greenfield_support = true, | 
 | 488 | 	.use_rts_for_aggregation = true, /* use rts/cts protection */ | 
 | 489 | }; | 
 | 490 |  | 
 | 491 | static struct iwl_bt_params iwl6000_bt_params = { | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 492 | 	/* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ | 
 | 493 | 	.advanced_bt_coexist = true, | 
| Wey-Yi Guy | 66e863a5 | 2010-11-08 14:54:37 -0800 | [diff] [blame] | 494 | 	.agg_time_limit = BT_AGG_THRESHOLD_DEF, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 495 | 	.bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE, | 
 | 496 | 	.bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT, | 
| Wey-Yi Guy | e366176 | 2010-11-23 10:58:54 -0800 | [diff] [blame] | 497 | 	.bt_sco_disable = true, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 498 | }; | 
 | 499 |  | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 500 | #define IWL_DEVICE_6005						\ | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 501 | 	.fw_name_pre = IWL6005_FW_PRE,			\ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 502 | 	.ucode_api_max = IWL6000G2_UCODE_API_MAX,		\ | 
 | 503 | 	.ucode_api_min = IWL6000G2_UCODE_API_MIN,		\ | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 504 | 	.eeprom_ver = EEPROM_6005_EEPROM_VERSION,		\ | 
 | 505 | 	.eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION,	\ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 506 | 	.ops = &iwl6000_ops,					\ | 
 | 507 | 	.mod_params = &iwlagn_mod_params,			\ | 
 | 508 | 	.base_params = &iwl6000_g2_base_params,			\ | 
 | 509 | 	.need_dc_calib = true,					\ | 
 | 510 | 	.need_temp_offset_calib = true,				\ | 
 | 511 | 	.led_mode = IWL_LED_RF_STATE | 
 | 512 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 513 | struct iwl_cfg iwl6005_2agn_cfg = { | 
| Wey-Yi Guy | 55017ab | 2010-11-17 12:13:53 -0800 | [diff] [blame] | 514 | 	.name = "Intel(R) Centrino(R) Advanced-N 6205 AGN", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 515 | 	IWL_DEVICE_6005, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 516 | 	.ht_params = &iwl6000_ht_params, | 
| Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 517 | }; | 
 | 518 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 519 | struct iwl_cfg iwl6005_2abg_cfg = { | 
| Wey-Yi Guy | 55017ab | 2010-11-17 12:13:53 -0800 | [diff] [blame] | 520 | 	.name = "Intel(R) Centrino(R) Advanced-N 6205 ABG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 521 | 	IWL_DEVICE_6005, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 522 | }; | 
 | 523 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 524 | struct iwl_cfg iwl6005_2bg_cfg = { | 
| Wey-Yi Guy | 55017ab | 2010-11-17 12:13:53 -0800 | [diff] [blame] | 525 | 	.name = "Intel(R) Centrino(R) Advanced-N 6205 BG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 526 | 	IWL_DEVICE_6005, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 527 | }; | 
 | 528 |  | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 529 | #define IWL_DEVICE_6030						\ | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 530 | 	.fw_name_pre = IWL6030_FW_PRE,			\ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 531 | 	.ucode_api_max = IWL6000G2_UCODE_API_MAX,		\ | 
 | 532 | 	.ucode_api_min = IWL6000G2_UCODE_API_MIN,		\ | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 533 | 	.eeprom_ver = EEPROM_6030_EEPROM_VERSION,		\ | 
 | 534 | 	.eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION,	\ | 
 | 535 | 	.ops = &iwl6030_ops,					\ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 536 | 	.mod_params = &iwlagn_mod_params,			\ | 
 | 537 | 	.base_params = &iwl6000_g2_base_params,			\ | 
 | 538 | 	.bt_params = &iwl6000_bt_params,			\ | 
 | 539 | 	.need_dc_calib = true,					\ | 
 | 540 | 	.need_temp_offset_calib = true,				\ | 
 | 541 | 	.led_mode = IWL_LED_RF_STATE,				\ | 
| Stanislaw Gruszka | cd017f2 | 2010-12-23 15:12:30 +0100 | [diff] [blame] | 542 | 	.adv_pm = true						\ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 543 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 544 | struct iwl_cfg iwl6030_2agn_cfg = { | 
| Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 545 | 	.name = "Intel(R) Centrino(R) Advanced-N 6230 AGN", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 546 | 	IWL_DEVICE_6030, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 547 | 	.ht_params = &iwl6000_ht_params, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 548 | }; | 
 | 549 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 550 | struct iwl_cfg iwl6030_2abg_cfg = { | 
| Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 551 | 	.name = "Intel(R) Centrino(R) Advanced-N 6230 ABG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 552 | 	IWL_DEVICE_6030, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 553 | }; | 
 | 554 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 555 | struct iwl_cfg iwl6030_2bgn_cfg = { | 
| Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 556 | 	.name = "Intel(R) Centrino(R) Advanced-N 6230 BGN", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 557 | 	IWL_DEVICE_6030, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 558 | 	.ht_params = &iwl6000_ht_params, | 
| Shanyu Zhao | 9f6e1ba | 2010-05-11 15:21:54 -0700 | [diff] [blame] | 559 | }; | 
 | 560 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 561 | struct iwl_cfg iwl6030_2bg_cfg = { | 
| Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 562 | 	.name = "Intel(R) Centrino(R) Advanced-N 6230 BG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 563 | 	IWL_DEVICE_6030, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 564 | }; | 
 | 565 |  | 
| Wey-Yi Guy | d103e34 | 2011-03-10 03:17:16 -0800 | [diff] [blame] | 566 | struct iwl_cfg iwl6035_2agn_cfg = { | 
 | 567 | 	.name = "6035 Series 2x2 AGN/BT", | 
 | 568 | 	IWL_DEVICE_6030, | 
 | 569 | 	.ht_params = &iwl6000_ht_params, | 
 | 570 | }; | 
 | 571 |  | 
 | 572 | struct iwl_cfg iwl6035_2abg_cfg = { | 
 | 573 | 	.name = "6035 Series 2x2 ABG/BT", | 
 | 574 | 	IWL_DEVICE_6030, | 
 | 575 | }; | 
 | 576 |  | 
 | 577 | struct iwl_cfg iwl6035_2bg_cfg = { | 
 | 578 | 	.name = "6035 Series 2x2 BG/BT", | 
 | 579 | 	IWL_DEVICE_6030, | 
 | 580 | }; | 
 | 581 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 582 | struct iwl_cfg iwl1030_bgn_cfg = { | 
| Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 583 | 	.name = "Intel(R) Centrino(R) Wireless-N 1030 BGN", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 584 | 	IWL_DEVICE_6030, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 585 | 	.ht_params = &iwl6000_ht_params, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 586 | }; | 
 | 587 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 588 | struct iwl_cfg iwl1030_bg_cfg = { | 
| Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 589 | 	.name = "Intel(R) Centrino(R) Wireless-N 1030 BG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 590 | 	IWL_DEVICE_6030, | 
 | 591 | }; | 
 | 592 |  | 
 | 593 | struct iwl_cfg iwl130_bgn_cfg = { | 
 | 594 | 	.name = "Intel(R) Centrino(R) Wireless-N 130 BGN", | 
 | 595 | 	IWL_DEVICE_6030, | 
 | 596 | 	.ht_params = &iwl6000_ht_params, | 
 | 597 | 	.rx_with_siso_diversity = true, | 
 | 598 | }; | 
 | 599 |  | 
 | 600 | struct iwl_cfg iwl130_bg_cfg = { | 
 | 601 | 	.name = "Intel(R) Centrino(R) Wireless-N 130 BG", | 
 | 602 | 	IWL_DEVICE_6030, | 
 | 603 | 	.rx_with_siso_diversity = true, | 
| Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 604 | }; | 
 | 605 |  | 
| Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 606 | /* | 
 | 607 |  * "i": Internal configuration, use internal Power Amplifier | 
 | 608 |  */ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 609 | #define IWL_DEVICE_6000i					\ | 
 | 610 | 	.fw_name_pre = IWL6000_FW_PRE,				\ | 
 | 611 | 	.ucode_api_max = IWL6000_UCODE_API_MAX,			\ | 
 | 612 | 	.ucode_api_min = IWL6000_UCODE_API_MIN,			\ | 
 | 613 | 	.valid_tx_ant = ANT_BC,		/* .cfg overwrite */	\ | 
 | 614 | 	.valid_rx_ant = ANT_BC,		/* .cfg overwrite */	\ | 
 | 615 | 	.eeprom_ver = EEPROM_6000_EEPROM_VERSION,		\ | 
 | 616 | 	.eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,	\ | 
 | 617 | 	.ops = &iwl6000_ops,					\ | 
 | 618 | 	.mod_params = &iwlagn_mod_params,			\ | 
 | 619 | 	.base_params = &iwl6000_base_params,			\ | 
 | 620 | 	.pa_type = IWL_PA_INTERNAL,				\ | 
 | 621 | 	.led_mode = IWL_LED_BLINK | 
 | 622 |  | 
| Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 623 | struct iwl_cfg iwl6000i_2agn_cfg = { | 
| Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 624 | 	.name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 625 | 	IWL_DEVICE_6000i, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 626 | 	.ht_params = &iwl6000_ht_params, | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 627 | }; | 
 | 628 |  | 
| Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 629 | struct iwl_cfg iwl6000i_2abg_cfg = { | 
| Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 630 | 	.name = "Intel(R) Centrino(R) Advanced-N 6200 ABG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 631 | 	IWL_DEVICE_6000i, | 
| Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 632 | }; | 
 | 633 |  | 
 | 634 | struct iwl_cfg iwl6000i_2bg_cfg = { | 
| Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 635 | 	.name = "Intel(R) Centrino(R) Advanced-N 6200 BG", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 636 | 	IWL_DEVICE_6000i, | 
| Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 637 | }; | 
 | 638 |  | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 639 | #define IWL_DEVICE_6050						\ | 
 | 640 | 	.fw_name_pre = IWL6050_FW_PRE,				\ | 
 | 641 | 	.ucode_api_max = IWL6050_UCODE_API_MAX,			\ | 
 | 642 | 	.ucode_api_min = IWL6050_UCODE_API_MIN,			\ | 
| Wey-Yi Guy | ff458ed | 2011-01-31 13:56:03 -0800 | [diff] [blame] | 643 | 	.valid_tx_ant = ANT_AB,		/* .cfg overwrite */	\ | 
 | 644 | 	.valid_rx_ant = ANT_AB,		/* .cfg overwrite */	\ | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 645 | 	.ops = &iwl6050_ops,					\ | 
 | 646 | 	.eeprom_ver = EEPROM_6050_EEPROM_VERSION,		\ | 
 | 647 | 	.eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,	\ | 
 | 648 | 	.mod_params = &iwlagn_mod_params,			\ | 
 | 649 | 	.base_params = &iwl6050_base_params,			\ | 
 | 650 | 	.need_dc_calib = true,					\ | 
 | 651 | 	.led_mode = IWL_LED_BLINK,				\ | 
 | 652 | 	.internal_wimax_coex = true | 
 | 653 |  | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 654 | struct iwl_cfg iwl6050_2agn_cfg = { | 
| Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 655 | 	.name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 656 | 	IWL_DEVICE_6050, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 657 | 	.ht_params = &iwl6000_ht_params, | 
| Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 658 | }; | 
 | 659 |  | 
 | 660 | struct iwl_cfg iwl6050_2abg_cfg = { | 
 | 661 | 	.name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG", | 
 | 662 | 	IWL_DEVICE_6050, | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 663 | }; | 
 | 664 |  | 
| Wey-Yi Guy | 8b3ee29 | 2010-11-18 11:41:48 -0800 | [diff] [blame] | 665 | struct iwl_cfg iwl6150_bgn_cfg = { | 
| Wey-Yi Guy | f9dc646 | 2010-11-17 12:13:52 -0800 | [diff] [blame] | 666 | 	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN", | 
| Shanyu Zhao | 0326433 | 2010-06-29 17:27:27 -0700 | [diff] [blame] | 667 | 	.fw_name_pre = IWL6050_FW_PRE, | 
 | 668 | 	.ucode_api_max = IWL6050_UCODE_API_MAX, | 
 | 669 | 	.ucode_api_min = IWL6050_UCODE_API_MIN, | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 670 | 	.eeprom_ver = EEPROM_6150_EEPROM_VERSION, | 
 | 671 | 	.eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, | 
 | 672 | 	.ops = &iwl6150_ops, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 673 | 	.mod_params = &iwlagn_mod_params, | 
 | 674 | 	.base_params = &iwl6050_base_params, | 
 | 675 | 	.ht_params = &iwl6000_ht_params, | 
| Shanyu Zhao | 0326433 | 2010-06-29 17:27:27 -0700 | [diff] [blame] | 676 | 	.need_dc_calib = true, | 
| Wey-Yi Guy | 564b344 | 2010-11-09 09:21:34 -0800 | [diff] [blame] | 677 | 	.led_mode = IWL_LED_RF_STATE, | 
| Wey-Yi Guy | 50619ac | 2010-12-07 08:06:31 -0800 | [diff] [blame] | 678 | 	.internal_wimax_coex = true, | 
| Shanyu Zhao | 0326433 | 2010-06-29 17:27:27 -0700 | [diff] [blame] | 679 | }; | 
 | 680 |  | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 681 | struct iwl_cfg iwl6000_3agn_cfg = { | 
| Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 682 | 	.name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN", | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 683 | 	.fw_name_pre = IWL6000_FW_PRE, | 
 | 684 | 	.ucode_api_max = IWL6000_UCODE_API_MAX, | 
 | 685 | 	.ucode_api_min = IWL6000_UCODE_API_MIN, | 
| Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 686 | 	.eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 
 | 687 | 	.eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, | 
 | 688 | 	.ops = &iwl6000_ops, | 
 | 689 | 	.mod_params = &iwlagn_mod_params, | 
 | 690 | 	.base_params = &iwl6000_base_params, | 
 | 691 | 	.ht_params = &iwl6000_ht_params, | 
 | 692 | 	.need_dc_calib = true, | 
| Wey-Yi Guy | 564b344 | 2010-11-09 09:21:34 -0800 | [diff] [blame] | 693 | 	.led_mode = IWL_LED_BLINK, | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 694 | }; | 
 | 695 |  | 
| Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 696 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); | 
 | 697 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); | 
| Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 698 | MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); | 
 | 699 | MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); |