iwl-6000.c 31 KB

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