iwl-6000.c 17 KB

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