iwl-6000.c 17 KB

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