iwl-6000.c 32 KB

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