iwl-6000.c 29 KB

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