iwl-6000.c 15 KB

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