iwl-6000.c 17 KB

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