iwl-6000.c 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  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 5
  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 = IWLAGN_STATION_COUNT;
  142. priv->hw_params.bcast_sta_id = IWLAGN_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 = ch_switch->channel->hw_value;
  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. .bt_stats_read = iwl_ucode_bt_stats_read,
  294. },
  295. .recover_from_tx_stall = iwl_bg_monitor_recover,
  296. .check_plcp_health = iwl_good_plcp_health,
  297. .check_ack_health = iwl_good_ack_health,
  298. .txfifo_flush = iwlagn_txfifo_flush,
  299. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  300. .tt_ops = {
  301. .lower_power_detection = iwl_tt_is_low_power_state,
  302. .tt_power_mode = iwl_tt_current_power_mode,
  303. .ct_kill_check = iwl_check_for_ct_kill,
  304. }
  305. };
  306. static struct iwl_lib_ops iwl6000g2b_lib = {
  307. .set_hw_params = iwl6000_hw_set_hw_params,
  308. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  309. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  310. .txq_set_sched = iwlagn_txq_set_sched,
  311. .txq_agg_enable = iwlagn_txq_agg_enable,
  312. .txq_agg_disable = iwlagn_txq_agg_disable,
  313. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  314. .txq_free_tfd = iwl_hw_txq_free_tfd,
  315. .txq_init = iwl_hw_tx_queue_init,
  316. .rx_handler_setup = iwlagn_bt_rx_handler_setup,
  317. .setup_deferred_work = iwlagn_bt_setup_deferred_work,
  318. .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
  319. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  320. .load_ucode = iwlagn_load_ucode,
  321. .dump_nic_event_log = iwl_dump_nic_event_log,
  322. .dump_nic_error_log = iwl_dump_nic_error_log,
  323. .dump_csr = iwl_dump_csr,
  324. .dump_fh = iwl_dump_fh,
  325. .init_alive_start = iwlagn_init_alive_start,
  326. .alive_notify = iwlagn_alive_notify,
  327. .send_tx_power = iwlagn_send_tx_power,
  328. .update_chain_flags = iwl_update_chain_flags,
  329. .set_channel_switch = iwl6000_hw_channel_switch,
  330. .apm_ops = {
  331. .init = iwl_apm_init,
  332. .stop = iwl_apm_stop,
  333. .config = iwl6000_nic_config,
  334. .set_pwr_src = iwl_set_pwr_src,
  335. },
  336. .eeprom_ops = {
  337. .regulatory_bands = {
  338. EEPROM_REG_BAND_1_CHANNELS,
  339. EEPROM_REG_BAND_2_CHANNELS,
  340. EEPROM_REG_BAND_3_CHANNELS,
  341. EEPROM_REG_BAND_4_CHANNELS,
  342. EEPROM_REG_BAND_5_CHANNELS,
  343. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  344. EEPROM_REG_BAND_52_HT40_CHANNELS
  345. },
  346. .verify_signature = iwlcore_eeprom_verify_signature,
  347. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  348. .release_semaphore = iwlcore_eeprom_release_semaphore,
  349. .calib_version = iwlagn_eeprom_calib_version,
  350. .query_addr = iwlagn_eeprom_query_addr,
  351. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  352. },
  353. .post_associate = iwl_post_associate,
  354. .isr = iwl_isr_ict,
  355. .config_ap = iwl_config_ap,
  356. .temp_ops = {
  357. .temperature = iwlagn_temperature,
  358. .set_ct_kill = iwl6000_set_ct_threshold,
  359. .set_calib_version = iwl6000_set_calib_version,
  360. },
  361. .manage_ibss_station = iwlagn_manage_ibss_station,
  362. .update_bcast_station = iwl_update_bcast_station,
  363. .debugfs_ops = {
  364. .rx_stats_read = iwl_ucode_rx_stats_read,
  365. .tx_stats_read = iwl_ucode_tx_stats_read,
  366. .general_stats_read = iwl_ucode_general_stats_read,
  367. .bt_stats_read = iwl_ucode_bt_stats_read,
  368. },
  369. .recover_from_tx_stall = iwl_bg_monitor_recover,
  370. .check_plcp_health = iwl_good_plcp_health,
  371. .check_ack_health = iwl_good_ack_health,
  372. .txfifo_flush = iwlagn_txfifo_flush,
  373. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  374. .tt_ops = {
  375. .lower_power_detection = iwl_tt_is_low_power_state,
  376. .tt_power_mode = iwl_tt_current_power_mode,
  377. .ct_kill_check = iwl_check_for_ct_kill,
  378. }
  379. };
  380. static const struct iwl_ops iwl6000_ops = {
  381. .lib = &iwl6000_lib,
  382. .hcmd = &iwlagn_hcmd,
  383. .utils = &iwlagn_hcmd_utils,
  384. .led = &iwlagn_led_ops,
  385. };
  386. static const struct iwl_ops iwl6000g2b_ops = {
  387. .lib = &iwl6000g2b_lib,
  388. .hcmd = &iwlagn_bt_hcmd,
  389. .utils = &iwlagn_hcmd_utils,
  390. .led = &iwlagn_led_ops,
  391. };
  392. struct iwl_cfg iwl6000g2a_2agn_cfg = {
  393. .name = "6000 Series 2x2 AGN 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_A|IWL_SKU_G|IWL_SKU_N,
  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. .ht_greenfield_support = true,
  414. .led_compensation = 51,
  415. .use_rts_for_aggregation = true, /* use rts/cts protection */
  416. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  417. .supports_idle = true,
  418. .adv_thermal_throttle = true,
  419. .support_ct_kill_exit = true,
  420. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  421. .chain_noise_scale = 1000,
  422. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  423. .max_event_log_size = 512,
  424. .ucode_tracing = true,
  425. .sensitivity_calib_by_driver = true,
  426. .chain_noise_calib_by_driver = true,
  427. .need_dc_calib = true,
  428. };
  429. struct iwl_cfg iwl6000g2a_2abg_cfg = {
  430. .name = "6000 Series 2x2 ABG Gen2a",
  431. .fw_name_pre = IWL6000G2A_FW_PRE,
  432. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  433. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  434. .sku = IWL_SKU_A|IWL_SKU_G,
  435. .ops = &iwl6000_ops,
  436. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  437. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  438. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  439. .num_of_queues = IWLAGN_NUM_QUEUES,
  440. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  441. .mod_params = &iwlagn_mod_params,
  442. .valid_tx_ant = ANT_AB,
  443. .valid_rx_ant = ANT_AB,
  444. .pll_cfg_val = 0,
  445. .set_l0s = true,
  446. .use_bsm = false,
  447. .pa_type = IWL_PA_SYSTEM,
  448. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  449. .shadow_ram_support = true,
  450. .led_compensation = 51,
  451. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  452. .supports_idle = true,
  453. .adv_thermal_throttle = true,
  454. .support_ct_kill_exit = true,
  455. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  456. .chain_noise_scale = 1000,
  457. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  458. .max_event_log_size = 512,
  459. .sensitivity_calib_by_driver = true,
  460. .chain_noise_calib_by_driver = true,
  461. .need_dc_calib = true,
  462. };
  463. struct iwl_cfg iwl6000g2a_2bg_cfg = {
  464. .name = "6000 Series 2x2 BG Gen2a",
  465. .fw_name_pre = IWL6000G2A_FW_PRE,
  466. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  467. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  468. .sku = IWL_SKU_G,
  469. .ops = &iwl6000_ops,
  470. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  471. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  472. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  473. .num_of_queues = IWLAGN_NUM_QUEUES,
  474. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  475. .mod_params = &iwlagn_mod_params,
  476. .valid_tx_ant = ANT_AB,
  477. .valid_rx_ant = ANT_AB,
  478. .pll_cfg_val = 0,
  479. .set_l0s = true,
  480. .use_bsm = false,
  481. .pa_type = IWL_PA_SYSTEM,
  482. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  483. .shadow_ram_support = true,
  484. .led_compensation = 51,
  485. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  486. .supports_idle = true,
  487. .adv_thermal_throttle = true,
  488. .support_ct_kill_exit = true,
  489. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  490. .chain_noise_scale = 1000,
  491. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  492. .max_event_log_size = 512,
  493. .sensitivity_calib_by_driver = true,
  494. .chain_noise_calib_by_driver = true,
  495. .need_dc_calib = true,
  496. };
  497. struct iwl_cfg iwl6000g2b_2agn_cfg = {
  498. .name = "6000 Series 2x2 AGN Gen2b",
  499. .fw_name_pre = IWL6000G2B_FW_PRE,
  500. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  501. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  502. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  503. .ops = &iwl6000g2b_ops,
  504. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  505. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  506. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  507. .num_of_queues = IWLAGN_NUM_QUEUES,
  508. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  509. .mod_params = &iwlagn_mod_params,
  510. .valid_tx_ant = ANT_AB,
  511. .valid_rx_ant = ANT_AB,
  512. .pll_cfg_val = 0,
  513. .set_l0s = true,
  514. .use_bsm = false,
  515. .pa_type = IWL_PA_SYSTEM,
  516. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  517. .shadow_ram_support = true,
  518. .ht_greenfield_support = true,
  519. .led_compensation = 51,
  520. .use_rts_for_aggregation = true, /* use rts/cts protection */
  521. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  522. .supports_idle = true,
  523. .adv_thermal_throttle = true,
  524. .support_ct_kill_exit = true,
  525. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  526. .chain_noise_scale = 1000,
  527. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  528. .max_event_log_size = 512,
  529. .sensitivity_calib_by_driver = true,
  530. .chain_noise_calib_by_driver = true,
  531. .need_dc_calib = true,
  532. .bt_statistics = true,
  533. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  534. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  535. .advanced_bt_coexist = true,
  536. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  537. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  538. };
  539. struct iwl_cfg iwl6000g2b_2abg_cfg = {
  540. .name = "6000 Series 2x2 ABG Gen2b",
  541. .fw_name_pre = IWL6000G2B_FW_PRE,
  542. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  543. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  544. .sku = IWL_SKU_A|IWL_SKU_G,
  545. .ops = &iwl6000g2b_ops,
  546. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  547. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  548. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  549. .num_of_queues = IWLAGN_NUM_QUEUES,
  550. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  551. .mod_params = &iwlagn_mod_params,
  552. .valid_tx_ant = ANT_AB,
  553. .valid_rx_ant = ANT_AB,
  554. .pll_cfg_val = 0,
  555. .set_l0s = true,
  556. .use_bsm = false,
  557. .pa_type = IWL_PA_SYSTEM,
  558. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  559. .shadow_ram_support = true,
  560. .led_compensation = 51,
  561. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  562. .supports_idle = true,
  563. .adv_thermal_throttle = true,
  564. .support_ct_kill_exit = true,
  565. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  566. .chain_noise_scale = 1000,
  567. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  568. .max_event_log_size = 512,
  569. .sensitivity_calib_by_driver = true,
  570. .chain_noise_calib_by_driver = true,
  571. .need_dc_calib = true,
  572. .bt_statistics = true,
  573. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  574. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  575. .advanced_bt_coexist = true,
  576. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  577. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  578. };
  579. struct iwl_cfg iwl6000g2b_2bgn_cfg = {
  580. .name = "6000 Series 2x2 BGN Gen2b",
  581. .fw_name_pre = IWL6000G2B_FW_PRE,
  582. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  583. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  584. .sku = IWL_SKU_G|IWL_SKU_N,
  585. .ops = &iwl6000g2b_ops,
  586. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  587. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  588. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  589. .num_of_queues = IWLAGN_NUM_QUEUES,
  590. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  591. .mod_params = &iwlagn_mod_params,
  592. .valid_tx_ant = ANT_AB,
  593. .valid_rx_ant = ANT_AB,
  594. .pll_cfg_val = 0,
  595. .set_l0s = true,
  596. .use_bsm = false,
  597. .pa_type = IWL_PA_SYSTEM,
  598. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  599. .shadow_ram_support = true,
  600. .ht_greenfield_support = true,
  601. .led_compensation = 51,
  602. .use_rts_for_aggregation = true, /* use rts/cts protection */
  603. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  604. .supports_idle = true,
  605. .adv_thermal_throttle = true,
  606. .support_ct_kill_exit = true,
  607. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  608. .chain_noise_scale = 1000,
  609. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  610. .max_event_log_size = 512,
  611. .sensitivity_calib_by_driver = true,
  612. .chain_noise_calib_by_driver = true,
  613. .need_dc_calib = true,
  614. .bt_statistics = true,
  615. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  616. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  617. .advanced_bt_coexist = true,
  618. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  619. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  620. };
  621. struct iwl_cfg iwl6000g2b_2bg_cfg = {
  622. .name = "6000 Series 2x2 BG Gen2b",
  623. .fw_name_pre = IWL6000G2B_FW_PRE,
  624. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  625. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  626. .sku = IWL_SKU_G,
  627. .ops = &iwl6000g2b_ops,
  628. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  629. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  630. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  631. .num_of_queues = IWLAGN_NUM_QUEUES,
  632. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  633. .mod_params = &iwlagn_mod_params,
  634. .valid_tx_ant = ANT_AB,
  635. .valid_rx_ant = ANT_AB,
  636. .pll_cfg_val = 0,
  637. .set_l0s = true,
  638. .use_bsm = false,
  639. .pa_type = IWL_PA_SYSTEM,
  640. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  641. .shadow_ram_support = true,
  642. .led_compensation = 51,
  643. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  644. .supports_idle = true,
  645. .adv_thermal_throttle = true,
  646. .support_ct_kill_exit = true,
  647. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  648. .chain_noise_scale = 1000,
  649. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  650. .max_event_log_size = 512,
  651. .sensitivity_calib_by_driver = true,
  652. .chain_noise_calib_by_driver = true,
  653. .need_dc_calib = true,
  654. .bt_statistics = true,
  655. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  656. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  657. .advanced_bt_coexist = true,
  658. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  659. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  660. };
  661. struct iwl_cfg iwl6000g2b_bgn_cfg = {
  662. .name = "6000 Series 1x2 BGN Gen2b",
  663. .fw_name_pre = IWL6000G2B_FW_PRE,
  664. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  665. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  666. .sku = IWL_SKU_G|IWL_SKU_N,
  667. .ops = &iwl6000g2b_ops,
  668. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  669. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  670. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  671. .num_of_queues = IWLAGN_NUM_QUEUES,
  672. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  673. .mod_params = &iwlagn_mod_params,
  674. .valid_tx_ant = ANT_A,
  675. .valid_rx_ant = ANT_AB,
  676. .pll_cfg_val = 0,
  677. .set_l0s = true,
  678. .use_bsm = false,
  679. .pa_type = IWL_PA_SYSTEM,
  680. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  681. .shadow_ram_support = true,
  682. .ht_greenfield_support = true,
  683. .led_compensation = 51,
  684. .use_rts_for_aggregation = true, /* use rts/cts protection */
  685. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  686. .supports_idle = true,
  687. .adv_thermal_throttle = true,
  688. .support_ct_kill_exit = true,
  689. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  690. .chain_noise_scale = 1000,
  691. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  692. .max_event_log_size = 512,
  693. .sensitivity_calib_by_driver = true,
  694. .chain_noise_calib_by_driver = true,
  695. .need_dc_calib = true,
  696. .bt_statistics = true,
  697. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  698. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  699. .advanced_bt_coexist = true,
  700. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  701. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  702. };
  703. struct iwl_cfg iwl6000g2b_bg_cfg = {
  704. .name = "6000 Series 1x2 BG Gen2b",
  705. .fw_name_pre = IWL6000G2B_FW_PRE,
  706. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  707. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  708. .sku = IWL_SKU_G,
  709. .ops = &iwl6000g2b_ops,
  710. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  711. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  712. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  713. .num_of_queues = IWLAGN_NUM_QUEUES,
  714. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  715. .mod_params = &iwlagn_mod_params,
  716. .valid_tx_ant = ANT_A,
  717. .valid_rx_ant = ANT_AB,
  718. .pll_cfg_val = 0,
  719. .set_l0s = true,
  720. .use_bsm = false,
  721. .pa_type = IWL_PA_SYSTEM,
  722. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  723. .shadow_ram_support = true,
  724. .led_compensation = 51,
  725. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  726. .supports_idle = true,
  727. .adv_thermal_throttle = true,
  728. .support_ct_kill_exit = true,
  729. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  730. .chain_noise_scale = 1000,
  731. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  732. .max_event_log_size = 512,
  733. .sensitivity_calib_by_driver = true,
  734. .chain_noise_calib_by_driver = true,
  735. .need_dc_calib = true,
  736. .bt_statistics = true,
  737. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  738. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  739. .advanced_bt_coexist = true,
  740. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  741. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  742. };
  743. /*
  744. * "i": Internal configuration, use internal Power Amplifier
  745. */
  746. struct iwl_cfg iwl6000i_2agn_cfg = {
  747. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  748. .fw_name_pre = IWL6000_FW_PRE,
  749. .ucode_api_max = IWL6000_UCODE_API_MAX,
  750. .ucode_api_min = IWL6000_UCODE_API_MIN,
  751. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  752. .ops = &iwl6000_ops,
  753. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  754. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  755. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  756. .num_of_queues = IWLAGN_NUM_QUEUES,
  757. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  758. .mod_params = &iwlagn_mod_params,
  759. .valid_tx_ant = ANT_BC,
  760. .valid_rx_ant = ANT_BC,
  761. .pll_cfg_val = 0,
  762. .set_l0s = true,
  763. .use_bsm = false,
  764. .pa_type = IWL_PA_INTERNAL,
  765. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  766. .shadow_ram_support = true,
  767. .ht_greenfield_support = true,
  768. .led_compensation = 51,
  769. .use_rts_for_aggregation = true, /* use rts/cts protection */
  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_DEF_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 iwl6000i_2abg_cfg = {
  783. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  784. .fw_name_pre = IWL6000_FW_PRE,
  785. .ucode_api_max = IWL6000_UCODE_API_MAX,
  786. .ucode_api_min = IWL6000_UCODE_API_MIN,
  787. .sku = IWL_SKU_A|IWL_SKU_G,
  788. .ops = &iwl6000_ops,
  789. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  790. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  791. .eeprom_calib_ver = EEPROM_6000_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_BC,
  796. .valid_rx_ant = ANT_BC,
  797. .pll_cfg_val = 0,
  798. .set_l0s = true,
  799. .use_bsm = false,
  800. .pa_type = IWL_PA_INTERNAL,
  801. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  802. .shadow_ram_support = true,
  803. .led_compensation = 51,
  804. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  805. .supports_idle = true,
  806. .adv_thermal_throttle = true,
  807. .support_ct_kill_exit = true,
  808. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  809. .chain_noise_scale = 1000,
  810. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  811. .max_event_log_size = 1024,
  812. .ucode_tracing = true,
  813. .sensitivity_calib_by_driver = true,
  814. .chain_noise_calib_by_driver = true,
  815. };
  816. struct iwl_cfg iwl6000i_2bg_cfg = {
  817. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  818. .fw_name_pre = IWL6000_FW_PRE,
  819. .ucode_api_max = IWL6000_UCODE_API_MAX,
  820. .ucode_api_min = IWL6000_UCODE_API_MIN,
  821. .sku = IWL_SKU_G,
  822. .ops = &iwl6000_ops,
  823. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  824. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  825. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  826. .num_of_queues = IWLAGN_NUM_QUEUES,
  827. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  828. .mod_params = &iwlagn_mod_params,
  829. .valid_tx_ant = ANT_BC,
  830. .valid_rx_ant = ANT_BC,
  831. .pll_cfg_val = 0,
  832. .set_l0s = true,
  833. .use_bsm = false,
  834. .pa_type = IWL_PA_INTERNAL,
  835. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  836. .shadow_ram_support = true,
  837. .led_compensation = 51,
  838. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  839. .supports_idle = true,
  840. .adv_thermal_throttle = true,
  841. .support_ct_kill_exit = true,
  842. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  843. .chain_noise_scale = 1000,
  844. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  845. .max_event_log_size = 1024,
  846. .ucode_tracing = true,
  847. .sensitivity_calib_by_driver = true,
  848. .chain_noise_calib_by_driver = true,
  849. };
  850. struct iwl_cfg iwl6050_2agn_cfg = {
  851. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  852. .fw_name_pre = IWL6050_FW_PRE,
  853. .ucode_api_max = IWL6050_UCODE_API_MAX,
  854. .ucode_api_min = IWL6050_UCODE_API_MIN,
  855. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  856. .ops = &iwl6000_ops,
  857. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  858. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  859. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  860. .num_of_queues = IWLAGN_NUM_QUEUES,
  861. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  862. .mod_params = &iwlagn_mod_params,
  863. .valid_tx_ant = ANT_AB,
  864. .valid_rx_ant = ANT_AB,
  865. .pll_cfg_val = 0,
  866. .set_l0s = true,
  867. .use_bsm = false,
  868. .pa_type = IWL_PA_SYSTEM,
  869. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  870. .shadow_ram_support = true,
  871. .ht_greenfield_support = true,
  872. .led_compensation = 51,
  873. .use_rts_for_aggregation = true, /* use rts/cts protection */
  874. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  875. .supports_idle = true,
  876. .adv_thermal_throttle = true,
  877. .support_ct_kill_exit = true,
  878. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  879. .chain_noise_scale = 1500,
  880. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  881. .max_event_log_size = 1024,
  882. .ucode_tracing = true,
  883. .sensitivity_calib_by_driver = true,
  884. .chain_noise_calib_by_driver = true,
  885. .need_dc_calib = true,
  886. };
  887. struct iwl_cfg iwl6050g2_bgn_cfg = {
  888. .name = "6050 Series 1x2 BGN Gen2",
  889. .fw_name_pre = IWL6050_FW_PRE,
  890. .ucode_api_max = IWL6050_UCODE_API_MAX,
  891. .ucode_api_min = IWL6050_UCODE_API_MIN,
  892. .sku = IWL_SKU_G|IWL_SKU_N,
  893. .ops = &iwl6000_ops,
  894. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  895. .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
  896. .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
  897. .num_of_queues = IWLAGN_NUM_QUEUES,
  898. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  899. .mod_params = &iwlagn_mod_params,
  900. .valid_tx_ant = ANT_A,
  901. .valid_rx_ant = ANT_AB,
  902. .pll_cfg_val = 0,
  903. .set_l0s = true,
  904. .use_bsm = false,
  905. .pa_type = IWL_PA_SYSTEM,
  906. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  907. .shadow_ram_support = true,
  908. .ht_greenfield_support = true,
  909. .led_compensation = 51,
  910. .use_rts_for_aggregation = true, /* use rts/cts protection */
  911. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  912. .supports_idle = true,
  913. .adv_thermal_throttle = true,
  914. .support_ct_kill_exit = true,
  915. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  916. .chain_noise_scale = 1500,
  917. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  918. .max_event_log_size = 1024,
  919. .ucode_tracing = true,
  920. .sensitivity_calib_by_driver = true,
  921. .chain_noise_calib_by_driver = true,
  922. .need_dc_calib = true,
  923. };
  924. struct iwl_cfg iwl6050_2abg_cfg = {
  925. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  926. .fw_name_pre = IWL6050_FW_PRE,
  927. .ucode_api_max = IWL6050_UCODE_API_MAX,
  928. .ucode_api_min = IWL6050_UCODE_API_MIN,
  929. .sku = IWL_SKU_A|IWL_SKU_G,
  930. .ops = &iwl6000_ops,
  931. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  932. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  933. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  934. .num_of_queues = IWLAGN_NUM_QUEUES,
  935. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  936. .mod_params = &iwlagn_mod_params,
  937. .valid_tx_ant = ANT_AB,
  938. .valid_rx_ant = ANT_AB,
  939. .pll_cfg_val = 0,
  940. .set_l0s = true,
  941. .use_bsm = false,
  942. .pa_type = IWL_PA_SYSTEM,
  943. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  944. .shadow_ram_support = true,
  945. .led_compensation = 51,
  946. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  947. .supports_idle = true,
  948. .adv_thermal_throttle = true,
  949. .support_ct_kill_exit = true,
  950. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  951. .chain_noise_scale = 1500,
  952. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  953. .max_event_log_size = 1024,
  954. .ucode_tracing = true,
  955. .sensitivity_calib_by_driver = true,
  956. .chain_noise_calib_by_driver = true,
  957. .need_dc_calib = true,
  958. };
  959. struct iwl_cfg iwl6000_3agn_cfg = {
  960. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  961. .fw_name_pre = IWL6000_FW_PRE,
  962. .ucode_api_max = IWL6000_UCODE_API_MAX,
  963. .ucode_api_min = IWL6000_UCODE_API_MIN,
  964. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  965. .ops = &iwl6000_ops,
  966. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  967. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  968. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  969. .num_of_queues = IWLAGN_NUM_QUEUES,
  970. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  971. .mod_params = &iwlagn_mod_params,
  972. .valid_tx_ant = ANT_ABC,
  973. .valid_rx_ant = ANT_ABC,
  974. .pll_cfg_val = 0,
  975. .set_l0s = true,
  976. .use_bsm = false,
  977. .pa_type = IWL_PA_SYSTEM,
  978. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  979. .shadow_ram_support = true,
  980. .ht_greenfield_support = true,
  981. .led_compensation = 51,
  982. .use_rts_for_aggregation = true, /* use rts/cts protection */
  983. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  984. .supports_idle = true,
  985. .adv_thermal_throttle = true,
  986. .support_ct_kill_exit = true,
  987. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  988. .chain_noise_scale = 1000,
  989. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  990. .max_event_log_size = 1024,
  991. .ucode_tracing = true,
  992. .sensitivity_calib_by_driver = true,
  993. .chain_noise_calib_by_driver = true,
  994. };
  995. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  996. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  997. MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  998. MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));