iwl-6000.c 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2008 - 2010 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/pci.h>
  30. #include <linux/dma-mapping.h>
  31. #include <linux/delay.h>
  32. #include <linux/skbuff.h>
  33. #include <linux/netdevice.h>
  34. #include <linux/wireless.h>
  35. #include <net/mac80211.h>
  36. #include <linux/etherdevice.h>
  37. #include <asm/unaligned.h>
  38. #include "iwl-eeprom.h"
  39. #include "iwl-dev.h"
  40. #include "iwl-core.h"
  41. #include "iwl-io.h"
  42. #include "iwl-sta.h"
  43. #include "iwl-agn.h"
  44. #include "iwl-helpers.h"
  45. #include "iwl-agn-hw.h"
  46. #include "iwl-6000-hw.h"
  47. #include "iwl-agn-led.h"
  48. #include "iwl-agn-debugfs.h"
  49. /* Highest firmware API version supported */
  50. #define IWL6000_UCODE_API_MAX 4
  51. #define IWL6050_UCODE_API_MAX 4
  52. #define IWL6000G2_UCODE_API_MAX 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 #api ".ucode"
  59. #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
  60. #define IWL6050_FW_PRE "iwlwifi-6050-"
  61. #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
  62. #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
  63. #define IWL6000G2A_FW_PRE "iwlwifi-6000g2a-"
  64. #define _IWL6000G2A_MODULE_FIRMWARE(api) IWL6000G2A_FW_PRE #api ".ucode"
  65. #define IWL6000G2A_MODULE_FIRMWARE(api) _IWL6000G2A_MODULE_FIRMWARE(api)
  66. #define IWL6000G2B_FW_PRE "iwlwifi-6000g2b-"
  67. #define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode"
  68. #define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api)
  69. static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
  70. {
  71. /* want Celsius */
  72. priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
  73. priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
  74. }
  75. /* Indicate calibration version to uCode. */
  76. static void iwl6000_set_calib_version(struct iwl_priv *priv)
  77. {
  78. if (priv->cfg->need_dc_calib &&
  79. (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6))
  80. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  81. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  82. }
  83. /* NIC configuration for 6000 series */
  84. static void iwl6000_nic_config(struct iwl_priv *priv)
  85. {
  86. u16 radio_cfg;
  87. radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
  88. /* write radio config values to register */
  89. if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
  90. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  91. EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
  92. EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
  93. EEPROM_RF_CFG_DASH_MSK(radio_cfg));
  94. /* set CSR_HW_CONFIG_REG for uCode use */
  95. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  96. CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
  97. CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
  98. /* no locking required for register write */
  99. if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
  100. /* 2x2 IPA phy type */
  101. iwl_write32(priv, CSR_GP_DRIVER_REG,
  102. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
  103. }
  104. /* else do nothing, uCode configured */
  105. if (priv->cfg->ops->lib->temp_ops.set_calib_version)
  106. priv->cfg->ops->lib->temp_ops.set_calib_version(priv);
  107. }
  108. static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
  109. .min_nrg_cck = 97,
  110. .max_nrg_cck = 0, /* not used, set to 0 */
  111. .auto_corr_min_ofdm = 80,
  112. .auto_corr_min_ofdm_mrc = 128,
  113. .auto_corr_min_ofdm_x1 = 105,
  114. .auto_corr_min_ofdm_mrc_x1 = 192,
  115. .auto_corr_max_ofdm = 145,
  116. .auto_corr_max_ofdm_mrc = 232,
  117. .auto_corr_max_ofdm_x1 = 110,
  118. .auto_corr_max_ofdm_mrc_x1 = 232,
  119. .auto_corr_min_cck = 125,
  120. .auto_corr_max_cck = 175,
  121. .auto_corr_min_cck_mrc = 160,
  122. .auto_corr_max_cck_mrc = 310,
  123. .nrg_th_cck = 97,
  124. .nrg_th_ofdm = 100,
  125. .barker_corr_th_min = 190,
  126. .barker_corr_th_min_mrc = 390,
  127. .nrg_th_cca = 62,
  128. };
  129. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  130. {
  131. if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
  132. priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
  133. priv->cfg->num_of_queues =
  134. priv->cfg->mod_params->num_of_queues;
  135. priv->hw_params.max_txq_num = priv->cfg->num_of_queues;
  136. priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
  137. priv->hw_params.scd_bc_tbls_size =
  138. priv->cfg->num_of_queues *
  139. sizeof(struct iwlagn_scd_bc_tbl);
  140. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  141. priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
  142. priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
  143. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  144. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  145. priv->hw_params.max_bsm_size = 0;
  146. priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  147. BIT(IEEE80211_BAND_5GHZ);
  148. priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
  149. priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  150. priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
  151. priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
  152. priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
  153. if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
  154. priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
  155. /* Set initial sensitivity parameters */
  156. /* Set initial calibration set */
  157. priv->hw_params.sens = &iwl6000_sensitivity;
  158. priv->hw_params.calib_init_cfg =
  159. BIT(IWL_CALIB_XTAL) |
  160. BIT(IWL_CALIB_LO) |
  161. BIT(IWL_CALIB_TX_IQ) |
  162. BIT(IWL_CALIB_BASE_BAND);
  163. if (priv->cfg->need_dc_calib)
  164. priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_DC);
  165. priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
  166. return 0;
  167. }
  168. static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
  169. struct ieee80211_channel_switch *ch_switch)
  170. {
  171. /*
  172. * MULTI-FIXME
  173. * See iwl_mac_channel_switch.
  174. */
  175. struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
  176. struct iwl6000_channel_switch_cmd cmd;
  177. const struct iwl_channel_info *ch_info;
  178. u32 switch_time_in_usec, ucode_switch_time;
  179. u16 ch;
  180. u32 tsf_low;
  181. u8 switch_count;
  182. u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
  183. struct ieee80211_vif *vif = priv->vif;
  184. struct iwl_host_cmd hcmd = {
  185. .id = REPLY_CHANNEL_SWITCH,
  186. .len = sizeof(cmd),
  187. .flags = CMD_SYNC,
  188. .data = &cmd,
  189. };
  190. cmd.band = priv->band == IEEE80211_BAND_2GHZ;
  191. ch = ch_switch->channel->hw_value;
  192. IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
  193. ctx->active.channel, ch);
  194. cmd.channel = cpu_to_le16(ch);
  195. cmd.rxon_flags = ctx->staging.flags;
  196. cmd.rxon_filter_flags = ctx->staging.filter_flags;
  197. switch_count = ch_switch->count;
  198. tsf_low = ch_switch->timestamp & 0x0ffffffff;
  199. /*
  200. * calculate the ucode channel switch time
  201. * adding TSF as one of the factor for when to switch
  202. */
  203. if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
  204. if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
  205. beacon_interval)) {
  206. switch_count -= (priv->ucode_beacon_time -
  207. tsf_low) / beacon_interval;
  208. } else
  209. switch_count = 0;
  210. }
  211. if (switch_count <= 1)
  212. cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
  213. else {
  214. switch_time_in_usec =
  215. vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
  216. ucode_switch_time = iwl_usecs_to_beacons(priv,
  217. switch_time_in_usec,
  218. beacon_interval);
  219. cmd.switch_time = iwl_add_beacon_time(priv,
  220. priv->ucode_beacon_time,
  221. ucode_switch_time,
  222. beacon_interval);
  223. }
  224. IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
  225. cmd.switch_time);
  226. ch_info = iwl_get_channel_info(priv, priv->band, ch);
  227. if (ch_info)
  228. cmd.expect_beacon = is_channel_radar(ch_info);
  229. else {
  230. IWL_ERR(priv, "invalid channel switch from %u to %u\n",
  231. ctx->active.channel, ch);
  232. return -EFAULT;
  233. }
  234. priv->switch_rxon.channel = cmd.channel;
  235. priv->switch_rxon.switch_in_progress = true;
  236. return iwl_send_cmd_sync(priv, &hcmd);
  237. }
  238. static struct iwl_lib_ops iwl6000_lib = {
  239. .set_hw_params = iwl6000_hw_set_hw_params,
  240. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  241. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  242. .txq_set_sched = iwlagn_txq_set_sched,
  243. .txq_agg_enable = iwlagn_txq_agg_enable,
  244. .txq_agg_disable = iwlagn_txq_agg_disable,
  245. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  246. .txq_free_tfd = iwl_hw_txq_free_tfd,
  247. .txq_init = iwl_hw_tx_queue_init,
  248. .rx_handler_setup = iwlagn_rx_handler_setup,
  249. .setup_deferred_work = iwlagn_setup_deferred_work,
  250. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  251. .load_ucode = iwlagn_load_ucode,
  252. .dump_nic_event_log = iwl_dump_nic_event_log,
  253. .dump_nic_error_log = iwl_dump_nic_error_log,
  254. .dump_csr = iwl_dump_csr,
  255. .dump_fh = iwl_dump_fh,
  256. .init_alive_start = iwlagn_init_alive_start,
  257. .alive_notify = iwlagn_alive_notify,
  258. .send_tx_power = iwlagn_send_tx_power,
  259. .update_chain_flags = iwl_update_chain_flags,
  260. .set_channel_switch = iwl6000_hw_channel_switch,
  261. .apm_ops = {
  262. .init = iwl_apm_init,
  263. .stop = iwl_apm_stop,
  264. .config = iwl6000_nic_config,
  265. .set_pwr_src = iwl_set_pwr_src,
  266. },
  267. .eeprom_ops = {
  268. .regulatory_bands = {
  269. EEPROM_REG_BAND_1_CHANNELS,
  270. EEPROM_REG_BAND_2_CHANNELS,
  271. EEPROM_REG_BAND_3_CHANNELS,
  272. EEPROM_REG_BAND_4_CHANNELS,
  273. EEPROM_REG_BAND_5_CHANNELS,
  274. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  275. EEPROM_REG_BAND_52_HT40_CHANNELS
  276. },
  277. .verify_signature = iwlcore_eeprom_verify_signature,
  278. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  279. .release_semaphore = iwlcore_eeprom_release_semaphore,
  280. .calib_version = iwlagn_eeprom_calib_version,
  281. .query_addr = iwlagn_eeprom_query_addr,
  282. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  283. },
  284. .post_associate = iwl_post_associate,
  285. .isr = iwl_isr_ict,
  286. .config_ap = iwl_config_ap,
  287. .temp_ops = {
  288. .temperature = iwlagn_temperature,
  289. .set_ct_kill = iwl6000_set_ct_threshold,
  290. .set_calib_version = iwl6000_set_calib_version,
  291. },
  292. .manage_ibss_station = iwlagn_manage_ibss_station,
  293. .update_bcast_stations = iwl_update_bcast_stations,
  294. .debugfs_ops = {
  295. .rx_stats_read = iwl_ucode_rx_stats_read,
  296. .tx_stats_read = iwl_ucode_tx_stats_read,
  297. .general_stats_read = iwl_ucode_general_stats_read,
  298. .bt_stats_read = iwl_ucode_bt_stats_read,
  299. },
  300. .recover_from_tx_stall = iwl_bg_monitor_recover,
  301. .check_plcp_health = iwl_good_plcp_health,
  302. .check_ack_health = iwl_good_ack_health,
  303. .txfifo_flush = iwlagn_txfifo_flush,
  304. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  305. .tt_ops = {
  306. .lower_power_detection = iwl_tt_is_low_power_state,
  307. .tt_power_mode = iwl_tt_current_power_mode,
  308. .ct_kill_check = iwl_check_for_ct_kill,
  309. }
  310. };
  311. static struct iwl_lib_ops iwl6000g2b_lib = {
  312. .set_hw_params = iwl6000_hw_set_hw_params,
  313. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  314. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  315. .txq_set_sched = iwlagn_txq_set_sched,
  316. .txq_agg_enable = iwlagn_txq_agg_enable,
  317. .txq_agg_disable = iwlagn_txq_agg_disable,
  318. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  319. .txq_free_tfd = iwl_hw_txq_free_tfd,
  320. .txq_init = iwl_hw_tx_queue_init,
  321. .rx_handler_setup = iwlagn_bt_rx_handler_setup,
  322. .setup_deferred_work = iwlagn_bt_setup_deferred_work,
  323. .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
  324. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  325. .load_ucode = iwlagn_load_ucode,
  326. .dump_nic_event_log = iwl_dump_nic_event_log,
  327. .dump_nic_error_log = iwl_dump_nic_error_log,
  328. .dump_csr = iwl_dump_csr,
  329. .dump_fh = iwl_dump_fh,
  330. .init_alive_start = iwlagn_init_alive_start,
  331. .alive_notify = iwlagn_alive_notify,
  332. .send_tx_power = iwlagn_send_tx_power,
  333. .update_chain_flags = iwl_update_chain_flags,
  334. .set_channel_switch = iwl6000_hw_channel_switch,
  335. .apm_ops = {
  336. .init = iwl_apm_init,
  337. .stop = iwl_apm_stop,
  338. .config = iwl6000_nic_config,
  339. .set_pwr_src = iwl_set_pwr_src,
  340. },
  341. .eeprom_ops = {
  342. .regulatory_bands = {
  343. EEPROM_REG_BAND_1_CHANNELS,
  344. EEPROM_REG_BAND_2_CHANNELS,
  345. EEPROM_REG_BAND_3_CHANNELS,
  346. EEPROM_REG_BAND_4_CHANNELS,
  347. EEPROM_REG_BAND_5_CHANNELS,
  348. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  349. EEPROM_REG_BAND_52_HT40_CHANNELS
  350. },
  351. .verify_signature = iwlcore_eeprom_verify_signature,
  352. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  353. .release_semaphore = iwlcore_eeprom_release_semaphore,
  354. .calib_version = iwlagn_eeprom_calib_version,
  355. .query_addr = iwlagn_eeprom_query_addr,
  356. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  357. },
  358. .post_associate = iwl_post_associate,
  359. .isr = iwl_isr_ict,
  360. .config_ap = iwl_config_ap,
  361. .temp_ops = {
  362. .temperature = iwlagn_temperature,
  363. .set_ct_kill = iwl6000_set_ct_threshold,
  364. .set_calib_version = iwl6000_set_calib_version,
  365. },
  366. .manage_ibss_station = iwlagn_manage_ibss_station,
  367. .update_bcast_stations = iwl_update_bcast_stations,
  368. .debugfs_ops = {
  369. .rx_stats_read = iwl_ucode_rx_stats_read,
  370. .tx_stats_read = iwl_ucode_tx_stats_read,
  371. .general_stats_read = iwl_ucode_general_stats_read,
  372. .bt_stats_read = iwl_ucode_bt_stats_read,
  373. },
  374. .recover_from_tx_stall = iwl_bg_monitor_recover,
  375. .check_plcp_health = iwl_good_plcp_health,
  376. .check_ack_health = iwl_good_ack_health,
  377. .txfifo_flush = iwlagn_txfifo_flush,
  378. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  379. .tt_ops = {
  380. .lower_power_detection = iwl_tt_is_low_power_state,
  381. .tt_power_mode = iwl_tt_current_power_mode,
  382. .ct_kill_check = iwl_check_for_ct_kill,
  383. }
  384. };
  385. static const struct iwl_ops iwl6000_ops = {
  386. .lib = &iwl6000_lib,
  387. .hcmd = &iwlagn_hcmd,
  388. .utils = &iwlagn_hcmd_utils,
  389. .led = &iwlagn_led_ops,
  390. };
  391. static const struct iwl_ops iwl6000g2b_ops = {
  392. .lib = &iwl6000g2b_lib,
  393. .hcmd = &iwlagn_bt_hcmd,
  394. .utils = &iwlagn_hcmd_utils,
  395. .led = &iwlagn_led_ops,
  396. };
  397. struct iwl_cfg iwl6000g2a_2agn_cfg = {
  398. .name = "6000 Series 2x2 AGN Gen2a",
  399. .fw_name_pre = IWL6000G2A_FW_PRE,
  400. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  401. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  402. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  403. .ops = &iwl6000_ops,
  404. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  405. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  406. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  407. .num_of_queues = IWLAGN_NUM_QUEUES,
  408. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  409. .mod_params = &iwlagn_mod_params,
  410. .valid_tx_ant = ANT_AB,
  411. .valid_rx_ant = ANT_AB,
  412. .pll_cfg_val = 0,
  413. .set_l0s = true,
  414. .use_bsm = false,
  415. .pa_type = IWL_PA_SYSTEM,
  416. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  417. .shadow_ram_support = true,
  418. .ht_greenfield_support = true,
  419. .led_compensation = 51,
  420. .use_rts_for_aggregation = true, /* use rts/cts protection */
  421. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  422. .supports_idle = true,
  423. .adv_thermal_throttle = true,
  424. .support_ct_kill_exit = true,
  425. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  426. .chain_noise_scale = 1000,
  427. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  428. .max_event_log_size = 512,
  429. .ucode_tracing = true,
  430. .sensitivity_calib_by_driver = true,
  431. .chain_noise_calib_by_driver = true,
  432. .need_dc_calib = true,
  433. };
  434. struct iwl_cfg iwl6000g2a_2abg_cfg = {
  435. .name = "6000 Series 2x2 ABG Gen2a",
  436. .fw_name_pre = IWL6000G2A_FW_PRE,
  437. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  438. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  439. .sku = IWL_SKU_A|IWL_SKU_G,
  440. .ops = &iwl6000_ops,
  441. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  442. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  443. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  444. .num_of_queues = IWLAGN_NUM_QUEUES,
  445. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  446. .mod_params = &iwlagn_mod_params,
  447. .valid_tx_ant = ANT_AB,
  448. .valid_rx_ant = ANT_AB,
  449. .pll_cfg_val = 0,
  450. .set_l0s = true,
  451. .use_bsm = false,
  452. .pa_type = IWL_PA_SYSTEM,
  453. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  454. .shadow_ram_support = true,
  455. .led_compensation = 51,
  456. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  457. .supports_idle = true,
  458. .adv_thermal_throttle = true,
  459. .support_ct_kill_exit = true,
  460. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  461. .chain_noise_scale = 1000,
  462. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  463. .max_event_log_size = 512,
  464. .sensitivity_calib_by_driver = true,
  465. .chain_noise_calib_by_driver = true,
  466. .need_dc_calib = true,
  467. };
  468. struct iwl_cfg iwl6000g2a_2bg_cfg = {
  469. .name = "6000 Series 2x2 BG Gen2a",
  470. .fw_name_pre = IWL6000G2A_FW_PRE,
  471. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  472. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  473. .sku = IWL_SKU_G,
  474. .ops = &iwl6000_ops,
  475. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  476. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  477. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  478. .num_of_queues = IWLAGN_NUM_QUEUES,
  479. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  480. .mod_params = &iwlagn_mod_params,
  481. .valid_tx_ant = ANT_AB,
  482. .valid_rx_ant = ANT_AB,
  483. .pll_cfg_val = 0,
  484. .set_l0s = true,
  485. .use_bsm = false,
  486. .pa_type = IWL_PA_SYSTEM,
  487. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  488. .shadow_ram_support = true,
  489. .led_compensation = 51,
  490. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  491. .supports_idle = true,
  492. .adv_thermal_throttle = true,
  493. .support_ct_kill_exit = true,
  494. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  495. .chain_noise_scale = 1000,
  496. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  497. .max_event_log_size = 512,
  498. .sensitivity_calib_by_driver = true,
  499. .chain_noise_calib_by_driver = true,
  500. .need_dc_calib = true,
  501. };
  502. struct iwl_cfg iwl6000g2b_2agn_cfg = {
  503. .name = "6000 Series 2x2 AGN Gen2b",
  504. .fw_name_pre = IWL6000G2B_FW_PRE,
  505. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  506. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  507. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  508. .ops = &iwl6000g2b_ops,
  509. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  510. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  511. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  512. .num_of_queues = IWLAGN_NUM_QUEUES,
  513. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  514. .mod_params = &iwlagn_mod_params,
  515. .valid_tx_ant = ANT_AB,
  516. .valid_rx_ant = ANT_AB,
  517. .pll_cfg_val = 0,
  518. .set_l0s = true,
  519. .use_bsm = false,
  520. .pa_type = IWL_PA_SYSTEM,
  521. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  522. .shadow_ram_support = true,
  523. .ht_greenfield_support = true,
  524. .led_compensation = 51,
  525. .use_rts_for_aggregation = true, /* use rts/cts protection */
  526. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  527. .supports_idle = true,
  528. .adv_thermal_throttle = true,
  529. .support_ct_kill_exit = true,
  530. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  531. .chain_noise_scale = 1000,
  532. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  533. .max_event_log_size = 512,
  534. .sensitivity_calib_by_driver = true,
  535. .chain_noise_calib_by_driver = true,
  536. .need_dc_calib = true,
  537. .bt_statistics = true,
  538. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  539. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  540. .advanced_bt_coexist = true,
  541. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  542. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  543. };
  544. struct iwl_cfg iwl6000g2b_2abg_cfg = {
  545. .name = "6000 Series 2x2 ABG Gen2b",
  546. .fw_name_pre = IWL6000G2B_FW_PRE,
  547. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  548. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  549. .sku = IWL_SKU_A|IWL_SKU_G,
  550. .ops = &iwl6000g2b_ops,
  551. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  552. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  553. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  554. .num_of_queues = IWLAGN_NUM_QUEUES,
  555. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  556. .mod_params = &iwlagn_mod_params,
  557. .valid_tx_ant = ANT_AB,
  558. .valid_rx_ant = ANT_AB,
  559. .pll_cfg_val = 0,
  560. .set_l0s = true,
  561. .use_bsm = false,
  562. .pa_type = IWL_PA_SYSTEM,
  563. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  564. .shadow_ram_support = true,
  565. .led_compensation = 51,
  566. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  567. .supports_idle = true,
  568. .adv_thermal_throttle = true,
  569. .support_ct_kill_exit = true,
  570. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  571. .chain_noise_scale = 1000,
  572. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  573. .max_event_log_size = 512,
  574. .sensitivity_calib_by_driver = true,
  575. .chain_noise_calib_by_driver = true,
  576. .need_dc_calib = true,
  577. .bt_statistics = true,
  578. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  579. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  580. .advanced_bt_coexist = true,
  581. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  582. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  583. };
  584. struct iwl_cfg iwl6000g2b_2bgn_cfg = {
  585. .name = "6000 Series 2x2 BGN Gen2b",
  586. .fw_name_pre = IWL6000G2B_FW_PRE,
  587. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  588. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  589. .sku = IWL_SKU_G|IWL_SKU_N,
  590. .ops = &iwl6000g2b_ops,
  591. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  592. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  593. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  594. .num_of_queues = IWLAGN_NUM_QUEUES,
  595. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  596. .mod_params = &iwlagn_mod_params,
  597. .valid_tx_ant = ANT_AB,
  598. .valid_rx_ant = ANT_AB,
  599. .pll_cfg_val = 0,
  600. .set_l0s = true,
  601. .use_bsm = false,
  602. .pa_type = IWL_PA_SYSTEM,
  603. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  604. .shadow_ram_support = true,
  605. .ht_greenfield_support = true,
  606. .led_compensation = 51,
  607. .use_rts_for_aggregation = true, /* use rts/cts protection */
  608. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  609. .supports_idle = true,
  610. .adv_thermal_throttle = true,
  611. .support_ct_kill_exit = true,
  612. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  613. .chain_noise_scale = 1000,
  614. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  615. .max_event_log_size = 512,
  616. .sensitivity_calib_by_driver = true,
  617. .chain_noise_calib_by_driver = true,
  618. .need_dc_calib = true,
  619. .bt_statistics = true,
  620. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  621. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  622. .advanced_bt_coexist = true,
  623. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  624. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  625. };
  626. struct iwl_cfg iwl6000g2b_2bg_cfg = {
  627. .name = "6000 Series 2x2 BG Gen2b",
  628. .fw_name_pre = IWL6000G2B_FW_PRE,
  629. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  630. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  631. .sku = IWL_SKU_G,
  632. .ops = &iwl6000g2b_ops,
  633. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  634. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  635. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  636. .num_of_queues = IWLAGN_NUM_QUEUES,
  637. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  638. .mod_params = &iwlagn_mod_params,
  639. .valid_tx_ant = ANT_AB,
  640. .valid_rx_ant = ANT_AB,
  641. .pll_cfg_val = 0,
  642. .set_l0s = true,
  643. .use_bsm = false,
  644. .pa_type = IWL_PA_SYSTEM,
  645. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  646. .shadow_ram_support = true,
  647. .led_compensation = 51,
  648. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  649. .supports_idle = true,
  650. .adv_thermal_throttle = true,
  651. .support_ct_kill_exit = true,
  652. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  653. .chain_noise_scale = 1000,
  654. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  655. .max_event_log_size = 512,
  656. .sensitivity_calib_by_driver = true,
  657. .chain_noise_calib_by_driver = true,
  658. .need_dc_calib = true,
  659. .bt_statistics = true,
  660. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  661. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  662. .advanced_bt_coexist = true,
  663. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  664. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  665. };
  666. struct iwl_cfg iwl6000g2b_bgn_cfg = {
  667. .name = "6000 Series 1x2 BGN Gen2b",
  668. .fw_name_pre = IWL6000G2B_FW_PRE,
  669. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  670. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  671. .sku = IWL_SKU_G|IWL_SKU_N,
  672. .ops = &iwl6000g2b_ops,
  673. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  674. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  675. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  676. .num_of_queues = IWLAGN_NUM_QUEUES,
  677. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  678. .mod_params = &iwlagn_mod_params,
  679. .valid_tx_ant = ANT_A,
  680. .valid_rx_ant = ANT_AB,
  681. .pll_cfg_val = 0,
  682. .set_l0s = true,
  683. .use_bsm = false,
  684. .pa_type = IWL_PA_SYSTEM,
  685. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  686. .shadow_ram_support = true,
  687. .ht_greenfield_support = true,
  688. .led_compensation = 51,
  689. .use_rts_for_aggregation = true, /* use rts/cts protection */
  690. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  691. .supports_idle = true,
  692. .adv_thermal_throttle = true,
  693. .support_ct_kill_exit = true,
  694. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  695. .chain_noise_scale = 1000,
  696. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  697. .max_event_log_size = 512,
  698. .sensitivity_calib_by_driver = true,
  699. .chain_noise_calib_by_driver = true,
  700. .need_dc_calib = true,
  701. .bt_statistics = true,
  702. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  703. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  704. .advanced_bt_coexist = true,
  705. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  706. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  707. };
  708. struct iwl_cfg iwl6000g2b_bg_cfg = {
  709. .name = "6000 Series 1x2 BG Gen2b",
  710. .fw_name_pre = IWL6000G2B_FW_PRE,
  711. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  712. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  713. .sku = IWL_SKU_G,
  714. .ops = &iwl6000g2b_ops,
  715. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  716. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  717. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  718. .num_of_queues = IWLAGN_NUM_QUEUES,
  719. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  720. .mod_params = &iwlagn_mod_params,
  721. .valid_tx_ant = ANT_A,
  722. .valid_rx_ant = ANT_AB,
  723. .pll_cfg_val = 0,
  724. .set_l0s = true,
  725. .use_bsm = false,
  726. .pa_type = IWL_PA_SYSTEM,
  727. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  728. .shadow_ram_support = true,
  729. .led_compensation = 51,
  730. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  731. .supports_idle = true,
  732. .adv_thermal_throttle = true,
  733. .support_ct_kill_exit = true,
  734. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  735. .chain_noise_scale = 1000,
  736. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  737. .max_event_log_size = 512,
  738. .sensitivity_calib_by_driver = true,
  739. .chain_noise_calib_by_driver = true,
  740. .need_dc_calib = true,
  741. .bt_statistics = true,
  742. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  743. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  744. .advanced_bt_coexist = true,
  745. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  746. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  747. };
  748. /*
  749. * "i": Internal configuration, use internal Power Amplifier
  750. */
  751. struct iwl_cfg iwl6000i_2agn_cfg = {
  752. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  753. .fw_name_pre = IWL6000_FW_PRE,
  754. .ucode_api_max = IWL6000_UCODE_API_MAX,
  755. .ucode_api_min = IWL6000_UCODE_API_MIN,
  756. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  757. .ops = &iwl6000_ops,
  758. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  759. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  760. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  761. .num_of_queues = IWLAGN_NUM_QUEUES,
  762. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  763. .mod_params = &iwlagn_mod_params,
  764. .valid_tx_ant = ANT_BC,
  765. .valid_rx_ant = ANT_BC,
  766. .pll_cfg_val = 0,
  767. .set_l0s = true,
  768. .use_bsm = false,
  769. .pa_type = IWL_PA_INTERNAL,
  770. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  771. .shadow_ram_support = true,
  772. .ht_greenfield_support = true,
  773. .led_compensation = 51,
  774. .use_rts_for_aggregation = true, /* use rts/cts protection */
  775. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  776. .supports_idle = true,
  777. .adv_thermal_throttle = true,
  778. .support_ct_kill_exit = true,
  779. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  780. .chain_noise_scale = 1000,
  781. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  782. .max_event_log_size = 1024,
  783. .ucode_tracing = true,
  784. .sensitivity_calib_by_driver = true,
  785. .chain_noise_calib_by_driver = true,
  786. };
  787. struct iwl_cfg iwl6000i_2abg_cfg = {
  788. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  789. .fw_name_pre = IWL6000_FW_PRE,
  790. .ucode_api_max = IWL6000_UCODE_API_MAX,
  791. .ucode_api_min = IWL6000_UCODE_API_MIN,
  792. .sku = IWL_SKU_A|IWL_SKU_G,
  793. .ops = &iwl6000_ops,
  794. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  795. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  796. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  797. .num_of_queues = IWLAGN_NUM_QUEUES,
  798. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  799. .mod_params = &iwlagn_mod_params,
  800. .valid_tx_ant = ANT_BC,
  801. .valid_rx_ant = ANT_BC,
  802. .pll_cfg_val = 0,
  803. .set_l0s = true,
  804. .use_bsm = false,
  805. .pa_type = IWL_PA_INTERNAL,
  806. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  807. .shadow_ram_support = true,
  808. .led_compensation = 51,
  809. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  810. .supports_idle = true,
  811. .adv_thermal_throttle = true,
  812. .support_ct_kill_exit = true,
  813. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  814. .chain_noise_scale = 1000,
  815. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  816. .max_event_log_size = 1024,
  817. .ucode_tracing = true,
  818. .sensitivity_calib_by_driver = true,
  819. .chain_noise_calib_by_driver = true,
  820. };
  821. struct iwl_cfg iwl6000i_2bg_cfg = {
  822. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  823. .fw_name_pre = IWL6000_FW_PRE,
  824. .ucode_api_max = IWL6000_UCODE_API_MAX,
  825. .ucode_api_min = IWL6000_UCODE_API_MIN,
  826. .sku = IWL_SKU_G,
  827. .ops = &iwl6000_ops,
  828. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  829. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  830. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  831. .num_of_queues = IWLAGN_NUM_QUEUES,
  832. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  833. .mod_params = &iwlagn_mod_params,
  834. .valid_tx_ant = ANT_BC,
  835. .valid_rx_ant = ANT_BC,
  836. .pll_cfg_val = 0,
  837. .set_l0s = true,
  838. .use_bsm = false,
  839. .pa_type = IWL_PA_INTERNAL,
  840. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  841. .shadow_ram_support = true,
  842. .led_compensation = 51,
  843. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  844. .supports_idle = true,
  845. .adv_thermal_throttle = true,
  846. .support_ct_kill_exit = true,
  847. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  848. .chain_noise_scale = 1000,
  849. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  850. .max_event_log_size = 1024,
  851. .ucode_tracing = true,
  852. .sensitivity_calib_by_driver = true,
  853. .chain_noise_calib_by_driver = true,
  854. };
  855. struct iwl_cfg iwl6050_2agn_cfg = {
  856. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  857. .fw_name_pre = IWL6050_FW_PRE,
  858. .ucode_api_max = IWL6050_UCODE_API_MAX,
  859. .ucode_api_min = IWL6050_UCODE_API_MIN,
  860. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  861. .ops = &iwl6000_ops,
  862. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  863. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  864. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  865. .num_of_queues = IWLAGN_NUM_QUEUES,
  866. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  867. .mod_params = &iwlagn_mod_params,
  868. .valid_tx_ant = ANT_AB,
  869. .valid_rx_ant = ANT_AB,
  870. .pll_cfg_val = 0,
  871. .set_l0s = true,
  872. .use_bsm = false,
  873. .pa_type = IWL_PA_SYSTEM,
  874. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  875. .shadow_ram_support = true,
  876. .ht_greenfield_support = true,
  877. .led_compensation = 51,
  878. .use_rts_for_aggregation = true, /* use rts/cts protection */
  879. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  880. .supports_idle = true,
  881. .adv_thermal_throttle = true,
  882. .support_ct_kill_exit = true,
  883. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  884. .chain_noise_scale = 1500,
  885. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  886. .max_event_log_size = 1024,
  887. .ucode_tracing = true,
  888. .sensitivity_calib_by_driver = true,
  889. .chain_noise_calib_by_driver = true,
  890. .need_dc_calib = true,
  891. };
  892. struct iwl_cfg iwl6050g2_bgn_cfg = {
  893. .name = "6050 Series 1x2 BGN Gen2",
  894. .fw_name_pre = IWL6050_FW_PRE,
  895. .ucode_api_max = IWL6050_UCODE_API_MAX,
  896. .ucode_api_min = IWL6050_UCODE_API_MIN,
  897. .sku = IWL_SKU_G|IWL_SKU_N,
  898. .ops = &iwl6000_ops,
  899. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  900. .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
  901. .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
  902. .num_of_queues = IWLAGN_NUM_QUEUES,
  903. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  904. .mod_params = &iwlagn_mod_params,
  905. .valid_tx_ant = ANT_A,
  906. .valid_rx_ant = ANT_AB,
  907. .pll_cfg_val = 0,
  908. .set_l0s = true,
  909. .use_bsm = false,
  910. .pa_type = IWL_PA_SYSTEM,
  911. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  912. .shadow_ram_support = true,
  913. .ht_greenfield_support = true,
  914. .led_compensation = 51,
  915. .use_rts_for_aggregation = true, /* use rts/cts protection */
  916. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  917. .supports_idle = true,
  918. .adv_thermal_throttle = true,
  919. .support_ct_kill_exit = true,
  920. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  921. .chain_noise_scale = 1500,
  922. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  923. .max_event_log_size = 1024,
  924. .ucode_tracing = true,
  925. .sensitivity_calib_by_driver = true,
  926. .chain_noise_calib_by_driver = true,
  927. .need_dc_calib = true,
  928. };
  929. struct iwl_cfg iwl6050_2abg_cfg = {
  930. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  931. .fw_name_pre = IWL6050_FW_PRE,
  932. .ucode_api_max = IWL6050_UCODE_API_MAX,
  933. .ucode_api_min = IWL6050_UCODE_API_MIN,
  934. .sku = IWL_SKU_A|IWL_SKU_G,
  935. .ops = &iwl6000_ops,
  936. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  937. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  938. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  939. .num_of_queues = IWLAGN_NUM_QUEUES,
  940. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  941. .mod_params = &iwlagn_mod_params,
  942. .valid_tx_ant = ANT_AB,
  943. .valid_rx_ant = ANT_AB,
  944. .pll_cfg_val = 0,
  945. .set_l0s = true,
  946. .use_bsm = false,
  947. .pa_type = IWL_PA_SYSTEM,
  948. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  949. .shadow_ram_support = true,
  950. .led_compensation = 51,
  951. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  952. .supports_idle = true,
  953. .adv_thermal_throttle = true,
  954. .support_ct_kill_exit = true,
  955. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  956. .chain_noise_scale = 1500,
  957. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  958. .max_event_log_size = 1024,
  959. .ucode_tracing = true,
  960. .sensitivity_calib_by_driver = true,
  961. .chain_noise_calib_by_driver = true,
  962. .need_dc_calib = true,
  963. };
  964. struct iwl_cfg iwl6000_3agn_cfg = {
  965. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  966. .fw_name_pre = IWL6000_FW_PRE,
  967. .ucode_api_max = IWL6000_UCODE_API_MAX,
  968. .ucode_api_min = IWL6000_UCODE_API_MIN,
  969. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  970. .ops = &iwl6000_ops,
  971. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  972. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  973. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  974. .num_of_queues = IWLAGN_NUM_QUEUES,
  975. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  976. .mod_params = &iwlagn_mod_params,
  977. .valid_tx_ant = ANT_ABC,
  978. .valid_rx_ant = ANT_ABC,
  979. .pll_cfg_val = 0,
  980. .set_l0s = true,
  981. .use_bsm = false,
  982. .pa_type = IWL_PA_SYSTEM,
  983. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  984. .shadow_ram_support = true,
  985. .ht_greenfield_support = true,
  986. .led_compensation = 51,
  987. .use_rts_for_aggregation = true, /* use rts/cts protection */
  988. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  989. .supports_idle = true,
  990. .adv_thermal_throttle = true,
  991. .support_ct_kill_exit = true,
  992. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  993. .chain_noise_scale = 1000,
  994. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  995. .max_event_log_size = 1024,
  996. .ucode_tracing = true,
  997. .sensitivity_calib_by_driver = true,
  998. .chain_noise_calib_by_driver = true,
  999. };
  1000. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  1001. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  1002. MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  1003. MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));