iwl-6000.c 17 KB

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