iwl-6000.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  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. /* 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 6
  51. /* Oldest version we won't warn about */
  52. #define IWL6000G2_UCODE_API_OK 5
  53. /* Lowest firmware API version supported */
  54. #define IWL6000_UCODE_API_MIN 4
  55. #define IWL6050_UCODE_API_MIN 4
  56. #define IWL6000G2_UCODE_API_MIN 4
  57. #define IWL6000_FW_PRE "iwlwifi-6000-"
  58. #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
  59. #define IWL6050_FW_PRE "iwlwifi-6050-"
  60. #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
  61. #define IWL6005_FW_PRE "iwlwifi-6000g2a-"
  62. #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
  63. #define IWL6030_FW_PRE "iwlwifi-6000g2b-"
  64. #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
  65. static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
  66. {
  67. /* want Celsius */
  68. hw_params(priv).ct_kill_threshold = CT_KILL_THRESHOLD;
  69. hw_params(priv).ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
  70. }
  71. static void iwl6050_additional_nic_config(struct iwl_priv *priv)
  72. {
  73. /* Indicate calibration version to uCode. */
  74. if (iwlagn_eeprom_calib_version(priv) >= 6)
  75. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  76. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  77. }
  78. static void iwl6150_additional_nic_config(struct iwl_priv *priv)
  79. {
  80. /* Indicate calibration version to uCode. */
  81. if (iwlagn_eeprom_calib_version(priv) >= 6)
  82. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  83. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  84. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  85. CSR_GP_DRIVER_REG_BIT_6050_1x2);
  86. }
  87. /* NIC configuration for 6000 series */
  88. static void iwl6000_nic_config(struct iwl_priv *priv)
  89. {
  90. iwl_rf_config(priv);
  91. /* no locking required for register write */
  92. if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
  93. /* 2x2 IPA phy type */
  94. iwl_write32(priv, CSR_GP_DRIVER_REG,
  95. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
  96. }
  97. /* do additional nic configuration if needed */
  98. if (priv->cfg->additional_nic_config)
  99. priv->cfg->additional_nic_config(priv);
  100. }
  101. static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
  102. .min_nrg_cck = 110,
  103. .max_nrg_cck = 0, /* not used, set to 0 */
  104. .auto_corr_min_ofdm = 80,
  105. .auto_corr_min_ofdm_mrc = 128,
  106. .auto_corr_min_ofdm_x1 = 105,
  107. .auto_corr_min_ofdm_mrc_x1 = 192,
  108. .auto_corr_max_ofdm = 145,
  109. .auto_corr_max_ofdm_mrc = 232,
  110. .auto_corr_max_ofdm_x1 = 110,
  111. .auto_corr_max_ofdm_mrc_x1 = 232,
  112. .auto_corr_min_cck = 125,
  113. .auto_corr_max_cck = 175,
  114. .auto_corr_min_cck_mrc = 160,
  115. .auto_corr_max_cck_mrc = 310,
  116. .nrg_th_cck = 110,
  117. .nrg_th_ofdm = 110,
  118. .barker_corr_th_min = 190,
  119. .barker_corr_th_min_mrc = 336,
  120. .nrg_th_cca = 62,
  121. };
  122. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  123. {
  124. if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES &&
  125. iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)
  126. priv->cfg->base_params->num_of_queues =
  127. iwlagn_mod_params.num_of_queues;
  128. hw_params(priv).max_txq_num = priv->cfg->base_params->num_of_queues;
  129. hw_params(priv).max_stations = IWLAGN_STATION_COUNT;
  130. priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
  131. hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE;
  132. hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE;
  133. hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  134. BIT(IEEE80211_BAND_5GHZ);
  135. hw_params(priv).tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  136. if (priv->cfg->rx_with_siso_diversity)
  137. hw_params(priv).rx_chains_num = 1;
  138. else
  139. hw_params(priv).rx_chains_num =
  140. num_of_ant(priv->cfg->valid_rx_ant);
  141. hw_params(priv).valid_tx_ant = priv->cfg->valid_tx_ant;
  142. hw_params(priv).valid_rx_ant = priv->cfg->valid_rx_ant;
  143. iwl6000_set_ct_threshold(priv);
  144. /* Set initial sensitivity parameters */
  145. /* Set initial calibration set */
  146. hw_params(priv).sens = &iwl6000_sensitivity;
  147. hw_params(priv).calib_init_cfg =
  148. BIT(IWL_CALIB_XTAL) |
  149. BIT(IWL_CALIB_LO) |
  150. BIT(IWL_CALIB_TX_IQ) |
  151. BIT(IWL_CALIB_BASE_BAND);
  152. if (priv->cfg->need_dc_calib)
  153. hw_params(priv).calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX;
  154. if (priv->cfg->need_temp_offset_calib)
  155. hw_params(priv).calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
  156. hw_params(priv).beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
  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. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  275. .adv_thermal_throttle = true,
  276. .support_ct_kill_exit = true,
  277. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  278. .chain_noise_scale = 1000,
  279. .wd_timeout = IWL_DEF_WD_TIMEOUT,
  280. .max_event_log_size = 512,
  281. .shadow_reg_enable = true,
  282. };
  283. static struct iwl_base_params iwl6050_base_params = {
  284. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  285. .num_of_queues = IWLAGN_NUM_QUEUES,
  286. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  287. .pll_cfg_val = 0,
  288. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  289. .shadow_ram_support = true,
  290. .led_compensation = 51,
  291. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  292. .adv_thermal_throttle = true,
  293. .support_ct_kill_exit = true,
  294. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  295. .chain_noise_scale = 1500,
  296. .wd_timeout = IWL_DEF_WD_TIMEOUT,
  297. .max_event_log_size = 1024,
  298. .shadow_reg_enable = true,
  299. };
  300. static struct iwl_base_params iwl6000_g2_base_params = {
  301. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  302. .num_of_queues = IWLAGN_NUM_QUEUES,
  303. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  304. .pll_cfg_val = 0,
  305. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  306. .shadow_ram_support = true,
  307. .led_compensation = 57,
  308. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  309. .adv_thermal_throttle = true,
  310. .support_ct_kill_exit = true,
  311. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  312. .chain_noise_scale = 1000,
  313. .wd_timeout = IWL_LONG_WD_TIMEOUT,
  314. .max_event_log_size = 512,
  315. .shadow_reg_enable = true,
  316. };
  317. static struct iwl_ht_params iwl6000_ht_params = {
  318. .ht_greenfield_support = true,
  319. .use_rts_for_aggregation = true, /* use rts/cts protection */
  320. };
  321. static struct iwl_bt_params iwl6000_bt_params = {
  322. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  323. .advanced_bt_coexist = true,
  324. .agg_time_limit = BT_AGG_THRESHOLD_DEF,
  325. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  326. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  327. .bt_sco_disable = true,
  328. };
  329. #define IWL_DEVICE_6005 \
  330. .fw_name_pre = IWL6005_FW_PRE, \
  331. .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
  332. .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
  333. .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
  334. .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
  335. .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
  336. .lib = &iwl6000_lib, \
  337. .base_params = &iwl6000_g2_base_params, \
  338. .need_dc_calib = true, \
  339. .need_temp_offset_calib = true, \
  340. .led_mode = IWL_LED_RF_STATE
  341. struct iwl_cfg iwl6005_2agn_cfg = {
  342. .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
  343. IWL_DEVICE_6005,
  344. .ht_params = &iwl6000_ht_params,
  345. };
  346. struct iwl_cfg iwl6005_2abg_cfg = {
  347. .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
  348. IWL_DEVICE_6005,
  349. };
  350. struct iwl_cfg iwl6005_2bg_cfg = {
  351. .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
  352. IWL_DEVICE_6005,
  353. };
  354. struct iwl_cfg iwl6005_2agn_sff_cfg = {
  355. .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
  356. IWL_DEVICE_6005,
  357. .ht_params = &iwl6000_ht_params,
  358. };
  359. #define IWL_DEVICE_6030 \
  360. .fw_name_pre = IWL6030_FW_PRE, \
  361. .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
  362. .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
  363. .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
  364. .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
  365. .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
  366. .lib = &iwl6030_lib, \
  367. .base_params = &iwl6000_g2_base_params, \
  368. .bt_params = &iwl6000_bt_params, \
  369. .need_dc_calib = true, \
  370. .need_temp_offset_calib = true, \
  371. .led_mode = IWL_LED_RF_STATE, \
  372. .adv_pm = true \
  373. struct iwl_cfg iwl6030_2agn_cfg = {
  374. .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
  375. IWL_DEVICE_6030,
  376. .ht_params = &iwl6000_ht_params,
  377. };
  378. struct iwl_cfg iwl6030_2abg_cfg = {
  379. .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
  380. IWL_DEVICE_6030,
  381. };
  382. struct iwl_cfg iwl6030_2bgn_cfg = {
  383. .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
  384. IWL_DEVICE_6030,
  385. .ht_params = &iwl6000_ht_params,
  386. };
  387. struct iwl_cfg iwl6030_2bg_cfg = {
  388. .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
  389. IWL_DEVICE_6030,
  390. };
  391. struct iwl_cfg iwl6035_2agn_cfg = {
  392. .name = "6035 Series 2x2 AGN/BT",
  393. IWL_DEVICE_6030,
  394. .ht_params = &iwl6000_ht_params,
  395. };
  396. struct iwl_cfg iwl6035_2abg_cfg = {
  397. .name = "6035 Series 2x2 ABG/BT",
  398. IWL_DEVICE_6030,
  399. };
  400. struct iwl_cfg iwl6035_2bg_cfg = {
  401. .name = "6035 Series 2x2 BG/BT",
  402. IWL_DEVICE_6030,
  403. };
  404. struct iwl_cfg iwl1030_bgn_cfg = {
  405. .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
  406. IWL_DEVICE_6030,
  407. .ht_params = &iwl6000_ht_params,
  408. };
  409. struct iwl_cfg iwl1030_bg_cfg = {
  410. .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
  411. IWL_DEVICE_6030,
  412. };
  413. struct iwl_cfg iwl130_bgn_cfg = {
  414. .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
  415. IWL_DEVICE_6030,
  416. .ht_params = &iwl6000_ht_params,
  417. .rx_with_siso_diversity = true,
  418. };
  419. struct iwl_cfg iwl130_bg_cfg = {
  420. .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
  421. IWL_DEVICE_6030,
  422. .rx_with_siso_diversity = true,
  423. };
  424. /*
  425. * "i": Internal configuration, use internal Power Amplifier
  426. */
  427. #define IWL_DEVICE_6000i \
  428. .fw_name_pre = IWL6000_FW_PRE, \
  429. .ucode_api_max = IWL6000_UCODE_API_MAX, \
  430. .ucode_api_min = IWL6000_UCODE_API_MIN, \
  431. .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
  432. .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
  433. .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
  434. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
  435. .lib = &iwl6000_lib, \
  436. .base_params = &iwl6000_base_params, \
  437. .pa_type = IWL_PA_INTERNAL, \
  438. .led_mode = IWL_LED_BLINK
  439. struct iwl_cfg iwl6000i_2agn_cfg = {
  440. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  441. IWL_DEVICE_6000i,
  442. .ht_params = &iwl6000_ht_params,
  443. };
  444. struct iwl_cfg iwl6000i_2abg_cfg = {
  445. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  446. IWL_DEVICE_6000i,
  447. };
  448. struct iwl_cfg iwl6000i_2bg_cfg = {
  449. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  450. IWL_DEVICE_6000i,
  451. };
  452. #define IWL_DEVICE_6050 \
  453. .fw_name_pre = IWL6050_FW_PRE, \
  454. .ucode_api_max = IWL6050_UCODE_API_MAX, \
  455. .ucode_api_min = IWL6050_UCODE_API_MIN, \
  456. .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
  457. .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
  458. .lib = &iwl6000_lib, \
  459. .additional_nic_config = iwl6050_additional_nic_config, \
  460. .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
  461. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
  462. .base_params = &iwl6050_base_params, \
  463. .need_dc_calib = true, \
  464. .led_mode = IWL_LED_BLINK, \
  465. .internal_wimax_coex = true
  466. struct iwl_cfg iwl6050_2agn_cfg = {
  467. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  468. IWL_DEVICE_6050,
  469. .ht_params = &iwl6000_ht_params,
  470. };
  471. struct iwl_cfg iwl6050_2abg_cfg = {
  472. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  473. IWL_DEVICE_6050,
  474. };
  475. #define IWL_DEVICE_6150 \
  476. .fw_name_pre = IWL6050_FW_PRE, \
  477. .ucode_api_max = IWL6050_UCODE_API_MAX, \
  478. .ucode_api_min = IWL6050_UCODE_API_MIN, \
  479. .lib = &iwl6000_lib, \
  480. .additional_nic_config = iwl6150_additional_nic_config, \
  481. .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \
  482. .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
  483. .base_params = &iwl6050_base_params, \
  484. .need_dc_calib = true, \
  485. .led_mode = IWL_LED_BLINK, \
  486. .internal_wimax_coex = true
  487. struct iwl_cfg iwl6150_bgn_cfg = {
  488. .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
  489. IWL_DEVICE_6150,
  490. .ht_params = &iwl6000_ht_params,
  491. };
  492. struct iwl_cfg iwl6150_bg_cfg = {
  493. .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
  494. IWL_DEVICE_6150,
  495. };
  496. struct iwl_cfg iwl6000_3agn_cfg = {
  497. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  498. .fw_name_pre = IWL6000_FW_PRE,
  499. .ucode_api_max = IWL6000_UCODE_API_MAX,
  500. .ucode_api_min = IWL6000_UCODE_API_MIN,
  501. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  502. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  503. .lib = &iwl6000_lib,
  504. .base_params = &iwl6000_base_params,
  505. .ht_params = &iwl6000_ht_params,
  506. .need_dc_calib = true,
  507. .led_mode = IWL_LED_BLINK,
  508. };
  509. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  510. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  511. MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  512. MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));