iwl-2000.c 16 KB

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