iwl-6000.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2008-2009 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-helpers.h"
  44. #include "iwl-5000-hw.h"
  45. #include "iwl-6000-hw.h"
  46. #include "iwl-agn-led.h"
  47. /* Highest firmware API version supported */
  48. #define IWL6000_UCODE_API_MAX 4
  49. #define IWL6050_UCODE_API_MAX 4
  50. /* Lowest firmware API version supported */
  51. #define IWL6000_UCODE_API_MIN 1
  52. #define IWL6050_UCODE_API_MIN 1
  53. #define IWL6000_FW_PRE "iwlwifi-6000-"
  54. #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
  55. #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
  56. #define IWL6050_FW_PRE "iwlwifi-6050-"
  57. #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
  58. #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
  59. static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
  60. {
  61. /* want Celsius */
  62. priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
  63. priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
  64. }
  65. /* NIC configuration for 6000 series */
  66. static void iwl6000_nic_config(struct iwl_priv *priv)
  67. {
  68. u16 radio_cfg;
  69. radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
  70. /* write radio config values to register */
  71. if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
  72. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  73. EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
  74. EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
  75. EEPROM_RF_CFG_DASH_MSK(radio_cfg));
  76. /* set CSR_HW_CONFIG_REG for uCode use */
  77. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  78. CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
  79. CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
  80. /* no locking required for register write */
  81. if (priv->cfg->pa_type == IWL_PA_HYBRID) {
  82. /* 2x2 hybrid phy type */
  83. iwl_write32(priv, CSR_GP_DRIVER_REG,
  84. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
  85. } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
  86. /* 2x2 IPA phy type */
  87. iwl_write32(priv, CSR_GP_DRIVER_REG,
  88. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
  89. }
  90. /* else do nothing, uCode configured */
  91. }
  92. static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
  93. .min_nrg_cck = 97,
  94. .max_nrg_cck = 0, /* not used, set to 0 */
  95. .auto_corr_min_ofdm = 80,
  96. .auto_corr_min_ofdm_mrc = 128,
  97. .auto_corr_min_ofdm_x1 = 105,
  98. .auto_corr_min_ofdm_mrc_x1 = 192,
  99. .auto_corr_max_ofdm = 145,
  100. .auto_corr_max_ofdm_mrc = 232,
  101. .auto_corr_max_ofdm_x1 = 145,
  102. .auto_corr_max_ofdm_mrc_x1 = 232,
  103. .auto_corr_min_cck = 125,
  104. .auto_corr_max_cck = 175,
  105. .auto_corr_min_cck_mrc = 160,
  106. .auto_corr_max_cck_mrc = 310,
  107. .nrg_th_cck = 97,
  108. .nrg_th_ofdm = 100,
  109. .barker_corr_th_min = 190,
  110. .barker_corr_th_min_mrc = 390,
  111. .nrg_th_cca = 62,
  112. };
  113. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  114. {
  115. if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
  116. priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
  117. priv->cfg->num_of_queues =
  118. priv->cfg->mod_params->num_of_queues;
  119. priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
  120. priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
  121. priv->hw_params.scd_bc_tbls_size =
  122. priv->cfg->num_of_queues *
  123. sizeof(struct iwl5000_scd_bc_tbl);
  124. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  125. priv->hw_params.max_stations = IWL5000_STATION_COUNT;
  126. priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
  127. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  128. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  129. priv->hw_params.max_bsm_size = 0;
  130. priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  131. BIT(IEEE80211_BAND_5GHZ);
  132. priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
  133. priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  134. priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
  135. priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
  136. priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
  137. if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
  138. priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
  139. /* Set initial sensitivity parameters */
  140. /* Set initial calibration set */
  141. priv->hw_params.sens = &iwl6000_sensitivity;
  142. priv->hw_params.calib_init_cfg =
  143. BIT(IWL_CALIB_XTAL) |
  144. BIT(IWL_CALIB_LO) |
  145. BIT(IWL_CALIB_TX_IQ) |
  146. BIT(IWL_CALIB_TX_IQ_PERD) |
  147. BIT(IWL_CALIB_BASE_BAND);
  148. return 0;
  149. }
  150. static struct iwl_lib_ops iwl6000_lib = {
  151. .set_hw_params = iwl6000_hw_set_hw_params,
  152. .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
  153. .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
  154. .txq_set_sched = iwl5000_txq_set_sched,
  155. .txq_agg_enable = iwl5000_txq_agg_enable,
  156. .txq_agg_disable = iwl5000_txq_agg_disable,
  157. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  158. .txq_free_tfd = iwl_hw_txq_free_tfd,
  159. .txq_init = iwl_hw_tx_queue_init,
  160. .rx_handler_setup = iwl5000_rx_handler_setup,
  161. .setup_deferred_work = iwl5000_setup_deferred_work,
  162. .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
  163. .load_ucode = iwl5000_load_ucode,
  164. .dump_nic_event_log = iwl_dump_nic_event_log,
  165. .dump_nic_error_log = iwl_dump_nic_error_log,
  166. .init_alive_start = iwl5000_init_alive_start,
  167. .alive_notify = iwl5000_alive_notify,
  168. .send_tx_power = iwl5000_send_tx_power,
  169. .update_chain_flags = iwl_update_chain_flags,
  170. .apm_ops = {
  171. .init = iwl_apm_init,
  172. .stop = iwl_apm_stop,
  173. .config = iwl6000_nic_config,
  174. .set_pwr_src = iwl_set_pwr_src,
  175. },
  176. .eeprom_ops = {
  177. .regulatory_bands = {
  178. EEPROM_5000_REG_BAND_1_CHANNELS,
  179. EEPROM_5000_REG_BAND_2_CHANNELS,
  180. EEPROM_5000_REG_BAND_3_CHANNELS,
  181. EEPROM_5000_REG_BAND_4_CHANNELS,
  182. EEPROM_5000_REG_BAND_5_CHANNELS,
  183. EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
  184. EEPROM_5000_REG_BAND_52_HT40_CHANNELS
  185. },
  186. .verify_signature = iwlcore_eeprom_verify_signature,
  187. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  188. .release_semaphore = iwlcore_eeprom_release_semaphore,
  189. .calib_version = iwl5000_eeprom_calib_version,
  190. .query_addr = iwl5000_eeprom_query_addr,
  191. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  192. },
  193. .post_associate = iwl_post_associate,
  194. .isr = iwl_isr_ict,
  195. .config_ap = iwl_config_ap,
  196. .temp_ops = {
  197. .temperature = iwl5000_temperature,
  198. .set_ct_kill = iwl6000_set_ct_threshold,
  199. },
  200. };
  201. static struct iwl_ops iwl6000_ops = {
  202. .ucode = &iwl5000_ucode,
  203. .lib = &iwl6000_lib,
  204. .hcmd = &iwl5000_hcmd,
  205. .utils = &iwl5000_hcmd_utils,
  206. .led = &iwlagn_led_ops,
  207. };
  208. static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
  209. .get_hcmd_size = iwl5000_get_hcmd_size,
  210. .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
  211. .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
  212. .calc_rssi = iwl5000_calc_rssi,
  213. };
  214. static struct iwl_ops iwl6050_ops = {
  215. .ucode = &iwl5000_ucode,
  216. .lib = &iwl6000_lib,
  217. .hcmd = &iwl5000_hcmd,
  218. .utils = &iwl6050_hcmd_utils,
  219. .led = &iwlagn_led_ops,
  220. };
  221. /*
  222. * "h": Hybrid configuration, use both internal and external Power Amplifier
  223. */
  224. struct iwl_cfg iwl6000h_2agn_cfg = {
  225. .name = "6000 Series 2x2 AGN",
  226. .fw_name_pre = IWL6000_FW_PRE,
  227. .ucode_api_max = IWL6000_UCODE_API_MAX,
  228. .ucode_api_min = IWL6000_UCODE_API_MIN,
  229. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  230. .ops = &iwl6000_ops,
  231. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  232. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  233. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  234. .num_of_queues = IWL50_NUM_QUEUES,
  235. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  236. .mod_params = &iwl50_mod_params,
  237. .valid_tx_ant = ANT_AB,
  238. .valid_rx_ant = ANT_AB,
  239. .pll_cfg_val = 0,
  240. .set_l0s = false,
  241. .use_bsm = false,
  242. .pa_type = IWL_PA_HYBRID,
  243. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  244. .shadow_ram_support = true,
  245. .ht_greenfield_support = true,
  246. .led_compensation = 51,
  247. .use_rts_for_ht = true, /* use rts/cts protection */
  248. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  249. .supports_idle = true,
  250. .adv_thermal_throttle = true,
  251. };
  252. struct iwl_cfg iwl6000h_2abg_cfg = {
  253. .name = "6000 Series 2x2 ABG",
  254. .fw_name_pre = IWL6000_FW_PRE,
  255. .ucode_api_max = IWL6000_UCODE_API_MAX,
  256. .ucode_api_min = IWL6000_UCODE_API_MIN,
  257. .sku = IWL_SKU_A|IWL_SKU_G,
  258. .ops = &iwl6000_ops,
  259. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  260. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  261. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  262. .num_of_queues = IWL50_NUM_QUEUES,
  263. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  264. .mod_params = &iwl50_mod_params,
  265. .valid_tx_ant = ANT_AB,
  266. .valid_rx_ant = ANT_AB,
  267. .pll_cfg_val = 0,
  268. .set_l0s = false,
  269. .use_bsm = false,
  270. .pa_type = IWL_PA_HYBRID,
  271. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  272. .shadow_ram_support = true,
  273. .ht_greenfield_support = true,
  274. .led_compensation = 51,
  275. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  276. .supports_idle = true,
  277. .adv_thermal_throttle = true,
  278. };
  279. struct iwl_cfg iwl6000h_2bg_cfg = {
  280. .name = "6000 Series 2x2 BG",
  281. .fw_name_pre = IWL6000_FW_PRE,
  282. .ucode_api_max = IWL6000_UCODE_API_MAX,
  283. .ucode_api_min = IWL6000_UCODE_API_MIN,
  284. .sku = IWL_SKU_G,
  285. .ops = &iwl6000_ops,
  286. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  287. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  288. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  289. .num_of_queues = IWL50_NUM_QUEUES,
  290. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  291. .mod_params = &iwl50_mod_params,
  292. .valid_tx_ant = ANT_AB,
  293. .valid_rx_ant = ANT_AB,
  294. .pll_cfg_val = 0,
  295. .set_l0s = false,
  296. .use_bsm = false,
  297. .pa_type = IWL_PA_HYBRID,
  298. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  299. .shadow_ram_support = true,
  300. .ht_greenfield_support = true,
  301. .led_compensation = 51,
  302. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  303. .supports_idle = true,
  304. .adv_thermal_throttle = true,
  305. };
  306. /*
  307. * "i": Internal configuration, use internal Power Amplifier
  308. */
  309. struct iwl_cfg iwl6000i_2agn_cfg = {
  310. .name = "6000 Series 2x2 AGN",
  311. .fw_name_pre = IWL6000_FW_PRE,
  312. .ucode_api_max = IWL6000_UCODE_API_MAX,
  313. .ucode_api_min = IWL6000_UCODE_API_MIN,
  314. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  315. .ops = &iwl6000_ops,
  316. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  317. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  318. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  319. .num_of_queues = IWL50_NUM_QUEUES,
  320. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  321. .mod_params = &iwl50_mod_params,
  322. .valid_tx_ant = ANT_BC,
  323. .valid_rx_ant = ANT_BC,
  324. .pll_cfg_val = 0,
  325. .set_l0s = false,
  326. .use_bsm = false,
  327. .pa_type = IWL_PA_INTERNAL,
  328. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  329. .shadow_ram_support = true,
  330. .ht_greenfield_support = true,
  331. .led_compensation = 51,
  332. .use_rts_for_ht = true, /* use rts/cts protection */
  333. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  334. .supports_idle = true,
  335. .adv_thermal_throttle = true,
  336. };
  337. struct iwl_cfg iwl6000i_2abg_cfg = {
  338. .name = "6000 Series 2x2 ABG",
  339. .fw_name_pre = IWL6000_FW_PRE,
  340. .ucode_api_max = IWL6000_UCODE_API_MAX,
  341. .ucode_api_min = IWL6000_UCODE_API_MIN,
  342. .sku = IWL_SKU_A|IWL_SKU_G,
  343. .ops = &iwl6000_ops,
  344. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  345. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  346. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  347. .num_of_queues = IWL50_NUM_QUEUES,
  348. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  349. .mod_params = &iwl50_mod_params,
  350. .valid_tx_ant = ANT_BC,
  351. .valid_rx_ant = ANT_BC,
  352. .pll_cfg_val = 0,
  353. .set_l0s = false,
  354. .use_bsm = false,
  355. .pa_type = IWL_PA_INTERNAL,
  356. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  357. .shadow_ram_support = true,
  358. .ht_greenfield_support = true,
  359. .led_compensation = 51,
  360. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  361. .supports_idle = true,
  362. .adv_thermal_throttle = true,
  363. };
  364. struct iwl_cfg iwl6000i_2bg_cfg = {
  365. .name = "6000 Series 2x2 BG",
  366. .fw_name_pre = IWL6000_FW_PRE,
  367. .ucode_api_max = IWL6000_UCODE_API_MAX,
  368. .ucode_api_min = IWL6000_UCODE_API_MIN,
  369. .sku = IWL_SKU_G,
  370. .ops = &iwl6000_ops,
  371. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  372. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  373. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  374. .num_of_queues = IWL50_NUM_QUEUES,
  375. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  376. .mod_params = &iwl50_mod_params,
  377. .valid_tx_ant = ANT_BC,
  378. .valid_rx_ant = ANT_BC,
  379. .pll_cfg_val = 0,
  380. .set_l0s = false,
  381. .use_bsm = false,
  382. .pa_type = IWL_PA_INTERNAL,
  383. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  384. .shadow_ram_support = true,
  385. .ht_greenfield_support = true,
  386. .led_compensation = 51,
  387. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  388. .supports_idle = true,
  389. .adv_thermal_throttle = true,
  390. };
  391. struct iwl_cfg iwl6050_2agn_cfg = {
  392. .name = "6050 Series 2x2 AGN",
  393. .fw_name_pre = IWL6050_FW_PRE,
  394. .ucode_api_max = IWL6050_UCODE_API_MAX,
  395. .ucode_api_min = IWL6050_UCODE_API_MIN,
  396. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  397. .ops = &iwl6050_ops,
  398. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  399. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  400. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  401. .num_of_queues = IWL50_NUM_QUEUES,
  402. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  403. .mod_params = &iwl50_mod_params,
  404. .valid_tx_ant = ANT_AB,
  405. .valid_rx_ant = ANT_AB,
  406. .pll_cfg_val = 0,
  407. .set_l0s = false,
  408. .use_bsm = false,
  409. .pa_type = IWL_PA_SYSTEM,
  410. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  411. .shadow_ram_support = true,
  412. .ht_greenfield_support = true,
  413. .led_compensation = 51,
  414. .use_rts_for_ht = true, /* use rts/cts protection */
  415. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  416. .supports_idle = true,
  417. .adv_thermal_throttle = true,
  418. };
  419. struct iwl_cfg iwl6050_2abg_cfg = {
  420. .name = "6050 Series 2x2 ABG",
  421. .fw_name_pre = IWL6050_FW_PRE,
  422. .ucode_api_max = IWL6050_UCODE_API_MAX,
  423. .ucode_api_min = IWL6050_UCODE_API_MIN,
  424. .sku = IWL_SKU_A|IWL_SKU_G,
  425. .ops = &iwl6050_ops,
  426. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  427. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  428. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  429. .num_of_queues = IWL50_NUM_QUEUES,
  430. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  431. .mod_params = &iwl50_mod_params,
  432. .valid_tx_ant = ANT_AB,
  433. .valid_rx_ant = ANT_AB,
  434. .pll_cfg_val = 0,
  435. .set_l0s = false,
  436. .use_bsm = false,
  437. .pa_type = IWL_PA_SYSTEM,
  438. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  439. .shadow_ram_support = true,
  440. .ht_greenfield_support = true,
  441. .led_compensation = 51,
  442. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  443. .supports_idle = true,
  444. .adv_thermal_throttle = true,
  445. };
  446. struct iwl_cfg iwl6000_3agn_cfg = {
  447. .name = "6000 Series 3x3 AGN",
  448. .fw_name_pre = IWL6000_FW_PRE,
  449. .ucode_api_max = IWL6000_UCODE_API_MAX,
  450. .ucode_api_min = IWL6000_UCODE_API_MIN,
  451. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  452. .ops = &iwl6000_ops,
  453. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  454. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  455. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  456. .num_of_queues = IWL50_NUM_QUEUES,
  457. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  458. .mod_params = &iwl50_mod_params,
  459. .valid_tx_ant = ANT_ABC,
  460. .valid_rx_ant = ANT_ABC,
  461. .pll_cfg_val = 0,
  462. .set_l0s = false,
  463. .use_bsm = false,
  464. .pa_type = IWL_PA_SYSTEM,
  465. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  466. .shadow_ram_support = true,
  467. .ht_greenfield_support = true,
  468. .led_compensation = 51,
  469. .use_rts_for_ht = true, /* use rts/cts protection */
  470. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  471. .supports_idle = true,
  472. .adv_thermal_throttle = true,
  473. };
  474. struct iwl_cfg iwl6050_3agn_cfg = {
  475. .name = "6050 Series 3x3 AGN",
  476. .fw_name_pre = IWL6050_FW_PRE,
  477. .ucode_api_max = IWL6050_UCODE_API_MAX,
  478. .ucode_api_min = IWL6050_UCODE_API_MIN,
  479. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  480. .ops = &iwl6050_ops,
  481. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  482. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  483. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  484. .num_of_queues = IWL50_NUM_QUEUES,
  485. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  486. .mod_params = &iwl50_mod_params,
  487. .valid_tx_ant = ANT_ABC,
  488. .valid_rx_ant = ANT_ABC,
  489. .pll_cfg_val = 0,
  490. .set_l0s = false,
  491. .use_bsm = false,
  492. .pa_type = IWL_PA_SYSTEM,
  493. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  494. .shadow_ram_support = true,
  495. .ht_greenfield_support = true,
  496. .led_compensation = 51,
  497. .use_rts_for_ht = true, /* use rts/cts protection */
  498. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  499. .supports_idle = true,
  500. .adv_thermal_throttle = true,
  501. };
  502. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  503. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));