iwl-6000.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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. };
  110. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  111. {
  112. if ((priv->cfg->mod_params->num_of_queues > IWL50_NUM_QUEUES) ||
  113. (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) {
  114. IWL_ERR(priv,
  115. "invalid queues_num, should be between %d and %d\n",
  116. IWL_MIN_NUM_QUEUES, IWL50_NUM_QUEUES);
  117. return -EINVAL;
  118. }
  119. priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues;
  120. priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
  121. priv->hw_params.scd_bc_tbls_size =
  122. IWL50_NUM_QUEUES * sizeof(struct iwl5000_scd_bc_tbl);
  123. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  124. priv->hw_params.max_stations = IWL5000_STATION_COUNT;
  125. priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
  126. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  127. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  128. priv->hw_params.max_bsm_size = 0;
  129. priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  130. BIT(IEEE80211_BAND_5GHZ);
  131. priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
  132. priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  133. priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
  134. priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
  135. priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
  136. if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
  137. priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
  138. /* Set initial sensitivity parameters */
  139. /* Set initial calibration set */
  140. priv->hw_params.sens = &iwl6000_sensitivity;
  141. priv->hw_params.calib_init_cfg =
  142. BIT(IWL_CALIB_XTAL) |
  143. BIT(IWL_CALIB_LO) |
  144. BIT(IWL_CALIB_TX_IQ) |
  145. BIT(IWL_CALIB_TX_IQ_PERD) |
  146. BIT(IWL_CALIB_BASE_BAND);
  147. return 0;
  148. }
  149. static struct iwl_lib_ops iwl6000_lib = {
  150. .set_hw_params = iwl6000_hw_set_hw_params,
  151. .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
  152. .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
  153. .txq_set_sched = iwl5000_txq_set_sched,
  154. .txq_agg_enable = iwl5000_txq_agg_enable,
  155. .txq_agg_disable = iwl5000_txq_agg_disable,
  156. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  157. .txq_free_tfd = iwl_hw_txq_free_tfd,
  158. .txq_init = iwl_hw_tx_queue_init,
  159. .rx_handler_setup = iwl5000_rx_handler_setup,
  160. .setup_deferred_work = iwl5000_setup_deferred_work,
  161. .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
  162. .load_ucode = iwl5000_load_ucode,
  163. .dump_nic_event_log = iwl_dump_nic_event_log,
  164. .dump_nic_error_log = iwl_dump_nic_error_log,
  165. .init_alive_start = iwl5000_init_alive_start,
  166. .alive_notify = iwl5000_alive_notify,
  167. .send_tx_power = iwl5000_send_tx_power,
  168. .update_chain_flags = iwl_update_chain_flags,
  169. .apm_ops = {
  170. .init = iwl5000_apm_init,
  171. .reset = iwl5000_apm_reset,
  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. /*
  209. * "h": Hybrid configuration, use both internal and external Power Amplifier
  210. */
  211. struct iwl_cfg iwl6000h_2agn_cfg = {
  212. .name = "6000 Series 2x2 AGN",
  213. .fw_name_pre = IWL6000_FW_PRE,
  214. .ucode_api_max = IWL6000_UCODE_API_MAX,
  215. .ucode_api_min = IWL6000_UCODE_API_MIN,
  216. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  217. .ops = &iwl6000_ops,
  218. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  219. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  220. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  221. .mod_params = &iwl50_mod_params,
  222. .valid_tx_ant = ANT_AB,
  223. .valid_rx_ant = ANT_AB,
  224. .need_pll_cfg = false,
  225. .pa_type = IWL_PA_HYBRID,
  226. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  227. .shadow_ram_support = true,
  228. .ht_greenfield_support = true,
  229. .led_compensation = 51,
  230. .use_rts_for_ht = true, /* use rts/cts protection */
  231. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  232. .supports_idle = true,
  233. };
  234. struct iwl_cfg iwl6000h_2abg_cfg = {
  235. .name = "6000 Series 2x2 ABG",
  236. .fw_name_pre = IWL6000_FW_PRE,
  237. .ucode_api_max = IWL6000_UCODE_API_MAX,
  238. .ucode_api_min = IWL6000_UCODE_API_MIN,
  239. .sku = IWL_SKU_A|IWL_SKU_G,
  240. .ops = &iwl6000_ops,
  241. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  242. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  243. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  244. .mod_params = &iwl50_mod_params,
  245. .valid_tx_ant = ANT_AB,
  246. .valid_rx_ant = ANT_AB,
  247. .need_pll_cfg = false,
  248. .pa_type = IWL_PA_HYBRID,
  249. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  250. .shadow_ram_support = true,
  251. .ht_greenfield_support = true,
  252. .led_compensation = 51,
  253. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  254. .supports_idle = true,
  255. };
  256. struct iwl_cfg iwl6000h_2bg_cfg = {
  257. .name = "6000 Series 2x2 BG",
  258. .fw_name_pre = IWL6000_FW_PRE,
  259. .ucode_api_max = IWL6000_UCODE_API_MAX,
  260. .ucode_api_min = IWL6000_UCODE_API_MIN,
  261. .sku = IWL_SKU_G,
  262. .ops = &iwl6000_ops,
  263. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  264. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  265. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  266. .mod_params = &iwl50_mod_params,
  267. .valid_tx_ant = ANT_AB,
  268. .valid_rx_ant = ANT_AB,
  269. .need_pll_cfg = 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. };
  278. /*
  279. * "i": Internal configuration, use internal Power Amplifier
  280. */
  281. struct iwl_cfg iwl6000i_2agn_cfg = {
  282. .name = "6000 Series 2x2 AGN",
  283. .fw_name_pre = IWL6000_FW_PRE,
  284. .ucode_api_max = IWL6000_UCODE_API_MAX,
  285. .ucode_api_min = IWL6000_UCODE_API_MIN,
  286. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  287. .ops = &iwl6000_ops,
  288. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  289. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  290. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  291. .mod_params = &iwl50_mod_params,
  292. .valid_tx_ant = ANT_BC,
  293. .valid_rx_ant = ANT_BC,
  294. .need_pll_cfg = false,
  295. .pa_type = IWL_PA_INTERNAL,
  296. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  297. .shadow_ram_support = true,
  298. .ht_greenfield_support = true,
  299. .led_compensation = 51,
  300. .use_rts_for_ht = true, /* use rts/cts protection */
  301. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  302. .supports_idle = true,
  303. };
  304. struct iwl_cfg iwl6000i_2abg_cfg = {
  305. .name = "6000 Series 2x2 ABG",
  306. .fw_name_pre = IWL6000_FW_PRE,
  307. .ucode_api_max = IWL6000_UCODE_API_MAX,
  308. .ucode_api_min = IWL6000_UCODE_API_MIN,
  309. .sku = IWL_SKU_A|IWL_SKU_G,
  310. .ops = &iwl6000_ops,
  311. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  312. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  313. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  314. .mod_params = &iwl50_mod_params,
  315. .valid_tx_ant = ANT_BC,
  316. .valid_rx_ant = ANT_BC,
  317. .need_pll_cfg = false,
  318. .pa_type = IWL_PA_INTERNAL,
  319. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  320. .shadow_ram_support = true,
  321. .ht_greenfield_support = true,
  322. .led_compensation = 51,
  323. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  324. .supports_idle = true,
  325. };
  326. struct iwl_cfg iwl6000i_2bg_cfg = {
  327. .name = "6000 Series 2x2 BG",
  328. .fw_name_pre = IWL6000_FW_PRE,
  329. .ucode_api_max = IWL6000_UCODE_API_MAX,
  330. .ucode_api_min = IWL6000_UCODE_API_MIN,
  331. .sku = IWL_SKU_G,
  332. .ops = &iwl6000_ops,
  333. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  334. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  335. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  336. .mod_params = &iwl50_mod_params,
  337. .valid_tx_ant = ANT_BC,
  338. .valid_rx_ant = ANT_BC,
  339. .need_pll_cfg = false,
  340. .pa_type = IWL_PA_INTERNAL,
  341. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  342. .shadow_ram_support = true,
  343. .ht_greenfield_support = true,
  344. .led_compensation = 51,
  345. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  346. .supports_idle = true,
  347. };
  348. struct iwl_cfg iwl6050_2agn_cfg = {
  349. .name = "6050 Series 2x2 AGN",
  350. .fw_name_pre = IWL6050_FW_PRE,
  351. .ucode_api_max = IWL6050_UCODE_API_MAX,
  352. .ucode_api_min = IWL6050_UCODE_API_MIN,
  353. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  354. .ops = &iwl6000_ops,
  355. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  356. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  357. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  358. .mod_params = &iwl50_mod_params,
  359. .valid_tx_ant = ANT_AB,
  360. .valid_rx_ant = ANT_AB,
  361. .need_pll_cfg = false,
  362. .pa_type = IWL_PA_SYSTEM,
  363. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  364. .shadow_ram_support = true,
  365. .ht_greenfield_support = true,
  366. .led_compensation = 51,
  367. .use_rts_for_ht = true, /* use rts/cts protection */
  368. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  369. .supports_idle = true,
  370. };
  371. struct iwl_cfg iwl6050_2abg_cfg = {
  372. .name = "6050 Series 2x2 ABG",
  373. .fw_name_pre = IWL6050_FW_PRE,
  374. .ucode_api_max = IWL6050_UCODE_API_MAX,
  375. .ucode_api_min = IWL6050_UCODE_API_MIN,
  376. .sku = IWL_SKU_A|IWL_SKU_G,
  377. .ops = &iwl6000_ops,
  378. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  379. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  380. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  381. .mod_params = &iwl50_mod_params,
  382. .valid_tx_ant = ANT_AB,
  383. .valid_rx_ant = ANT_AB,
  384. .need_pll_cfg = false,
  385. .pa_type = IWL_PA_SYSTEM,
  386. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  387. .shadow_ram_support = true,
  388. .ht_greenfield_support = true,
  389. .led_compensation = 51,
  390. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  391. .supports_idle = true,
  392. };
  393. struct iwl_cfg iwl6000_3agn_cfg = {
  394. .name = "6000 Series 3x3 AGN",
  395. .fw_name_pre = IWL6000_FW_PRE,
  396. .ucode_api_max = IWL6000_UCODE_API_MAX,
  397. .ucode_api_min = IWL6000_UCODE_API_MIN,
  398. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  399. .ops = &iwl6000_ops,
  400. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  401. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  402. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  403. .mod_params = &iwl50_mod_params,
  404. .valid_tx_ant = ANT_ABC,
  405. .valid_rx_ant = ANT_ABC,
  406. .need_pll_cfg = false,
  407. .pa_type = IWL_PA_SYSTEM,
  408. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  409. .shadow_ram_support = true,
  410. .ht_greenfield_support = true,
  411. .led_compensation = 51,
  412. .use_rts_for_ht = true, /* use rts/cts protection */
  413. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  414. .supports_idle = true,
  415. };
  416. struct iwl_cfg iwl6050_3agn_cfg = {
  417. .name = "6050 Series 3x3 AGN",
  418. .fw_name_pre = IWL6050_FW_PRE,
  419. .ucode_api_max = IWL6050_UCODE_API_MAX,
  420. .ucode_api_min = IWL6050_UCODE_API_MIN,
  421. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  422. .ops = &iwl6000_ops,
  423. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  424. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  425. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  426. .mod_params = &iwl50_mod_params,
  427. .valid_tx_ant = ANT_ABC,
  428. .valid_rx_ant = ANT_ABC,
  429. .need_pll_cfg = false,
  430. .pa_type = IWL_PA_SYSTEM,
  431. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  432. .shadow_ram_support = true,
  433. .ht_greenfield_support = true,
  434. .led_compensation = 51,
  435. .use_rts_for_ht = true, /* use rts/cts protection */
  436. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  437. .supports_idle = true,
  438. };
  439. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  440. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));