iwl-2000.c 15 KB

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