iwl-2000.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2008 - 2011 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-agn.h"
  44. #include "iwl-helpers.h"
  45. #include "iwl-agn-hw.h"
  46. #include "iwl-6000-hw.h"
  47. #include "iwl-agn-debugfs.h"
  48. /* Highest firmware API version supported */
  49. #define IWL2030_UCODE_API_MAX 5
  50. #define IWL2000_UCODE_API_MAX 5
  51. #define IWL200_UCODE_API_MAX 5
  52. /* Lowest firmware API version supported */
  53. #define IWL2030_UCODE_API_MIN 5
  54. #define IWL2000_UCODE_API_MIN 5
  55. #define IWL200_UCODE_API_MIN 5
  56. #define IWL2030_FW_PRE "iwlwifi-2030-"
  57. #define IWL2030_MODULE_FIRMWARE(api) IWL2030_FW_PRE #api ".ucode"
  58. #define IWL2000_FW_PRE "iwlwifi-2000-"
  59. #define IWL2000_MODULE_FIRMWARE(api) IWL2000_FW_PRE #api ".ucode"
  60. #define IWL200_FW_PRE "iwlwifi-200-"
  61. #define IWL200_MODULE_FIRMWARE(api) IWL200_FW_PRE #api ".ucode"
  62. static void iwl2000_set_ct_threshold(struct iwl_priv *priv)
  63. {
  64. /* want Celsius */
  65. priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
  66. priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
  67. }
  68. /* NIC configuration for 2000 series */
  69. static void iwl2000_nic_config(struct iwl_priv *priv)
  70. {
  71. u16 radio_cfg;
  72. radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
  73. /* write radio config values to register */
  74. if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
  75. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  76. EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
  77. EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
  78. EEPROM_RF_CFG_DASH_MSK(radio_cfg));
  79. /* set CSR_HW_CONFIG_REG for uCode use */
  80. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  81. CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
  82. CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
  83. if (priv->cfg->iq_invert)
  84. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  85. CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER);
  86. if (priv->cfg->disable_otp_refresh)
  87. iwl_write_prph(priv, APMG_ANALOG_SVR_REG, 0x80000010);
  88. }
  89. static struct iwl_sensitivity_ranges iwl2000_sensitivity = {
  90. .min_nrg_cck = 97,
  91. .max_nrg_cck = 0, /* not used, set to 0 */
  92. .auto_corr_min_ofdm = 80,
  93. .auto_corr_min_ofdm_mrc = 128,
  94. .auto_corr_min_ofdm_x1 = 105,
  95. .auto_corr_min_ofdm_mrc_x1 = 192,
  96. .auto_corr_max_ofdm = 145,
  97. .auto_corr_max_ofdm_mrc = 232,
  98. .auto_corr_max_ofdm_x1 = 110,
  99. .auto_corr_max_ofdm_mrc_x1 = 232,
  100. .auto_corr_min_cck = 125,
  101. .auto_corr_max_cck = 175,
  102. .auto_corr_min_cck_mrc = 160,
  103. .auto_corr_max_cck_mrc = 310,
  104. .nrg_th_cck = 97,
  105. .nrg_th_ofdm = 100,
  106. .barker_corr_th_min = 190,
  107. .barker_corr_th_min_mrc = 390,
  108. .nrg_th_cca = 62,
  109. };
  110. static int iwl2000_hw_set_hw_params(struct iwl_priv *priv)
  111. {
  112. if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
  113. priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
  114. priv->cfg->base_params->num_of_queues =
  115. priv->cfg->mod_params->num_of_queues;
  116. priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
  117. priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
  118. priv->hw_params.scd_bc_tbls_size =
  119. priv->cfg->base_params->num_of_queues *
  120. sizeof(struct iwlagn_scd_bc_tbl);
  121. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  122. priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
  123. priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
  124. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  125. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  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. if (priv->cfg->rx_with_siso_diversity)
  131. priv->hw_params.rx_chains_num = 1;
  132. else
  133. priv->hw_params.rx_chains_num =
  134. 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. iwl2000_set_ct_threshold(priv);
  138. /* Set initial sensitivity parameters */
  139. /* Set initial calibration set */
  140. priv->hw_params.sens = &iwl2000_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_BASE_BAND);
  146. if (priv->cfg->need_dc_calib)
  147. priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
  148. if (priv->cfg->need_temp_offset_calib)
  149. priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
  150. priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
  151. return 0;
  152. }
  153. static int iwl2030_hw_channel_switch(struct iwl_priv *priv,
  154. struct ieee80211_channel_switch *ch_switch)
  155. {
  156. /*
  157. * MULTI-FIXME
  158. * See iwl_mac_channel_switch.
  159. */
  160. struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
  161. struct iwl6000_channel_switch_cmd cmd;
  162. const struct iwl_channel_info *ch_info;
  163. u32 switch_time_in_usec, ucode_switch_time;
  164. u16 ch;
  165. u32 tsf_low;
  166. u8 switch_count;
  167. u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
  168. struct ieee80211_vif *vif = ctx->vif;
  169. struct iwl_host_cmd hcmd = {
  170. .id = REPLY_CHANNEL_SWITCH,
  171. .len = sizeof(cmd),
  172. .flags = CMD_SYNC,
  173. .data = &cmd,
  174. };
  175. cmd.band = priv->band == IEEE80211_BAND_2GHZ;
  176. ch = ch_switch->channel->hw_value;
  177. IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
  178. ctx->active.channel, ch);
  179. cmd.channel = cpu_to_le16(ch);
  180. cmd.rxon_flags = ctx->staging.flags;
  181. cmd.rxon_filter_flags = ctx->staging.filter_flags;
  182. switch_count = ch_switch->count;
  183. tsf_low = ch_switch->timestamp & 0x0ffffffff;
  184. /*
  185. * calculate the ucode channel switch time
  186. * adding TSF as one of the factor for when to switch
  187. */
  188. if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
  189. if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
  190. beacon_interval)) {
  191. switch_count -= (priv->ucode_beacon_time -
  192. tsf_low) / beacon_interval;
  193. } else
  194. switch_count = 0;
  195. }
  196. if (switch_count <= 1)
  197. cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
  198. else {
  199. switch_time_in_usec =
  200. vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
  201. ucode_switch_time = iwl_usecs_to_beacons(priv,
  202. switch_time_in_usec,
  203. beacon_interval);
  204. cmd.switch_time = iwl_add_beacon_time(priv,
  205. priv->ucode_beacon_time,
  206. ucode_switch_time,
  207. beacon_interval);
  208. }
  209. IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
  210. cmd.switch_time);
  211. ch_info = iwl_get_channel_info(priv, priv->band, ch);
  212. if (ch_info)
  213. cmd.expect_beacon = is_channel_radar(ch_info);
  214. else {
  215. IWL_ERR(priv, "invalid channel switch from %u to %u\n",
  216. ctx->active.channel, ch);
  217. return -EFAULT;
  218. }
  219. priv->switch_rxon.channel = cmd.channel;
  220. priv->switch_rxon.switch_in_progress = true;
  221. return iwl_send_cmd_sync(priv, &hcmd);
  222. }
  223. static struct iwl_lib_ops iwl2000_lib = {
  224. .set_hw_params = iwl2000_hw_set_hw_params,
  225. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  226. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  227. .txq_set_sched = iwlagn_txq_set_sched,
  228. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  229. .txq_free_tfd = iwl_hw_txq_free_tfd,
  230. .txq_init = iwl_hw_tx_queue_init,
  231. .rx_handler_setup = iwlagn_rx_handler_setup,
  232. .setup_deferred_work = iwlagn_bt_setup_deferred_work,
  233. .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
  234. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  235. .send_tx_power = iwlagn_send_tx_power,
  236. .update_chain_flags = iwl_update_chain_flags,
  237. .set_channel_switch = iwl2030_hw_channel_switch,
  238. .apm_ops = {
  239. .init = iwl_apm_init,
  240. .config = iwl2000_nic_config,
  241. },
  242. .eeprom_ops = {
  243. .regulatory_bands = {
  244. EEPROM_REG_BAND_1_CHANNELS,
  245. EEPROM_REG_BAND_2_CHANNELS,
  246. EEPROM_REG_BAND_3_CHANNELS,
  247. EEPROM_REG_BAND_4_CHANNELS,
  248. EEPROM_REG_BAND_5_CHANNELS,
  249. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  250. EEPROM_REGULATORY_BAND_NO_HT40,
  251. },
  252. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  253. .release_semaphore = iwlcore_eeprom_release_semaphore,
  254. .calib_version = iwlagn_eeprom_calib_version,
  255. .query_addr = iwlagn_eeprom_query_addr,
  256. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  257. },
  258. .temp_ops = {
  259. .temperature = iwlagn_temperature,
  260. },
  261. .debugfs_ops = {
  262. .rx_stats_read = iwl_ucode_rx_stats_read,
  263. .tx_stats_read = iwl_ucode_tx_stats_read,
  264. .general_stats_read = iwl_ucode_general_stats_read,
  265. .bt_stats_read = iwl_ucode_bt_stats_read,
  266. .reply_tx_error = iwl_reply_tx_error_read,
  267. },
  268. .txfifo_flush = iwlagn_txfifo_flush,
  269. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  270. };
  271. static const struct iwl_ops iwl2000_ops = {
  272. .lib = &iwl2000_lib,
  273. .hcmd = &iwlagn_hcmd,
  274. .utils = &iwlagn_hcmd_utils,
  275. };
  276. static const struct iwl_ops iwl2030_ops = {
  277. .lib = &iwl2000_lib,
  278. .hcmd = &iwlagn_bt_hcmd,
  279. .utils = &iwlagn_hcmd_utils,
  280. };
  281. static const struct iwl_ops iwl200_ops = {
  282. .lib = &iwl2000_lib,
  283. .hcmd = &iwlagn_hcmd,
  284. .utils = &iwlagn_hcmd_utils,
  285. };
  286. static const struct iwl_ops iwl230_ops = {
  287. .lib = &iwl2000_lib,
  288. .hcmd = &iwlagn_bt_hcmd,
  289. .utils = &iwlagn_hcmd_utils,
  290. };
  291. static struct iwl_base_params iwl2000_base_params = {
  292. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  293. .num_of_queues = IWLAGN_NUM_QUEUES,
  294. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  295. .pll_cfg_val = 0,
  296. .max_ll_items = OTP_MAX_LL_ITEMS_2x00,
  297. .shadow_ram_support = true,
  298. .led_compensation = 51,
  299. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  300. .adv_thermal_throttle = true,
  301. .support_ct_kill_exit = true,
  302. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  303. .chain_noise_scale = 1000,
  304. .wd_timeout = IWL_DEF_WD_TIMEOUT,
  305. .max_event_log_size = 512,
  306. .shadow_reg_enable = true,
  307. };
  308. static struct iwl_base_params iwl2030_base_params = {
  309. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  310. .num_of_queues = IWLAGN_NUM_QUEUES,
  311. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  312. .pll_cfg_val = 0,
  313. .max_ll_items = OTP_MAX_LL_ITEMS_2x00,
  314. .shadow_ram_support = true,
  315. .led_compensation = 57,
  316. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  317. .adv_thermal_throttle = true,
  318. .support_ct_kill_exit = true,
  319. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  320. .chain_noise_scale = 1000,
  321. .wd_timeout = IWL_LONG_WD_TIMEOUT,
  322. .max_event_log_size = 512,
  323. .shadow_reg_enable = true,
  324. };
  325. static struct iwl_ht_params iwl2000_ht_params = {
  326. .ht_greenfield_support = true,
  327. .use_rts_for_aggregation = true, /* use rts/cts protection */
  328. };
  329. static struct iwl_bt_params iwl2030_bt_params = {
  330. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  331. .advanced_bt_coexist = true,
  332. .agg_time_limit = BT_AGG_THRESHOLD_DEF,
  333. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  334. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  335. .bt_sco_disable = true,
  336. .bt_session_2 = true,
  337. };
  338. #define IWL_DEVICE_2000 \
  339. .fw_name_pre = IWL2000_FW_PRE, \
  340. .ucode_api_max = IWL2000_UCODE_API_MAX, \
  341. .ucode_api_min = IWL2000_UCODE_API_MIN, \
  342. .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
  343. .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
  344. .ops = &iwl2000_ops, \
  345. .mod_params = &iwlagn_mod_params, \
  346. .base_params = &iwl2000_base_params, \
  347. .need_dc_calib = true, \
  348. .need_temp_offset_calib = true, \
  349. .led_mode = IWL_LED_RF_STATE, \
  350. .iq_invert = true, \
  351. .disable_otp_refresh = true \
  352. struct iwl_cfg iwl2000_2bgn_cfg = {
  353. .name = "2000 Series 2x2 BGN",
  354. IWL_DEVICE_2000,
  355. .ht_params = &iwl2000_ht_params,
  356. };
  357. struct iwl_cfg iwl2000_2bg_cfg = {
  358. .name = "2000 Series 2x2 BG",
  359. IWL_DEVICE_2000,
  360. };
  361. #define IWL_DEVICE_2030 \
  362. .fw_name_pre = IWL2030_FW_PRE, \
  363. .ucode_api_max = IWL2030_UCODE_API_MAX, \
  364. .ucode_api_min = IWL2030_UCODE_API_MIN, \
  365. .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
  366. .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
  367. .ops = &iwl2030_ops, \
  368. .mod_params = &iwlagn_mod_params, \
  369. .base_params = &iwl2030_base_params, \
  370. .bt_params = &iwl2030_bt_params, \
  371. .need_dc_calib = true, \
  372. .need_temp_offset_calib = true, \
  373. .led_mode = IWL_LED_RF_STATE, \
  374. .adv_pm = true, \
  375. .iq_invert = true \
  376. struct iwl_cfg iwl2030_2bgn_cfg = {
  377. .name = "2000 Series 2x2 BGN/BT",
  378. IWL_DEVICE_2030,
  379. .ht_params = &iwl2000_ht_params,
  380. };
  381. struct iwl_cfg iwl2030_2bg_cfg = {
  382. .name = "2000 Series 2x2 BG/BT",
  383. IWL_DEVICE_2030,
  384. };
  385. #define IWL_DEVICE_200 \
  386. .fw_name_pre = IWL200_FW_PRE, \
  387. .ucode_api_max = IWL200_UCODE_API_MAX, \
  388. .ucode_api_min = IWL200_UCODE_API_MIN, \
  389. .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
  390. .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
  391. .ops = &iwl200_ops, \
  392. .mod_params = &iwlagn_mod_params, \
  393. .base_params = &iwl2000_base_params, \
  394. .need_dc_calib = true, \
  395. .need_temp_offset_calib = true, \
  396. .led_mode = IWL_LED_RF_STATE, \
  397. .adv_pm = true, \
  398. .rx_with_siso_diversity = true \
  399. struct iwl_cfg iwl200_bg_cfg = {
  400. .name = "200 Series 1x1 BG",
  401. IWL_DEVICE_200,
  402. };
  403. struct iwl_cfg iwl200_bgn_cfg = {
  404. .name = "200 Series 1x1 BGN",
  405. IWL_DEVICE_200,
  406. .ht_params = &iwl2000_ht_params,
  407. };
  408. #define IWL_DEVICE_230 \
  409. .fw_name_pre = IWL200_FW_PRE, \
  410. .ucode_api_max = IWL200_UCODE_API_MAX, \
  411. .ucode_api_min = IWL200_UCODE_API_MIN, \
  412. .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
  413. .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
  414. .ops = &iwl230_ops, \
  415. .mod_params = &iwlagn_mod_params, \
  416. .base_params = &iwl2030_base_params, \
  417. .bt_params = &iwl2030_bt_params, \
  418. .need_dc_calib = true, \
  419. .need_temp_offset_calib = true, \
  420. .led_mode = IWL_LED_RF_STATE, \
  421. .adv_pm = true, \
  422. .rx_with_siso_diversity = true \
  423. struct iwl_cfg iwl230_bg_cfg = {
  424. .name = "200 Series 1x1 BG/BT",
  425. IWL_DEVICE_230,
  426. };
  427. struct iwl_cfg iwl230_bgn_cfg = {
  428. .name = "200 Series 1x1 BGN/BT",
  429. IWL_DEVICE_230,
  430. .ht_params = &iwl2000_ht_params,
  431. };
  432. MODULE_FIRMWARE(IWL2000_MODULE_FIRMWARE(IWL2000_UCODE_API_MAX));
  433. MODULE_FIRMWARE(IWL2030_MODULE_FIRMWARE(IWL2030_UCODE_API_MAX));
  434. MODULE_FIRMWARE(IWL200_MODULE_FIRMWARE(IWL200_UCODE_API_MAX));