iwl-6000.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  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/delay.h>
  30. #include <linux/skbuff.h>
  31. #include <linux/netdevice.h>
  32. #include <linux/wireless.h>
  33. #include <net/mac80211.h>
  34. #include <linux/etherdevice.h>
  35. #include <asm/unaligned.h>
  36. #include <linux/stringify.h>
  37. #include "iwl-eeprom.h"
  38. #include "iwl-dev.h"
  39. #include "iwl-core.h"
  40. #include "iwl-io.h"
  41. #include "iwl-sta.h"
  42. #include "iwl-agn.h"
  43. #include "iwl-helpers.h"
  44. #include "iwl-agn-hw.h"
  45. #include "iwl-6000-hw.h"
  46. #include "iwl-trans.h"
  47. /* Highest firmware API version supported */
  48. #define IWL6000_UCODE_API_MAX 4
  49. #define IWL6050_UCODE_API_MAX 5
  50. #define IWL6000G2_UCODE_API_MAX 5
  51. /* Lowest firmware API version supported */
  52. #define IWL6000_UCODE_API_MIN 4
  53. #define IWL6050_UCODE_API_MIN 4
  54. #define IWL6000G2_UCODE_API_MIN 4
  55. #define IWL6000_FW_PRE "iwlwifi-6000-"
  56. #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
  57. #define IWL6050_FW_PRE "iwlwifi-6050-"
  58. #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
  59. #define IWL6005_FW_PRE "iwlwifi-6000g2a-"
  60. #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
  61. #define IWL6030_FW_PRE "iwlwifi-6000g2b-"
  62. #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
  63. static void iwl6000_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. static void iwl6050_additional_nic_config(struct iwl_priv *priv)
  70. {
  71. /* Indicate calibration version to uCode. */
  72. if (iwlagn_eeprom_calib_version(priv) >= 6)
  73. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  74. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  75. }
  76. static void iwl6150_additional_nic_config(struct iwl_priv *priv)
  77. {
  78. /* Indicate calibration version to uCode. */
  79. if (iwlagn_eeprom_calib_version(priv) >= 6)
  80. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  81. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  82. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  83. CSR_GP_DRIVER_REG_BIT_6050_1x2);
  84. }
  85. /* NIC configuration for 6000 series */
  86. static void iwl6000_nic_config(struct iwl_priv *priv)
  87. {
  88. iwl_rf_config(priv);
  89. /* no locking required for register write */
  90. if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
  91. /* 2x2 IPA phy type */
  92. iwl_write32(priv, CSR_GP_DRIVER_REG,
  93. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
  94. }
  95. /* do additional nic configuration if needed */
  96. if (priv->cfg->additional_nic_config)
  97. priv->cfg->additional_nic_config(priv);
  98. }
  99. static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
  100. .min_nrg_cck = 97,
  101. .max_nrg_cck = 0, /* not used, set to 0 */
  102. .auto_corr_min_ofdm = 80,
  103. .auto_corr_min_ofdm_mrc = 128,
  104. .auto_corr_min_ofdm_x1 = 105,
  105. .auto_corr_min_ofdm_mrc_x1 = 192,
  106. .auto_corr_max_ofdm = 145,
  107. .auto_corr_max_ofdm_mrc = 232,
  108. .auto_corr_max_ofdm_x1 = 110,
  109. .auto_corr_max_ofdm_mrc_x1 = 232,
  110. .auto_corr_min_cck = 125,
  111. .auto_corr_max_cck = 175,
  112. .auto_corr_min_cck_mrc = 160,
  113. .auto_corr_max_cck_mrc = 310,
  114. .nrg_th_cck = 97,
  115. .nrg_th_ofdm = 100,
  116. .barker_corr_th_min = 190,
  117. .barker_corr_th_min_mrc = 390,
  118. .nrg_th_cca = 62,
  119. };
  120. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  121. {
  122. if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
  123. iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
  124. priv->cfg->base_params->num_of_queues =
  125. iwlagn_mod_params.num_of_queues;
  126. priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
  127. priv->hw_params.scd_bc_tbls_size =
  128. priv->cfg->base_params->num_of_queues *
  129. sizeof(struct iwlagn_scd_bc_tbl);
  130. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  131. priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
  132. priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
  133. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  134. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  135. priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  136. BIT(IEEE80211_BAND_5GHZ);
  137. priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  138. if (priv->cfg->rx_with_siso_diversity)
  139. priv->hw_params.rx_chains_num = 1;
  140. else
  141. priv->hw_params.rx_chains_num =
  142. num_of_ant(priv->cfg->valid_rx_ant);
  143. priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
  144. priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
  145. iwl6000_set_ct_threshold(priv);
  146. /* Set initial sensitivity parameters */
  147. /* Set initial calibration set */
  148. priv->hw_params.sens = &iwl6000_sensitivity;
  149. priv->hw_params.calib_init_cfg =
  150. BIT(IWL_CALIB_XTAL) |
  151. BIT(IWL_CALIB_LO) |
  152. BIT(IWL_CALIB_TX_IQ) |
  153. BIT(IWL_CALIB_BASE_BAND);
  154. if (priv->cfg->need_dc_calib)
  155. priv->hw_params.calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX;
  156. if (priv->cfg->need_temp_offset_calib)
  157. priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
  158. priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
  159. return 0;
  160. }
  161. static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
  162. struct ieee80211_channel_switch *ch_switch)
  163. {
  164. /*
  165. * MULTI-FIXME
  166. * See iwl_mac_channel_switch.
  167. */
  168. struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
  169. struct iwl6000_channel_switch_cmd cmd;
  170. const struct iwl_channel_info *ch_info;
  171. u32 switch_time_in_usec, ucode_switch_time;
  172. u16 ch;
  173. u32 tsf_low;
  174. u8 switch_count;
  175. u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
  176. struct ieee80211_vif *vif = ctx->vif;
  177. struct iwl_host_cmd hcmd = {
  178. .id = REPLY_CHANNEL_SWITCH,
  179. .len = { sizeof(cmd), },
  180. .flags = CMD_SYNC,
  181. .data = { &cmd, },
  182. };
  183. cmd.band = priv->band == IEEE80211_BAND_2GHZ;
  184. ch = ch_switch->channel->hw_value;
  185. IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
  186. ctx->active.channel, ch);
  187. cmd.channel = cpu_to_le16(ch);
  188. cmd.rxon_flags = ctx->staging.flags;
  189. cmd.rxon_filter_flags = ctx->staging.filter_flags;
  190. switch_count = ch_switch->count;
  191. tsf_low = ch_switch->timestamp & 0x0ffffffff;
  192. /*
  193. * calculate the ucode channel switch time
  194. * adding TSF as one of the factor for when to switch
  195. */
  196. if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
  197. if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
  198. beacon_interval)) {
  199. switch_count -= (priv->ucode_beacon_time -
  200. tsf_low) / beacon_interval;
  201. } else
  202. switch_count = 0;
  203. }
  204. if (switch_count <= 1)
  205. cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
  206. else {
  207. switch_time_in_usec =
  208. vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
  209. ucode_switch_time = iwl_usecs_to_beacons(priv,
  210. switch_time_in_usec,
  211. beacon_interval);
  212. cmd.switch_time = iwl_add_beacon_time(priv,
  213. priv->ucode_beacon_time,
  214. ucode_switch_time,
  215. beacon_interval);
  216. }
  217. IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
  218. cmd.switch_time);
  219. ch_info = iwl_get_channel_info(priv, priv->band, ch);
  220. if (ch_info)
  221. cmd.expect_beacon = is_channel_radar(ch_info);
  222. else {
  223. IWL_ERR(priv, "invalid channel switch from %u to %u\n",
  224. ctx->active.channel, ch);
  225. return -EFAULT;
  226. }
  227. return trans_send_cmd(&priv->trans, &hcmd);
  228. }
  229. static struct iwl_lib_ops iwl6000_lib = {
  230. .set_hw_params = iwl6000_hw_set_hw_params,
  231. .set_channel_switch = iwl6000_hw_channel_switch,
  232. .nic_config = iwl6000_nic_config,
  233. .eeprom_ops = {
  234. .regulatory_bands = {
  235. EEPROM_REG_BAND_1_CHANNELS,
  236. EEPROM_REG_BAND_2_CHANNELS,
  237. EEPROM_REG_BAND_3_CHANNELS,
  238. EEPROM_REG_BAND_4_CHANNELS,
  239. EEPROM_REG_BAND_5_CHANNELS,
  240. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  241. EEPROM_REG_BAND_52_HT40_CHANNELS
  242. },
  243. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  244. },
  245. .temperature = iwlagn_temperature,
  246. };
  247. static struct iwl_lib_ops iwl6030_lib = {
  248. .set_hw_params = iwl6000_hw_set_hw_params,
  249. .bt_rx_handler_setup = iwlagn_bt_rx_handler_setup,
  250. .bt_setup_deferred_work = iwlagn_bt_setup_deferred_work,
  251. .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
  252. .set_channel_switch = iwl6000_hw_channel_switch,
  253. .nic_config = iwl6000_nic_config,
  254. .eeprom_ops = {
  255. .regulatory_bands = {
  256. EEPROM_REG_BAND_1_CHANNELS,
  257. EEPROM_REG_BAND_2_CHANNELS,
  258. EEPROM_REG_BAND_3_CHANNELS,
  259. EEPROM_REG_BAND_4_CHANNELS,
  260. EEPROM_REG_BAND_5_CHANNELS,
  261. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  262. EEPROM_REG_BAND_52_HT40_CHANNELS
  263. },
  264. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  265. },
  266. .temperature = iwlagn_temperature,
  267. };
  268. static struct iwl_base_params iwl6000_base_params = {
  269. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  270. .num_of_queues = IWLAGN_NUM_QUEUES,
  271. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  272. .pll_cfg_val = 0,
  273. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  274. .shadow_ram_support = true,
  275. .led_compensation = 51,
  276. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  277. .adv_thermal_throttle = true,
  278. .support_ct_kill_exit = true,
  279. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  280. .chain_noise_scale = 1000,
  281. .wd_timeout = IWL_DEF_WD_TIMEOUT,
  282. .max_event_log_size = 512,
  283. .shadow_reg_enable = true,
  284. };
  285. static struct iwl_base_params iwl6050_base_params = {
  286. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  287. .num_of_queues = IWLAGN_NUM_QUEUES,
  288. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  289. .pll_cfg_val = 0,
  290. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  291. .shadow_ram_support = true,
  292. .led_compensation = 51,
  293. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  294. .adv_thermal_throttle = true,
  295. .support_ct_kill_exit = true,
  296. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  297. .chain_noise_scale = 1500,
  298. .wd_timeout = IWL_DEF_WD_TIMEOUT,
  299. .max_event_log_size = 1024,
  300. .shadow_reg_enable = true,
  301. };
  302. static struct iwl_base_params iwl6000_g2_base_params = {
  303. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  304. .num_of_queues = IWLAGN_NUM_QUEUES,
  305. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  306. .pll_cfg_val = 0,
  307. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  308. .shadow_ram_support = true,
  309. .led_compensation = 57,
  310. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  311. .adv_thermal_throttle = true,
  312. .support_ct_kill_exit = true,
  313. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  314. .chain_noise_scale = 1000,
  315. .wd_timeout = IWL_LONG_WD_TIMEOUT,
  316. .max_event_log_size = 512,
  317. .shadow_reg_enable = true,
  318. };
  319. static struct iwl_ht_params iwl6000_ht_params = {
  320. .ht_greenfield_support = true,
  321. .use_rts_for_aggregation = true, /* use rts/cts protection */
  322. };
  323. static struct iwl_bt_params iwl6000_bt_params = {
  324. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  325. .advanced_bt_coexist = true,
  326. .agg_time_limit = BT_AGG_THRESHOLD_DEF,
  327. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  328. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  329. .bt_sco_disable = true,
  330. };
  331. #define IWL_DEVICE_6005 \
  332. .fw_name_pre = IWL6005_FW_PRE, \
  333. .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
  334. .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
  335. .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
  336. .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
  337. .lib = &iwl6000_lib, \
  338. .base_params = &iwl6000_g2_base_params, \
  339. .need_dc_calib = true, \
  340. .need_temp_offset_calib = true, \
  341. .led_mode = IWL_LED_RF_STATE
  342. struct iwl_cfg iwl6005_2agn_cfg = {
  343. .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
  344. IWL_DEVICE_6005,
  345. .ht_params = &iwl6000_ht_params,
  346. };
  347. struct iwl_cfg iwl6005_2abg_cfg = {
  348. .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
  349. IWL_DEVICE_6005,
  350. };
  351. struct iwl_cfg iwl6005_2bg_cfg = {
  352. .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
  353. IWL_DEVICE_6005,
  354. };
  355. #define IWL_DEVICE_6030 \
  356. .fw_name_pre = IWL6030_FW_PRE, \
  357. .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
  358. .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
  359. .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
  360. .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
  361. .lib = &iwl6030_lib, \
  362. .base_params = &iwl6000_g2_base_params, \
  363. .bt_params = &iwl6000_bt_params, \
  364. .need_dc_calib = true, \
  365. .need_temp_offset_calib = true, \
  366. .led_mode = IWL_LED_RF_STATE, \
  367. .adv_pm = true \
  368. struct iwl_cfg iwl6030_2agn_cfg = {
  369. .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
  370. IWL_DEVICE_6030,
  371. .ht_params = &iwl6000_ht_params,
  372. };
  373. struct iwl_cfg iwl6030_2abg_cfg = {
  374. .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
  375. IWL_DEVICE_6030,
  376. };
  377. struct iwl_cfg iwl6030_2bgn_cfg = {
  378. .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
  379. IWL_DEVICE_6030,
  380. .ht_params = &iwl6000_ht_params,
  381. };
  382. struct iwl_cfg iwl6030_2bg_cfg = {
  383. .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
  384. IWL_DEVICE_6030,
  385. };
  386. struct iwl_cfg iwl6035_2agn_cfg = {
  387. .name = "6035 Series 2x2 AGN/BT",
  388. IWL_DEVICE_6030,
  389. .ht_params = &iwl6000_ht_params,
  390. };
  391. struct iwl_cfg iwl6035_2abg_cfg = {
  392. .name = "6035 Series 2x2 ABG/BT",
  393. IWL_DEVICE_6030,
  394. };
  395. struct iwl_cfg iwl6035_2bg_cfg = {
  396. .name = "6035 Series 2x2 BG/BT",
  397. IWL_DEVICE_6030,
  398. };
  399. struct iwl_cfg iwl1030_bgn_cfg = {
  400. .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
  401. IWL_DEVICE_6030,
  402. .ht_params = &iwl6000_ht_params,
  403. };
  404. struct iwl_cfg iwl1030_bg_cfg = {
  405. .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
  406. IWL_DEVICE_6030,
  407. };
  408. struct iwl_cfg iwl130_bgn_cfg = {
  409. .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
  410. IWL_DEVICE_6030,
  411. .ht_params = &iwl6000_ht_params,
  412. .rx_with_siso_diversity = true,
  413. };
  414. struct iwl_cfg iwl130_bg_cfg = {
  415. .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
  416. IWL_DEVICE_6030,
  417. .rx_with_siso_diversity = true,
  418. };
  419. /*
  420. * "i": Internal configuration, use internal Power Amplifier
  421. */
  422. #define IWL_DEVICE_6000i \
  423. .fw_name_pre = IWL6000_FW_PRE, \
  424. .ucode_api_max = IWL6000_UCODE_API_MAX, \
  425. .ucode_api_min = IWL6000_UCODE_API_MIN, \
  426. .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
  427. .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
  428. .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
  429. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
  430. .lib = &iwl6000_lib, \
  431. .base_params = &iwl6000_base_params, \
  432. .pa_type = IWL_PA_INTERNAL, \
  433. .led_mode = IWL_LED_BLINK
  434. struct iwl_cfg iwl6000i_2agn_cfg = {
  435. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  436. IWL_DEVICE_6000i,
  437. .ht_params = &iwl6000_ht_params,
  438. };
  439. struct iwl_cfg iwl6000i_2abg_cfg = {
  440. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  441. IWL_DEVICE_6000i,
  442. };
  443. struct iwl_cfg iwl6000i_2bg_cfg = {
  444. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  445. IWL_DEVICE_6000i,
  446. };
  447. #define IWL_DEVICE_6050 \
  448. .fw_name_pre = IWL6050_FW_PRE, \
  449. .ucode_api_max = IWL6050_UCODE_API_MAX, \
  450. .ucode_api_min = IWL6050_UCODE_API_MIN, \
  451. .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
  452. .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
  453. .lib = &iwl6000_lib, \
  454. .additional_nic_config = iwl6050_additional_nic_config, \
  455. .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
  456. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
  457. .base_params = &iwl6050_base_params, \
  458. .need_dc_calib = true, \
  459. .led_mode = IWL_LED_BLINK, \
  460. .internal_wimax_coex = true
  461. struct iwl_cfg iwl6050_2agn_cfg = {
  462. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  463. IWL_DEVICE_6050,
  464. .ht_params = &iwl6000_ht_params,
  465. };
  466. struct iwl_cfg iwl6050_2abg_cfg = {
  467. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  468. IWL_DEVICE_6050,
  469. };
  470. #define IWL_DEVICE_6150 \
  471. .fw_name_pre = IWL6050_FW_PRE, \
  472. .ucode_api_max = IWL6050_UCODE_API_MAX, \
  473. .ucode_api_min = IWL6050_UCODE_API_MIN, \
  474. .lib = &iwl6000_lib, \
  475. .additional_nic_config = iwl6150_additional_nic_config, \
  476. .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \
  477. .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
  478. .base_params = &iwl6050_base_params, \
  479. .need_dc_calib = true, \
  480. .led_mode = IWL_LED_BLINK, \
  481. .internal_wimax_coex = true
  482. struct iwl_cfg iwl6150_bgn_cfg = {
  483. .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
  484. IWL_DEVICE_6150,
  485. .ht_params = &iwl6000_ht_params,
  486. };
  487. struct iwl_cfg iwl6150_bg_cfg = {
  488. .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
  489. IWL_DEVICE_6150,
  490. };
  491. struct iwl_cfg iwl6000_3agn_cfg = {
  492. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  493. .fw_name_pre = IWL6000_FW_PRE,
  494. .ucode_api_max = IWL6000_UCODE_API_MAX,
  495. .ucode_api_min = IWL6000_UCODE_API_MIN,
  496. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  497. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  498. .lib = &iwl6000_lib,
  499. .base_params = &iwl6000_base_params,
  500. .ht_params = &iwl6000_ht_params,
  501. .need_dc_calib = true,
  502. .led_mode = IWL_LED_BLINK,
  503. };
  504. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  505. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  506. MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  507. MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));