iwl-6000.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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 = iwl5000_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. /*
  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. .num_of_queues = IWL50_NUM_QUEUES,
  222. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  223. .mod_params = &iwl50_mod_params,
  224. .valid_tx_ant = ANT_AB,
  225. .valid_rx_ant = ANT_AB,
  226. .need_pll_cfg = false,
  227. .pa_type = IWL_PA_HYBRID,
  228. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  229. .shadow_ram_support = true,
  230. .ht_greenfield_support = true,
  231. .led_compensation = 51,
  232. .use_rts_for_ht = true, /* use rts/cts protection */
  233. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  234. .supports_idle = true,
  235. };
  236. struct iwl_cfg iwl6000h_2abg_cfg = {
  237. .name = "6000 Series 2x2 ABG",
  238. .fw_name_pre = IWL6000_FW_PRE,
  239. .ucode_api_max = IWL6000_UCODE_API_MAX,
  240. .ucode_api_min = IWL6000_UCODE_API_MIN,
  241. .sku = IWL_SKU_A|IWL_SKU_G,
  242. .ops = &iwl6000_ops,
  243. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  244. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  245. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  246. .num_of_queues = IWL50_NUM_QUEUES,
  247. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  248. .mod_params = &iwl50_mod_params,
  249. .valid_tx_ant = ANT_AB,
  250. .valid_rx_ant = ANT_AB,
  251. .need_pll_cfg = false,
  252. .pa_type = IWL_PA_HYBRID,
  253. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  254. .shadow_ram_support = true,
  255. .ht_greenfield_support = true,
  256. .led_compensation = 51,
  257. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  258. .supports_idle = true,
  259. };
  260. struct iwl_cfg iwl6000h_2bg_cfg = {
  261. .name = "6000 Series 2x2 BG",
  262. .fw_name_pre = IWL6000_FW_PRE,
  263. .ucode_api_max = IWL6000_UCODE_API_MAX,
  264. .ucode_api_min = IWL6000_UCODE_API_MIN,
  265. .sku = IWL_SKU_G,
  266. .ops = &iwl6000_ops,
  267. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  268. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  269. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  270. .num_of_queues = IWL50_NUM_QUEUES,
  271. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  272. .mod_params = &iwl50_mod_params,
  273. .valid_tx_ant = ANT_AB,
  274. .valid_rx_ant = ANT_AB,
  275. .need_pll_cfg = false,
  276. .pa_type = IWL_PA_HYBRID,
  277. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  278. .shadow_ram_support = true,
  279. .ht_greenfield_support = true,
  280. .led_compensation = 51,
  281. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  282. .supports_idle = true,
  283. };
  284. /*
  285. * "i": Internal configuration, use internal Power Amplifier
  286. */
  287. struct iwl_cfg iwl6000i_2agn_cfg = {
  288. .name = "6000 Series 2x2 AGN",
  289. .fw_name_pre = IWL6000_FW_PRE,
  290. .ucode_api_max = IWL6000_UCODE_API_MAX,
  291. .ucode_api_min = IWL6000_UCODE_API_MIN,
  292. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  293. .ops = &iwl6000_ops,
  294. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  295. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  296. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  297. .num_of_queues = IWL50_NUM_QUEUES,
  298. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  299. .mod_params = &iwl50_mod_params,
  300. .valid_tx_ant = ANT_BC,
  301. .valid_rx_ant = ANT_BC,
  302. .need_pll_cfg = false,
  303. .pa_type = IWL_PA_INTERNAL,
  304. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  305. .shadow_ram_support = true,
  306. .ht_greenfield_support = true,
  307. .led_compensation = 51,
  308. .use_rts_for_ht = true, /* use rts/cts protection */
  309. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  310. .supports_idle = true,
  311. };
  312. struct iwl_cfg iwl6000i_2abg_cfg = {
  313. .name = "6000 Series 2x2 ABG",
  314. .fw_name_pre = IWL6000_FW_PRE,
  315. .ucode_api_max = IWL6000_UCODE_API_MAX,
  316. .ucode_api_min = IWL6000_UCODE_API_MIN,
  317. .sku = IWL_SKU_A|IWL_SKU_G,
  318. .ops = &iwl6000_ops,
  319. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  320. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  321. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  322. .num_of_queues = IWL50_NUM_QUEUES,
  323. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  324. .mod_params = &iwl50_mod_params,
  325. .valid_tx_ant = ANT_BC,
  326. .valid_rx_ant = ANT_BC,
  327. .need_pll_cfg = false,
  328. .pa_type = IWL_PA_INTERNAL,
  329. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  330. .shadow_ram_support = true,
  331. .ht_greenfield_support = true,
  332. .led_compensation = 51,
  333. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  334. .supports_idle = true,
  335. };
  336. struct iwl_cfg iwl6000i_2bg_cfg = {
  337. .name = "6000 Series 2x2 BG",
  338. .fw_name_pre = IWL6000_FW_PRE,
  339. .ucode_api_max = IWL6000_UCODE_API_MAX,
  340. .ucode_api_min = IWL6000_UCODE_API_MIN,
  341. .sku = IWL_SKU_G,
  342. .ops = &iwl6000_ops,
  343. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  344. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  345. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  346. .num_of_queues = IWL50_NUM_QUEUES,
  347. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  348. .mod_params = &iwl50_mod_params,
  349. .valid_tx_ant = ANT_BC,
  350. .valid_rx_ant = ANT_BC,
  351. .need_pll_cfg = false,
  352. .pa_type = IWL_PA_INTERNAL,
  353. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  354. .shadow_ram_support = true,
  355. .ht_greenfield_support = true,
  356. .led_compensation = 51,
  357. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  358. .supports_idle = true,
  359. };
  360. struct iwl_cfg iwl6050_2agn_cfg = {
  361. .name = "6050 Series 2x2 AGN",
  362. .fw_name_pre = IWL6050_FW_PRE,
  363. .ucode_api_max = IWL6050_UCODE_API_MAX,
  364. .ucode_api_min = IWL6050_UCODE_API_MIN,
  365. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  366. .ops = &iwl6000_ops,
  367. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  368. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  369. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  370. .num_of_queues = IWL50_NUM_QUEUES,
  371. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  372. .mod_params = &iwl50_mod_params,
  373. .valid_tx_ant = ANT_AB,
  374. .valid_rx_ant = ANT_AB,
  375. .need_pll_cfg = false,
  376. .pa_type = IWL_PA_SYSTEM,
  377. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  378. .shadow_ram_support = true,
  379. .ht_greenfield_support = true,
  380. .led_compensation = 51,
  381. .use_rts_for_ht = true, /* use rts/cts protection */
  382. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  383. .supports_idle = true,
  384. };
  385. struct iwl_cfg iwl6050_2abg_cfg = {
  386. .name = "6050 Series 2x2 ABG",
  387. .fw_name_pre = IWL6050_FW_PRE,
  388. .ucode_api_max = IWL6050_UCODE_API_MAX,
  389. .ucode_api_min = IWL6050_UCODE_API_MIN,
  390. .sku = IWL_SKU_A|IWL_SKU_G,
  391. .ops = &iwl6000_ops,
  392. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  393. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  394. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  395. .num_of_queues = IWL50_NUM_QUEUES,
  396. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  397. .mod_params = &iwl50_mod_params,
  398. .valid_tx_ant = ANT_AB,
  399. .valid_rx_ant = ANT_AB,
  400. .need_pll_cfg = false,
  401. .pa_type = IWL_PA_SYSTEM,
  402. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  403. .shadow_ram_support = true,
  404. .ht_greenfield_support = true,
  405. .led_compensation = 51,
  406. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  407. .supports_idle = true,
  408. };
  409. struct iwl_cfg iwl6000_3agn_cfg = {
  410. .name = "6000 Series 3x3 AGN",
  411. .fw_name_pre = IWL6000_FW_PRE,
  412. .ucode_api_max = IWL6000_UCODE_API_MAX,
  413. .ucode_api_min = IWL6000_UCODE_API_MIN,
  414. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  415. .ops = &iwl6000_ops,
  416. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  417. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  418. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  419. .num_of_queues = IWL50_NUM_QUEUES,
  420. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  421. .mod_params = &iwl50_mod_params,
  422. .valid_tx_ant = ANT_ABC,
  423. .valid_rx_ant = ANT_ABC,
  424. .need_pll_cfg = false,
  425. .pa_type = IWL_PA_SYSTEM,
  426. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  427. .shadow_ram_support = true,
  428. .ht_greenfield_support = true,
  429. .led_compensation = 51,
  430. .use_rts_for_ht = true, /* use rts/cts protection */
  431. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  432. .supports_idle = true,
  433. };
  434. struct iwl_cfg iwl6050_3agn_cfg = {
  435. .name = "6050 Series 3x3 AGN",
  436. .fw_name_pre = IWL6050_FW_PRE,
  437. .ucode_api_max = IWL6050_UCODE_API_MAX,
  438. .ucode_api_min = IWL6050_UCODE_API_MIN,
  439. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  440. .ops = &iwl6000_ops,
  441. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  442. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  443. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  444. .num_of_queues = IWL50_NUM_QUEUES,
  445. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  446. .mod_params = &iwl50_mod_params,
  447. .valid_tx_ant = ANT_ABC,
  448. .valid_rx_ant = ANT_ABC,
  449. .need_pll_cfg = false,
  450. .pa_type = IWL_PA_SYSTEM,
  451. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  452. .shadow_ram_support = true,
  453. .ht_greenfield_support = true,
  454. .led_compensation = 51,
  455. .use_rts_for_ht = true, /* use rts/cts protection */
  456. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  457. .supports_idle = true,
  458. };
  459. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  460. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));