iwl-6000.c 18 KB

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