iwl-5000.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007-2008 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 Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  23. *
  24. *****************************************************************************/
  25. #include <linux/kernel.h>
  26. #include <linux/module.h>
  27. #include <linux/version.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-4965.h"
  40. #include "iwl-core.h"
  41. #include "iwl-io.h"
  42. #include "iwl-helpers.h"
  43. #include "iwl-5000-hw.h"
  44. #define IWL5000_UCODE_API "-1"
  45. static int iwl5000_apm_init(struct iwl_priv *priv)
  46. {
  47. int ret = 0;
  48. iwl_set_bit(priv, CSR_GIO_CHICKEN_BITS,
  49. CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER);
  50. iwl_set_bit(priv, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL);
  51. /* set "initialization complete" bit to move adapter
  52. * D0U* --> D0A* state */
  53. iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
  54. /* wait for clock stabilization */
  55. ret = iwl_poll_bit(priv, CSR_GP_CNTRL,
  56. CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY,
  57. CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000);
  58. if (ret < 0) {
  59. IWL_DEBUG_INFO("Failed to init the card\n");
  60. return ret;
  61. }
  62. ret = iwl_grab_nic_access(priv);
  63. if (ret)
  64. return ret;
  65. /* enable DMA */
  66. iwl_write_prph(priv, APMG_CLK_EN_REG,
  67. APMG_CLK_VAL_DMA_CLK_RQT);
  68. udelay(20);
  69. iwl_set_bits_prph(priv, APMG_PCIDEV_STT_REG,
  70. APMG_PCIDEV_STT_VAL_L1_ACT_DIS);
  71. iwl_release_nic_access(priv);
  72. return ret;
  73. }
  74. static void iwl5000_nic_init(struct iwl_priv *priv)
  75. {
  76. unsigned long flags;
  77. u16 radio_cfg;
  78. u8 val_link;
  79. spin_lock_irqsave(&priv->lock, flags);
  80. pci_read_config_byte(priv->pci_dev, PCI_LINK_CTRL, &val_link);
  81. /* disable L1 entry -- workaround for pre-B1 */
  82. pci_write_config_byte(priv->pci_dev, PCI_LINK_CTRL, val_link & ~0x02);
  83. radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
  84. /* write radio config values to register */
  85. if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) < EEPROM_5000_RF_CFG_TYPE_MAX)
  86. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  87. EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
  88. EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
  89. EEPROM_RF_CFG_DASH_MSK(radio_cfg));
  90. /* set CSR_HW_CONFIG_REG for uCode use */
  91. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  92. CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
  93. CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
  94. spin_unlock_irqrestore(&priv->lock, flags);
  95. }
  96. /*
  97. * EEPROM
  98. */
  99. static u32 eeprom_indirect_address(const struct iwl_priv *priv, u32 address)
  100. {
  101. u16 offset = 0;
  102. if ((address & INDIRECT_ADDRESS) == 0)
  103. return address;
  104. switch (address & INDIRECT_TYPE_MSK) {
  105. case INDIRECT_HOST:
  106. offset = iwl_eeprom_query16(priv, EEPROM_5000_LINK_HOST);
  107. break;
  108. case INDIRECT_GENERAL:
  109. offset = iwl_eeprom_query16(priv, EEPROM_5000_LINK_GENERAL);
  110. break;
  111. case INDIRECT_REGULATORY:
  112. offset = iwl_eeprom_query16(priv, EEPROM_5000_LINK_REGULATORY);
  113. break;
  114. case INDIRECT_CALIBRATION:
  115. offset = iwl_eeprom_query16(priv, EEPROM_5000_LINK_CALIBRATION);
  116. break;
  117. case INDIRECT_PROCESS_ADJST:
  118. offset = iwl_eeprom_query16(priv, EEPROM_5000_LINK_PROCESS_ADJST);
  119. break;
  120. case INDIRECT_OTHERS:
  121. offset = iwl_eeprom_query16(priv, EEPROM_5000_LINK_OTHERS);
  122. break;
  123. default:
  124. IWL_ERROR("illegal indirect type: 0x%X\n",
  125. address & INDIRECT_TYPE_MSK);
  126. break;
  127. }
  128. /* translate the offset from words to byte */
  129. return (address & ADDRESS_MSK) + (offset << 1);
  130. }
  131. static int iwl5000_eeprom_check_version(struct iwl_priv *priv)
  132. {
  133. u16 eeprom_ver;
  134. struct iwl_eeprom_calib_hdr {
  135. u8 version;
  136. u8 pa_type;
  137. u16 voltage;
  138. } *hdr;
  139. eeprom_ver = iwl_eeprom_query16(priv, EEPROM_VERSION);
  140. hdr = (struct iwl_eeprom_calib_hdr *)iwl_eeprom_query_addr(priv,
  141. EEPROM_5000_CALIB_ALL);
  142. if (eeprom_ver < EEPROM_5000_EEPROM_VERSION ||
  143. hdr->version < EEPROM_5000_TX_POWER_VERSION)
  144. goto err;
  145. return 0;
  146. err:
  147. IWL_ERROR("Unsuported EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n",
  148. eeprom_ver, EEPROM_5000_EEPROM_VERSION,
  149. hdr->version, EEPROM_5000_TX_POWER_VERSION);
  150. return -EINVAL;
  151. }
  152. #ifdef CONFIG_IWL5000_RUN_TIME_CALIB
  153. static void iwl5000_gain_computation(struct iwl_priv *priv,
  154. u32 average_noise[NUM_RX_CHAINS],
  155. u16 min_average_noise_antenna_i,
  156. u32 min_average_noise)
  157. {
  158. int i;
  159. s32 delta_g;
  160. struct iwl_chain_noise_data *data = &priv->chain_noise_data;
  161. /* Find Gain Code for the antennas B and C */
  162. for (i = 1; i < NUM_RX_CHAINS; i++) {
  163. if ((data->disconn_array[i])) {
  164. data->delta_gain_code[i] = 0;
  165. continue;
  166. }
  167. delta_g = (1000 * ((s32)average_noise[0] -
  168. (s32)average_noise[i])) / 1500;
  169. /* bound gain by 2 bits value max, 3rd bit is sign */
  170. data->delta_gain_code[i] =
  171. min(abs(delta_g), CHAIN_NOISE_MAX_DELTA_GAIN_CODE);
  172. if (delta_g < 0)
  173. /* set negative sign */
  174. data->delta_gain_code[i] |= (1 << 2);
  175. }
  176. IWL_DEBUG_CALIB("Delta gains: ANT_B = %d ANT_C = %d\n",
  177. data->delta_gain_code[1], data->delta_gain_code[2]);
  178. if (!data->radio_write) {
  179. struct iwl5000_calibration_chain_noise_gain_cmd cmd;
  180. memset(&cmd, 0, sizeof(cmd));
  181. cmd.op_code = IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD;
  182. cmd.delta_gain_1 = data->delta_gain_code[1];
  183. cmd.delta_gain_2 = data->delta_gain_code[2];
  184. iwl_send_cmd_pdu_async(priv, REPLY_PHY_CALIBRATION_CMD,
  185. sizeof(cmd), &cmd, NULL);
  186. data->radio_write = 1;
  187. data->state = IWL_CHAIN_NOISE_CALIBRATED;
  188. }
  189. data->chain_noise_a = 0;
  190. data->chain_noise_b = 0;
  191. data->chain_noise_c = 0;
  192. data->chain_signal_a = 0;
  193. data->chain_signal_b = 0;
  194. data->chain_signal_c = 0;
  195. data->beacon_count = 0;
  196. }
  197. static void iwl5000_chain_noise_reset(struct iwl_priv *priv)
  198. {
  199. struct iwl_chain_noise_data *data = &priv->chain_noise_data;
  200. if ((data->state == IWL_CHAIN_NOISE_ALIVE) && iwl_is_associated(priv)) {
  201. struct iwl5000_calibration_chain_noise_reset_cmd cmd;
  202. memset(&cmd, 0, sizeof(cmd));
  203. cmd.op_code = IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD;
  204. if (iwl_send_cmd_pdu(priv, REPLY_PHY_CALIBRATION_CMD,
  205. sizeof(cmd), &cmd))
  206. IWL_ERROR("Could not send REPLY_PHY_CALIBRATION_CMD\n");
  207. data->state = IWL_CHAIN_NOISE_ACCUMULATE;
  208. IWL_DEBUG_CALIB("Run chain_noise_calibrate\n");
  209. }
  210. }
  211. static struct iwl_sensitivity_ranges iwl5000_sensitivity = {
  212. .min_nrg_cck = 95,
  213. .max_nrg_cck = 0,
  214. .auto_corr_min_ofdm = 90,
  215. .auto_corr_min_ofdm_mrc = 170,
  216. .auto_corr_min_ofdm_x1 = 120,
  217. .auto_corr_min_ofdm_mrc_x1 = 240,
  218. .auto_corr_max_ofdm = 120,
  219. .auto_corr_max_ofdm_mrc = 210,
  220. .auto_corr_max_ofdm_x1 = 155,
  221. .auto_corr_max_ofdm_mrc_x1 = 290,
  222. .auto_corr_min_cck = 125,
  223. .auto_corr_max_cck = 200,
  224. .auto_corr_min_cck_mrc = 170,
  225. .auto_corr_max_cck_mrc = 400,
  226. .nrg_th_cck = 95,
  227. .nrg_th_ofdm = 95,
  228. };
  229. #endif /* CONFIG_IWL5000_RUN_TIME_CALIB */
  230. static const u8 *iwl5000_eeprom_query_addr(const struct iwl_priv *priv,
  231. size_t offset)
  232. {
  233. u32 address = eeprom_indirect_address(priv, offset);
  234. BUG_ON(address >= priv->cfg->eeprom_size);
  235. return &priv->eeprom[address];
  236. }
  237. static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
  238. {
  239. if ((priv->cfg->mod_params->num_of_queues > IWL50_NUM_QUEUES) ||
  240. (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) {
  241. IWL_ERROR("invalid queues_num, should be between %d and %d\n",
  242. IWL_MIN_NUM_QUEUES, IWL50_NUM_QUEUES);
  243. return -EINVAL;
  244. }
  245. priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues;
  246. priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto;
  247. priv->hw_params.tx_cmd_len = sizeof(struct iwl4965_tx_cmd);
  248. priv->hw_params.max_rxq_size = RX_QUEUE_SIZE;
  249. priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG;
  250. if (priv->cfg->mod_params->amsdu_size_8K)
  251. priv->hw_params.rx_buf_size = IWL_RX_BUF_SIZE_8K;
  252. else
  253. priv->hw_params.rx_buf_size = IWL_RX_BUF_SIZE_4K;
  254. priv->hw_params.max_pkt_size = priv->hw_params.rx_buf_size - 256;
  255. priv->hw_params.max_stations = IWL5000_STATION_COUNT;
  256. priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
  257. priv->hw_params.max_data_size = IWL50_RTC_DATA_SIZE;
  258. priv->hw_params.max_inst_size = IWL50_RTC_INST_SIZE;
  259. priv->hw_params.max_bsm_size = BSM_SRAM_SIZE;
  260. priv->hw_params.fat_channel = BIT(IEEE80211_BAND_2GHZ) |
  261. BIT(IEEE80211_BAND_5GHZ);
  262. #ifdef CONFIG_IWL5000_RUN_TIME_CALIB
  263. priv->hw_params.sens = &iwl5000_sensitivity;
  264. #endif
  265. switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
  266. case CSR_HW_REV_TYPE_5100:
  267. case CSR_HW_REV_TYPE_5150:
  268. priv->hw_params.tx_chains_num = 1;
  269. priv->hw_params.rx_chains_num = 2;
  270. /* FIXME: move to ANT_A, ANT_B, ANT_C enum */
  271. priv->hw_params.valid_tx_ant = ANT_A;
  272. priv->hw_params.valid_rx_ant = ANT_AB;
  273. break;
  274. case CSR_HW_REV_TYPE_5300:
  275. case CSR_HW_REV_TYPE_5350:
  276. priv->hw_params.tx_chains_num = 3;
  277. priv->hw_params.rx_chains_num = 3;
  278. priv->hw_params.valid_tx_ant = ANT_ABC;
  279. priv->hw_params.valid_rx_ant = ANT_ABC;
  280. break;
  281. }
  282. switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
  283. case CSR_HW_REV_TYPE_5100:
  284. case CSR_HW_REV_TYPE_5300:
  285. /* 5X00 wants in Celsius */
  286. priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
  287. break;
  288. case CSR_HW_REV_TYPE_5150:
  289. case CSR_HW_REV_TYPE_5350:
  290. /* 5X50 wants in Kelvin */
  291. priv->hw_params.ct_kill_threshold =
  292. CELSIUS_TO_KELVIN(CT_KILL_THRESHOLD);
  293. break;
  294. }
  295. return 0;
  296. }
  297. static int iwl5000_alloc_shared_mem(struct iwl_priv *priv)
  298. {
  299. priv->shared_virt = pci_alloc_consistent(priv->pci_dev,
  300. sizeof(struct iwl5000_shared),
  301. &priv->shared_phys);
  302. if (!priv->shared_virt)
  303. return -ENOMEM;
  304. memset(priv->shared_virt, 0, sizeof(struct iwl5000_shared));
  305. return 0;
  306. }
  307. static void iwl5000_free_shared_mem(struct iwl_priv *priv)
  308. {
  309. if (priv->shared_virt)
  310. pci_free_consistent(priv->pci_dev,
  311. sizeof(struct iwl5000_shared),
  312. priv->shared_virt,
  313. priv->shared_phys);
  314. }
  315. /**
  316. * iwl5000_txq_update_byte_cnt_tbl - Set up entry in Tx byte-count array
  317. */
  318. static void iwl5000_txq_update_byte_cnt_tbl(struct iwl_priv *priv,
  319. struct iwl4965_tx_queue *txq,
  320. u16 byte_cnt)
  321. {
  322. struct iwl5000_shared *shared_data = priv->shared_virt;
  323. int txq_id = txq->q.id;
  324. u8 sec_ctl = 0;
  325. u8 sta = 0;
  326. int len;
  327. len = byte_cnt + IWL_TX_CRC_SIZE + IWL_TX_DELIMITER_SIZE;
  328. if (txq_id != IWL_CMD_QUEUE_NUM) {
  329. sta = txq->cmd[txq->q.write_ptr].cmd.tx.sta_id;
  330. sec_ctl = txq->cmd[txq->q.write_ptr].cmd.tx.sec_ctl;
  331. switch (sec_ctl & TX_CMD_SEC_MSK) {
  332. case TX_CMD_SEC_CCM:
  333. len += CCMP_MIC_LEN;
  334. break;
  335. case TX_CMD_SEC_TKIP:
  336. len += TKIP_ICV_LEN;
  337. break;
  338. case TX_CMD_SEC_WEP:
  339. len += WEP_IV_LEN + WEP_ICV_LEN;
  340. break;
  341. }
  342. }
  343. IWL_SET_BITS16(shared_data->queues_byte_cnt_tbls[txq_id].
  344. tfd_offset[txq->q.write_ptr], byte_cnt, len);
  345. IWL_SET_BITS16(shared_data->queues_byte_cnt_tbls[txq_id].
  346. tfd_offset[txq->q.write_ptr], sta_id, sta);
  347. if (txq->q.write_ptr < IWL50_MAX_WIN_SIZE) {
  348. IWL_SET_BITS16(shared_data->queues_byte_cnt_tbls[txq_id].
  349. tfd_offset[IWL50_QUEUE_SIZE + txq->q.write_ptr],
  350. byte_cnt, len);
  351. IWL_SET_BITS16(shared_data->queues_byte_cnt_tbls[txq_id].
  352. tfd_offset[IWL50_QUEUE_SIZE + txq->q.write_ptr],
  353. sta_id, sta);
  354. }
  355. }
  356. static struct iwl_hcmd_ops iwl5000_hcmd = {
  357. };
  358. static struct iwl_hcmd_utils_ops iwl5000_hcmd_utils = {
  359. #ifdef CONFIG_IWL5000_RUN_TIME_CALIB
  360. .gain_computation = iwl5000_gain_computation,
  361. .chain_noise_reset = iwl5000_chain_noise_reset,
  362. #endif
  363. };
  364. static struct iwl_lib_ops iwl5000_lib = {
  365. .set_hw_params = iwl5000_hw_set_hw_params,
  366. .alloc_shared_mem = iwl5000_alloc_shared_mem,
  367. .free_shared_mem = iwl5000_free_shared_mem,
  368. .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
  369. .apm_ops = {
  370. .init = iwl5000_apm_init,
  371. .config = iwl5000_nic_init,
  372. .set_pwr_src = iwl4965_set_pwr_src,
  373. },
  374. .eeprom_ops = {
  375. .regulatory_bands = {
  376. EEPROM_5000_REG_BAND_1_CHANNELS,
  377. EEPROM_5000_REG_BAND_2_CHANNELS,
  378. EEPROM_5000_REG_BAND_3_CHANNELS,
  379. EEPROM_5000_REG_BAND_4_CHANNELS,
  380. EEPROM_5000_REG_BAND_5_CHANNELS,
  381. EEPROM_5000_REG_BAND_24_FAT_CHANNELS,
  382. EEPROM_5000_REG_BAND_52_FAT_CHANNELS
  383. },
  384. .verify_signature = iwlcore_eeprom_verify_signature,
  385. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  386. .release_semaphore = iwlcore_eeprom_release_semaphore,
  387. .check_version = iwl5000_eeprom_check_version,
  388. .query_addr = iwl5000_eeprom_query_addr,
  389. },
  390. };
  391. static struct iwl_ops iwl5000_ops = {
  392. .lib = &iwl5000_lib,
  393. .hcmd = &iwl5000_hcmd,
  394. .utils = &iwl5000_hcmd_utils,
  395. };
  396. static struct iwl_mod_params iwl50_mod_params = {
  397. .num_of_queues = IWL50_NUM_QUEUES,
  398. .enable_qos = 1,
  399. .amsdu_size_8K = 1,
  400. /* the rest are 0 by default */
  401. };
  402. struct iwl_cfg iwl5300_agn_cfg = {
  403. .name = "5300AGN",
  404. .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode",
  405. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  406. .ops = &iwl5000_ops,
  407. .eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
  408. .mod_params = &iwl50_mod_params,
  409. };
  410. struct iwl_cfg iwl5100_agn_cfg = {
  411. .name = "5100AGN",
  412. .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode",
  413. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  414. .ops = &iwl5000_ops,
  415. .eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
  416. .mod_params = &iwl50_mod_params,
  417. };
  418. struct iwl_cfg iwl5350_agn_cfg = {
  419. .name = "5350AGN",
  420. .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode",
  421. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  422. .ops = &iwl5000_ops,
  423. .eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
  424. .mod_params = &iwl50_mod_params,
  425. };
  426. module_param_named(disable50, iwl50_mod_params.disable, int, 0444);
  427. MODULE_PARM_DESC(disable50,
  428. "manually disable the 50XX radio (default 0 [radio on])");
  429. module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, 0444);
  430. MODULE_PARM_DESC(swcrypto50,
  431. "using software crypto engine (default 0 [hardware])\n");
  432. module_param_named(debug50, iwl50_mod_params.debug, int, 0444);
  433. MODULE_PARM_DESC(debug50, "50XX debug output mask");
  434. module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, 0444);
  435. MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series");
  436. module_param_named(qos_enable50, iwl50_mod_params.enable_qos, int, 0444);
  437. MODULE_PARM_DESC(qos_enable50, "enable all 50XX QoS functionality");
  438. module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, int, 0444);
  439. MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series");