iwl-6000.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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-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 4
  52. #define IWL6050_UCODE_API_MIN 4
  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_INTERNAL) {
  82. /* 2x2 IPA phy type */
  83. iwl_write32(priv, CSR_GP_DRIVER_REG,
  84. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
  85. }
  86. /* else do nothing, uCode configured */
  87. }
  88. static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
  89. .min_nrg_cck = 97,
  90. .max_nrg_cck = 0, /* not used, set to 0 */
  91. .auto_corr_min_ofdm = 80,
  92. .auto_corr_min_ofdm_mrc = 128,
  93. .auto_corr_min_ofdm_x1 = 105,
  94. .auto_corr_min_ofdm_mrc_x1 = 192,
  95. .auto_corr_max_ofdm = 145,
  96. .auto_corr_max_ofdm_mrc = 232,
  97. .auto_corr_max_ofdm_x1 = 145,
  98. .auto_corr_max_ofdm_mrc_x1 = 232,
  99. .auto_corr_min_cck = 125,
  100. .auto_corr_max_cck = 175,
  101. .auto_corr_min_cck_mrc = 160,
  102. .auto_corr_max_cck_mrc = 310,
  103. .nrg_th_cck = 97,
  104. .nrg_th_ofdm = 100,
  105. .barker_corr_th_min = 190,
  106. .barker_corr_th_min_mrc = 390,
  107. .nrg_th_cca = 62,
  108. };
  109. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  110. {
  111. if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
  112. priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES)
  113. priv->cfg->num_of_queues =
  114. priv->cfg->mod_params->num_of_queues;
  115. priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
  116. priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
  117. priv->hw_params.scd_bc_tbls_size =
  118. priv->cfg->num_of_queues *
  119. sizeof(struct iwl5000_scd_bc_tbl);
  120. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  121. priv->hw_params.max_stations = IWL5000_STATION_COUNT;
  122. priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
  123. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  124. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  125. priv->hw_params.max_bsm_size = 0;
  126. priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  127. BIT(IEEE80211_BAND_5GHZ);
  128. priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
  129. priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  130. priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
  131. priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
  132. priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
  133. if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
  134. priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
  135. /* Set initial sensitivity parameters */
  136. /* Set initial calibration set */
  137. priv->hw_params.sens = &iwl6000_sensitivity;
  138. switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
  139. case CSR_HW_REV_TYPE_6x50:
  140. priv->hw_params.calib_init_cfg =
  141. BIT(IWL_CALIB_XTAL) |
  142. BIT(IWL_CALIB_DC) |
  143. BIT(IWL_CALIB_LO) |
  144. BIT(IWL_CALIB_TX_IQ) |
  145. BIT(IWL_CALIB_BASE_BAND);
  146. break;
  147. default:
  148. priv->hw_params.calib_init_cfg =
  149. BIT(IWL_CALIB_XTAL) |
  150. BIT(IWL_CALIB_LO) |
  151. BIT(IWL_CALIB_TX_IQ) |
  152. BIT(IWL_CALIB_BASE_BAND);
  153. break;
  154. }
  155. return 0;
  156. }
  157. static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
  158. {
  159. struct iwl6000_channel_switch_cmd cmd;
  160. const struct iwl_channel_info *ch_info;
  161. struct iwl_host_cmd hcmd = {
  162. .id = REPLY_CHANNEL_SWITCH,
  163. .len = sizeof(cmd),
  164. .flags = CMD_SIZE_HUGE,
  165. .data = &cmd,
  166. };
  167. IWL_DEBUG_11H(priv, "channel switch from %d to %d\n",
  168. priv->active_rxon.channel, channel);
  169. cmd.band = priv->band == IEEE80211_BAND_2GHZ;
  170. cmd.channel = cpu_to_le16(channel);
  171. cmd.rxon_flags = priv->staging_rxon.flags;
  172. cmd.rxon_filter_flags = priv->staging_rxon.filter_flags;
  173. cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
  174. ch_info = iwl_get_channel_info(priv, priv->band, channel);
  175. if (ch_info)
  176. cmd.expect_beacon = is_channel_radar(ch_info);
  177. else {
  178. IWL_ERR(priv, "invalid channel switch from %u to %u\n",
  179. priv->active_rxon.channel, channel);
  180. return -EFAULT;
  181. }
  182. priv->switch_rxon.channel = cpu_to_le16(channel);
  183. priv->switch_rxon.switch_in_progress = true;
  184. return iwl_send_cmd_sync(priv, &hcmd);
  185. }
  186. static struct iwl_lib_ops iwl6000_lib = {
  187. .set_hw_params = iwl6000_hw_set_hw_params,
  188. .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
  189. .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
  190. .txq_set_sched = iwl5000_txq_set_sched,
  191. .txq_agg_enable = iwl5000_txq_agg_enable,
  192. .txq_agg_disable = iwl5000_txq_agg_disable,
  193. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  194. .txq_free_tfd = iwl_hw_txq_free_tfd,
  195. .txq_init = iwl_hw_tx_queue_init,
  196. .rx_handler_setup = iwl5000_rx_handler_setup,
  197. .setup_deferred_work = iwl5000_setup_deferred_work,
  198. .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
  199. .load_ucode = iwl5000_load_ucode,
  200. .dump_nic_event_log = iwl_dump_nic_event_log,
  201. .dump_nic_error_log = iwl_dump_nic_error_log,
  202. .dump_csr = iwl_dump_csr,
  203. .dump_fh = iwl_dump_fh,
  204. .init_alive_start = iwl5000_init_alive_start,
  205. .alive_notify = iwl5000_alive_notify,
  206. .send_tx_power = iwl5000_send_tx_power,
  207. .update_chain_flags = iwl_update_chain_flags,
  208. .set_channel_switch = iwl6000_hw_channel_switch,
  209. .apm_ops = {
  210. .init = iwl_apm_init,
  211. .stop = iwl_apm_stop,
  212. .config = iwl6000_nic_config,
  213. .set_pwr_src = iwl_set_pwr_src,
  214. },
  215. .eeprom_ops = {
  216. .regulatory_bands = {
  217. EEPROM_5000_REG_BAND_1_CHANNELS,
  218. EEPROM_5000_REG_BAND_2_CHANNELS,
  219. EEPROM_5000_REG_BAND_3_CHANNELS,
  220. EEPROM_5000_REG_BAND_4_CHANNELS,
  221. EEPROM_5000_REG_BAND_5_CHANNELS,
  222. EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
  223. EEPROM_5000_REG_BAND_52_HT40_CHANNELS
  224. },
  225. .verify_signature = iwlcore_eeprom_verify_signature,
  226. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  227. .release_semaphore = iwlcore_eeprom_release_semaphore,
  228. .calib_version = iwl5000_eeprom_calib_version,
  229. .query_addr = iwl5000_eeprom_query_addr,
  230. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  231. },
  232. .post_associate = iwl_post_associate,
  233. .isr = iwl_isr_ict,
  234. .config_ap = iwl_config_ap,
  235. .temp_ops = {
  236. .temperature = iwl5000_temperature,
  237. .set_ct_kill = iwl6000_set_ct_threshold,
  238. },
  239. .add_bcast_station = iwl_add_bcast_station,
  240. };
  241. static const struct iwl_ops iwl6000_ops = {
  242. .ucode = &iwl5000_ucode,
  243. .lib = &iwl6000_lib,
  244. .hcmd = &iwl5000_hcmd,
  245. .utils = &iwl5000_hcmd_utils,
  246. .led = &iwlagn_led_ops,
  247. };
  248. static struct iwl_hcmd_utils_ops iwl6050_hcmd_utils = {
  249. .get_hcmd_size = iwl5000_get_hcmd_size,
  250. .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
  251. .rts_tx_cmd_flag = iwl5000_rts_tx_cmd_flag,
  252. .calc_rssi = iwl5000_calc_rssi,
  253. };
  254. static const struct iwl_ops iwl6050_ops = {
  255. .ucode = &iwl5000_ucode,
  256. .lib = &iwl6000_lib,
  257. .hcmd = &iwl5000_hcmd,
  258. .utils = &iwl6050_hcmd_utils,
  259. .led = &iwlagn_led_ops,
  260. };
  261. /*
  262. * "i": Internal configuration, use internal Power Amplifier
  263. */
  264. struct iwl_cfg iwl6000i_2agn_cfg = {
  265. .name = "6000 Series 2x2 AGN",
  266. .fw_name_pre = IWL6000_FW_PRE,
  267. .ucode_api_max = IWL6000_UCODE_API_MAX,
  268. .ucode_api_min = IWL6000_UCODE_API_MIN,
  269. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  270. .ops = &iwl6000_ops,
  271. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  272. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  273. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  274. .num_of_queues = IWL50_NUM_QUEUES,
  275. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  276. .mod_params = &iwl50_mod_params,
  277. .valid_tx_ant = ANT_BC,
  278. .valid_rx_ant = ANT_BC,
  279. .pll_cfg_val = 0,
  280. .set_l0s = true,
  281. .use_bsm = false,
  282. .pa_type = IWL_PA_INTERNAL,
  283. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  284. .shadow_ram_support = true,
  285. .ht_greenfield_support = true,
  286. .led_compensation = 51,
  287. .use_rts_for_ht = true, /* use rts/cts protection */
  288. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  289. .supports_idle = true,
  290. .adv_thermal_throttle = true,
  291. .support_ct_kill_exit = true,
  292. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  293. };
  294. struct iwl_cfg iwl6000i_2abg_cfg = {
  295. .name = "6000 Series 2x2 ABG",
  296. .fw_name_pre = IWL6000_FW_PRE,
  297. .ucode_api_max = IWL6000_UCODE_API_MAX,
  298. .ucode_api_min = IWL6000_UCODE_API_MIN,
  299. .sku = IWL_SKU_A|IWL_SKU_G,
  300. .ops = &iwl6000_ops,
  301. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  302. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  303. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  304. .num_of_queues = IWL50_NUM_QUEUES,
  305. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  306. .mod_params = &iwl50_mod_params,
  307. .valid_tx_ant = ANT_BC,
  308. .valid_rx_ant = ANT_BC,
  309. .pll_cfg_val = 0,
  310. .set_l0s = true,
  311. .use_bsm = 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. .supports_idle = true,
  319. .adv_thermal_throttle = true,
  320. .support_ct_kill_exit = true,
  321. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  322. };
  323. struct iwl_cfg iwl6000i_2bg_cfg = {
  324. .name = "6000 Series 2x2 BG",
  325. .fw_name_pre = IWL6000_FW_PRE,
  326. .ucode_api_max = IWL6000_UCODE_API_MAX,
  327. .ucode_api_min = IWL6000_UCODE_API_MIN,
  328. .sku = IWL_SKU_G,
  329. .ops = &iwl6000_ops,
  330. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  331. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  332. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  333. .num_of_queues = IWL50_NUM_QUEUES,
  334. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  335. .mod_params = &iwl50_mod_params,
  336. .valid_tx_ant = ANT_BC,
  337. .valid_rx_ant = ANT_BC,
  338. .pll_cfg_val = 0,
  339. .set_l0s = true,
  340. .use_bsm = false,
  341. .pa_type = IWL_PA_INTERNAL,
  342. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  343. .shadow_ram_support = true,
  344. .ht_greenfield_support = true,
  345. .led_compensation = 51,
  346. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  347. .supports_idle = true,
  348. .adv_thermal_throttle = true,
  349. .support_ct_kill_exit = true,
  350. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  351. };
  352. struct iwl_cfg iwl6050_2agn_cfg = {
  353. .name = "6050 Series 2x2 AGN",
  354. .fw_name_pre = IWL6050_FW_PRE,
  355. .ucode_api_max = IWL6050_UCODE_API_MAX,
  356. .ucode_api_min = IWL6050_UCODE_API_MIN,
  357. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  358. .ops = &iwl6050_ops,
  359. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  360. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  361. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  362. .num_of_queues = IWL50_NUM_QUEUES,
  363. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  364. .mod_params = &iwl50_mod_params,
  365. .valid_tx_ant = ANT_AB,
  366. .valid_rx_ant = ANT_AB,
  367. .pll_cfg_val = 0,
  368. .set_l0s = true,
  369. .use_bsm = false,
  370. .pa_type = IWL_PA_SYSTEM,
  371. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  372. .shadow_ram_support = true,
  373. .ht_greenfield_support = true,
  374. .led_compensation = 51,
  375. .use_rts_for_ht = true, /* use rts/cts protection */
  376. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  377. .supports_idle = true,
  378. .adv_thermal_throttle = true,
  379. .support_ct_kill_exit = true,
  380. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  381. };
  382. struct iwl_cfg iwl6050_2abg_cfg = {
  383. .name = "6050 Series 2x2 ABG",
  384. .fw_name_pre = IWL6050_FW_PRE,
  385. .ucode_api_max = IWL6050_UCODE_API_MAX,
  386. .ucode_api_min = IWL6050_UCODE_API_MIN,
  387. .sku = IWL_SKU_A|IWL_SKU_G,
  388. .ops = &iwl6050_ops,
  389. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  390. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  391. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  392. .num_of_queues = IWL50_NUM_QUEUES,
  393. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  394. .mod_params = &iwl50_mod_params,
  395. .valid_tx_ant = ANT_AB,
  396. .valid_rx_ant = ANT_AB,
  397. .pll_cfg_val = 0,
  398. .set_l0s = true,
  399. .use_bsm = false,
  400. .pa_type = IWL_PA_SYSTEM,
  401. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  402. .shadow_ram_support = true,
  403. .ht_greenfield_support = true,
  404. .led_compensation = 51,
  405. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  406. .supports_idle = true,
  407. .adv_thermal_throttle = true,
  408. .support_ct_kill_exit = true,
  409. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  410. };
  411. struct iwl_cfg iwl6000_3agn_cfg = {
  412. .name = "6000 Series 3x3 AGN",
  413. .fw_name_pre = IWL6000_FW_PRE,
  414. .ucode_api_max = IWL6000_UCODE_API_MAX,
  415. .ucode_api_min = IWL6000_UCODE_API_MIN,
  416. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  417. .ops = &iwl6000_ops,
  418. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  419. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  420. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  421. .num_of_queues = IWL50_NUM_QUEUES,
  422. .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
  423. .mod_params = &iwl50_mod_params,
  424. .valid_tx_ant = ANT_ABC,
  425. .valid_rx_ant = ANT_ABC,
  426. .pll_cfg_val = 0,
  427. .set_l0s = true,
  428. .use_bsm = false,
  429. .pa_type = IWL_PA_SYSTEM,
  430. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  431. .shadow_ram_support = true,
  432. .ht_greenfield_support = true,
  433. .led_compensation = 51,
  434. .use_rts_for_ht = true, /* use rts/cts protection */
  435. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  436. .supports_idle = true,
  437. .adv_thermal_throttle = true,
  438. .support_ct_kill_exit = true,
  439. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  440. };
  441. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  442. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));