iwl-6000.c 17 KB

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