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