iwl-6000.c 17 KB

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