iwl-6000.c 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058
  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 = ctx->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. .reply_tx_error = iwl_reply_tx_error_read,
  300. },
  301. .recover_from_tx_stall = iwl_bg_monitor_recover,
  302. .check_plcp_health = iwl_good_plcp_health,
  303. .check_ack_health = iwl_good_ack_health,
  304. .txfifo_flush = iwlagn_txfifo_flush,
  305. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  306. .tt_ops = {
  307. .lower_power_detection = iwl_tt_is_low_power_state,
  308. .tt_power_mode = iwl_tt_current_power_mode,
  309. .ct_kill_check = iwl_check_for_ct_kill,
  310. }
  311. };
  312. static struct iwl_lib_ops iwl6000g2b_lib = {
  313. .set_hw_params = iwl6000_hw_set_hw_params,
  314. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  315. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  316. .txq_set_sched = iwlagn_txq_set_sched,
  317. .txq_agg_enable = iwlagn_txq_agg_enable,
  318. .txq_agg_disable = iwlagn_txq_agg_disable,
  319. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  320. .txq_free_tfd = iwl_hw_txq_free_tfd,
  321. .txq_init = iwl_hw_tx_queue_init,
  322. .rx_handler_setup = iwlagn_bt_rx_handler_setup,
  323. .setup_deferred_work = iwlagn_bt_setup_deferred_work,
  324. .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
  325. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  326. .load_ucode = iwlagn_load_ucode,
  327. .dump_nic_event_log = iwl_dump_nic_event_log,
  328. .dump_nic_error_log = iwl_dump_nic_error_log,
  329. .dump_csr = iwl_dump_csr,
  330. .dump_fh = iwl_dump_fh,
  331. .init_alive_start = iwlagn_init_alive_start,
  332. .alive_notify = iwlagn_alive_notify,
  333. .send_tx_power = iwlagn_send_tx_power,
  334. .update_chain_flags = iwl_update_chain_flags,
  335. .set_channel_switch = iwl6000_hw_channel_switch,
  336. .apm_ops = {
  337. .init = iwl_apm_init,
  338. .stop = iwl_apm_stop,
  339. .config = iwl6000_nic_config,
  340. .set_pwr_src = iwl_set_pwr_src,
  341. },
  342. .eeprom_ops = {
  343. .regulatory_bands = {
  344. EEPROM_REG_BAND_1_CHANNELS,
  345. EEPROM_REG_BAND_2_CHANNELS,
  346. EEPROM_REG_BAND_3_CHANNELS,
  347. EEPROM_REG_BAND_4_CHANNELS,
  348. EEPROM_REG_BAND_5_CHANNELS,
  349. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  350. EEPROM_REG_BAND_52_HT40_CHANNELS
  351. },
  352. .verify_signature = iwlcore_eeprom_verify_signature,
  353. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  354. .release_semaphore = iwlcore_eeprom_release_semaphore,
  355. .calib_version = iwlagn_eeprom_calib_version,
  356. .query_addr = iwlagn_eeprom_query_addr,
  357. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  358. },
  359. .post_associate = iwl_post_associate,
  360. .isr = iwl_isr_ict,
  361. .config_ap = iwl_config_ap,
  362. .temp_ops = {
  363. .temperature = iwlagn_temperature,
  364. .set_ct_kill = iwl6000_set_ct_threshold,
  365. .set_calib_version = iwl6000_set_calib_version,
  366. },
  367. .manage_ibss_station = iwlagn_manage_ibss_station,
  368. .update_bcast_stations = iwl_update_bcast_stations,
  369. .debugfs_ops = {
  370. .rx_stats_read = iwl_ucode_rx_stats_read,
  371. .tx_stats_read = iwl_ucode_tx_stats_read,
  372. .general_stats_read = iwl_ucode_general_stats_read,
  373. .bt_stats_read = iwl_ucode_bt_stats_read,
  374. .reply_tx_error = iwl_reply_tx_error_read,
  375. },
  376. .recover_from_tx_stall = iwl_bg_monitor_recover,
  377. .check_plcp_health = iwl_good_plcp_health,
  378. .check_ack_health = iwl_good_ack_health,
  379. .txfifo_flush = iwlagn_txfifo_flush,
  380. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  381. .tt_ops = {
  382. .lower_power_detection = iwl_tt_is_low_power_state,
  383. .tt_power_mode = iwl_tt_current_power_mode,
  384. .ct_kill_check = iwl_check_for_ct_kill,
  385. }
  386. };
  387. static const struct iwl_ops iwl6000_ops = {
  388. .lib = &iwl6000_lib,
  389. .hcmd = &iwlagn_hcmd,
  390. .utils = &iwlagn_hcmd_utils,
  391. .led = &iwlagn_led_ops,
  392. };
  393. static const struct iwl_ops iwl6000g2b_ops = {
  394. .lib = &iwl6000g2b_lib,
  395. .hcmd = &iwlagn_bt_hcmd,
  396. .utils = &iwlagn_hcmd_utils,
  397. .led = &iwlagn_led_ops,
  398. };
  399. struct iwl_cfg iwl6000g2a_2agn_cfg = {
  400. .name = "6000 Series 2x2 AGN Gen2a",
  401. .fw_name_pre = IWL6000G2A_FW_PRE,
  402. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  403. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  404. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  405. .ops = &iwl6000_ops,
  406. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  407. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  408. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  409. .num_of_queues = IWLAGN_NUM_QUEUES,
  410. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  411. .mod_params = &iwlagn_mod_params,
  412. .valid_tx_ant = ANT_AB,
  413. .valid_rx_ant = ANT_AB,
  414. .pll_cfg_val = 0,
  415. .set_l0s = true,
  416. .use_bsm = false,
  417. .pa_type = IWL_PA_SYSTEM,
  418. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  419. .shadow_ram_support = true,
  420. .ht_greenfield_support = true,
  421. .led_compensation = 51,
  422. .use_rts_for_aggregation = true, /* use rts/cts protection */
  423. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  424. .supports_idle = true,
  425. .adv_thermal_throttle = true,
  426. .support_ct_kill_exit = true,
  427. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  428. .chain_noise_scale = 1000,
  429. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  430. .max_event_log_size = 512,
  431. .ucode_tracing = true,
  432. .sensitivity_calib_by_driver = true,
  433. .chain_noise_calib_by_driver = true,
  434. .need_dc_calib = true,
  435. };
  436. struct iwl_cfg iwl6000g2a_2abg_cfg = {
  437. .name = "6000 Series 2x2 ABG Gen2a",
  438. .fw_name_pre = IWL6000G2A_FW_PRE,
  439. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  440. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  441. .sku = IWL_SKU_A|IWL_SKU_G,
  442. .ops = &iwl6000_ops,
  443. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  444. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  445. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  446. .num_of_queues = IWLAGN_NUM_QUEUES,
  447. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  448. .mod_params = &iwlagn_mod_params,
  449. .valid_tx_ant = ANT_AB,
  450. .valid_rx_ant = ANT_AB,
  451. .pll_cfg_val = 0,
  452. .set_l0s = true,
  453. .use_bsm = false,
  454. .pa_type = IWL_PA_SYSTEM,
  455. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  456. .shadow_ram_support = true,
  457. .led_compensation = 51,
  458. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  459. .supports_idle = true,
  460. .adv_thermal_throttle = true,
  461. .support_ct_kill_exit = true,
  462. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  463. .chain_noise_scale = 1000,
  464. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  465. .max_event_log_size = 512,
  466. .sensitivity_calib_by_driver = true,
  467. .chain_noise_calib_by_driver = true,
  468. .need_dc_calib = true,
  469. };
  470. struct iwl_cfg iwl6000g2a_2bg_cfg = {
  471. .name = "6000 Series 2x2 BG Gen2a",
  472. .fw_name_pre = IWL6000G2A_FW_PRE,
  473. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  474. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  475. .sku = IWL_SKU_G,
  476. .ops = &iwl6000_ops,
  477. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  478. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  479. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  480. .num_of_queues = IWLAGN_NUM_QUEUES,
  481. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  482. .mod_params = &iwlagn_mod_params,
  483. .valid_tx_ant = ANT_AB,
  484. .valid_rx_ant = ANT_AB,
  485. .pll_cfg_val = 0,
  486. .set_l0s = true,
  487. .use_bsm = false,
  488. .pa_type = IWL_PA_SYSTEM,
  489. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  490. .shadow_ram_support = true,
  491. .led_compensation = 51,
  492. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  493. .supports_idle = true,
  494. .adv_thermal_throttle = true,
  495. .support_ct_kill_exit = true,
  496. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  497. .chain_noise_scale = 1000,
  498. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  499. .max_event_log_size = 512,
  500. .sensitivity_calib_by_driver = true,
  501. .chain_noise_calib_by_driver = true,
  502. .need_dc_calib = true,
  503. };
  504. struct iwl_cfg iwl6000g2b_2agn_cfg = {
  505. .name = "6000 Series 2x2 AGN Gen2b",
  506. .fw_name_pre = IWL6000G2B_FW_PRE,
  507. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  508. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  509. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  510. .ops = &iwl6000g2b_ops,
  511. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  512. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  513. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  514. .num_of_queues = IWLAGN_NUM_QUEUES,
  515. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  516. .mod_params = &iwlagn_mod_params,
  517. .valid_tx_ant = ANT_AB,
  518. .valid_rx_ant = ANT_AB,
  519. .pll_cfg_val = 0,
  520. .set_l0s = true,
  521. .use_bsm = false,
  522. .pa_type = IWL_PA_SYSTEM,
  523. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  524. .shadow_ram_support = true,
  525. .ht_greenfield_support = true,
  526. .led_compensation = 51,
  527. .use_rts_for_aggregation = true, /* use rts/cts protection */
  528. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  529. .supports_idle = true,
  530. .adv_thermal_throttle = true,
  531. .support_ct_kill_exit = true,
  532. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  533. .chain_noise_scale = 1000,
  534. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  535. .max_event_log_size = 512,
  536. .sensitivity_calib_by_driver = true,
  537. .chain_noise_calib_by_driver = true,
  538. .need_dc_calib = true,
  539. .bt_statistics = true,
  540. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  541. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  542. .advanced_bt_coexist = true,
  543. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  544. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  545. };
  546. struct iwl_cfg iwl6000g2b_2abg_cfg = {
  547. .name = "6000 Series 2x2 ABG Gen2b",
  548. .fw_name_pre = IWL6000G2B_FW_PRE,
  549. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  550. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  551. .sku = IWL_SKU_A|IWL_SKU_G,
  552. .ops = &iwl6000g2b_ops,
  553. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  554. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  555. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  556. .num_of_queues = IWLAGN_NUM_QUEUES,
  557. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  558. .mod_params = &iwlagn_mod_params,
  559. .valid_tx_ant = ANT_AB,
  560. .valid_rx_ant = ANT_AB,
  561. .pll_cfg_val = 0,
  562. .set_l0s = true,
  563. .use_bsm = false,
  564. .pa_type = IWL_PA_SYSTEM,
  565. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  566. .shadow_ram_support = true,
  567. .led_compensation = 51,
  568. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  569. .supports_idle = true,
  570. .adv_thermal_throttle = true,
  571. .support_ct_kill_exit = true,
  572. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  573. .chain_noise_scale = 1000,
  574. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  575. .max_event_log_size = 512,
  576. .sensitivity_calib_by_driver = true,
  577. .chain_noise_calib_by_driver = true,
  578. .need_dc_calib = true,
  579. .bt_statistics = true,
  580. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  581. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  582. .advanced_bt_coexist = true,
  583. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  584. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  585. };
  586. struct iwl_cfg iwl6000g2b_2bgn_cfg = {
  587. .name = "6000 Series 2x2 BGN Gen2b",
  588. .fw_name_pre = IWL6000G2B_FW_PRE,
  589. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  590. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  591. .sku = IWL_SKU_G|IWL_SKU_N,
  592. .ops = &iwl6000g2b_ops,
  593. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  594. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  595. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  596. .num_of_queues = IWLAGN_NUM_QUEUES,
  597. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  598. .mod_params = &iwlagn_mod_params,
  599. .valid_tx_ant = ANT_AB,
  600. .valid_rx_ant = ANT_AB,
  601. .pll_cfg_val = 0,
  602. .set_l0s = true,
  603. .use_bsm = false,
  604. .pa_type = IWL_PA_SYSTEM,
  605. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  606. .shadow_ram_support = true,
  607. .ht_greenfield_support = true,
  608. .led_compensation = 51,
  609. .use_rts_for_aggregation = true, /* use rts/cts protection */
  610. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  611. .supports_idle = true,
  612. .adv_thermal_throttle = true,
  613. .support_ct_kill_exit = true,
  614. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  615. .chain_noise_scale = 1000,
  616. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  617. .max_event_log_size = 512,
  618. .sensitivity_calib_by_driver = true,
  619. .chain_noise_calib_by_driver = true,
  620. .need_dc_calib = true,
  621. .bt_statistics = true,
  622. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  623. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  624. .advanced_bt_coexist = true,
  625. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  626. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  627. };
  628. struct iwl_cfg iwl6000g2b_2bg_cfg = {
  629. .name = "6000 Series 2x2 BG Gen2b",
  630. .fw_name_pre = IWL6000G2B_FW_PRE,
  631. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  632. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  633. .sku = IWL_SKU_G,
  634. .ops = &iwl6000g2b_ops,
  635. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  636. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  637. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  638. .num_of_queues = IWLAGN_NUM_QUEUES,
  639. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  640. .mod_params = &iwlagn_mod_params,
  641. .valid_tx_ant = ANT_AB,
  642. .valid_rx_ant = ANT_AB,
  643. .pll_cfg_val = 0,
  644. .set_l0s = true,
  645. .use_bsm = false,
  646. .pa_type = IWL_PA_SYSTEM,
  647. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  648. .shadow_ram_support = true,
  649. .led_compensation = 51,
  650. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  651. .supports_idle = true,
  652. .adv_thermal_throttle = true,
  653. .support_ct_kill_exit = true,
  654. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  655. .chain_noise_scale = 1000,
  656. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  657. .max_event_log_size = 512,
  658. .sensitivity_calib_by_driver = true,
  659. .chain_noise_calib_by_driver = true,
  660. .need_dc_calib = true,
  661. .bt_statistics = true,
  662. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  663. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  664. .advanced_bt_coexist = true,
  665. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  666. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  667. };
  668. struct iwl_cfg iwl6000g2b_bgn_cfg = {
  669. .name = "6000 Series 1x2 BGN Gen2b",
  670. .fw_name_pre = IWL6000G2B_FW_PRE,
  671. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  672. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  673. .sku = IWL_SKU_G|IWL_SKU_N,
  674. .ops = &iwl6000g2b_ops,
  675. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  676. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  677. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  678. .num_of_queues = IWLAGN_NUM_QUEUES,
  679. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  680. .mod_params = &iwlagn_mod_params,
  681. .valid_tx_ant = ANT_A,
  682. .valid_rx_ant = ANT_AB,
  683. .pll_cfg_val = 0,
  684. .set_l0s = true,
  685. .use_bsm = false,
  686. .pa_type = IWL_PA_SYSTEM,
  687. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  688. .shadow_ram_support = true,
  689. .ht_greenfield_support = true,
  690. .led_compensation = 51,
  691. .use_rts_for_aggregation = true, /* use rts/cts protection */
  692. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  693. .supports_idle = true,
  694. .adv_thermal_throttle = true,
  695. .support_ct_kill_exit = true,
  696. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  697. .chain_noise_scale = 1000,
  698. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  699. .max_event_log_size = 512,
  700. .sensitivity_calib_by_driver = true,
  701. .chain_noise_calib_by_driver = true,
  702. .need_dc_calib = true,
  703. .bt_statistics = true,
  704. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  705. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  706. .advanced_bt_coexist = true,
  707. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  708. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  709. };
  710. struct iwl_cfg iwl6000g2b_bg_cfg = {
  711. .name = "6000 Series 1x2 BG Gen2b",
  712. .fw_name_pre = IWL6000G2B_FW_PRE,
  713. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  714. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  715. .sku = IWL_SKU_G,
  716. .ops = &iwl6000g2b_ops,
  717. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  718. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  719. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  720. .num_of_queues = IWLAGN_NUM_QUEUES,
  721. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  722. .mod_params = &iwlagn_mod_params,
  723. .valid_tx_ant = ANT_A,
  724. .valid_rx_ant = ANT_AB,
  725. .pll_cfg_val = 0,
  726. .set_l0s = true,
  727. .use_bsm = false,
  728. .pa_type = IWL_PA_SYSTEM,
  729. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  730. .shadow_ram_support = true,
  731. .led_compensation = 51,
  732. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  733. .supports_idle = true,
  734. .adv_thermal_throttle = true,
  735. .support_ct_kill_exit = true,
  736. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,
  737. .chain_noise_scale = 1000,
  738. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  739. .max_event_log_size = 512,
  740. .sensitivity_calib_by_driver = true,
  741. .chain_noise_calib_by_driver = true,
  742. .need_dc_calib = true,
  743. .bt_statistics = true,
  744. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  745. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  746. .advanced_bt_coexist = true,
  747. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  748. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  749. };
  750. /*
  751. * "i": Internal configuration, use internal Power Amplifier
  752. */
  753. struct iwl_cfg iwl6000i_2agn_cfg = {
  754. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  755. .fw_name_pre = IWL6000_FW_PRE,
  756. .ucode_api_max = IWL6000_UCODE_API_MAX,
  757. .ucode_api_min = IWL6000_UCODE_API_MIN,
  758. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  759. .ops = &iwl6000_ops,
  760. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  761. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  762. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  763. .num_of_queues = IWLAGN_NUM_QUEUES,
  764. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  765. .mod_params = &iwlagn_mod_params,
  766. .valid_tx_ant = ANT_BC,
  767. .valid_rx_ant = ANT_BC,
  768. .pll_cfg_val = 0,
  769. .set_l0s = true,
  770. .use_bsm = false,
  771. .pa_type = IWL_PA_INTERNAL,
  772. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  773. .shadow_ram_support = true,
  774. .ht_greenfield_support = true,
  775. .led_compensation = 51,
  776. .use_rts_for_aggregation = true, /* use rts/cts protection */
  777. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  778. .supports_idle = true,
  779. .adv_thermal_throttle = true,
  780. .support_ct_kill_exit = true,
  781. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  782. .chain_noise_scale = 1000,
  783. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  784. .max_event_log_size = 1024,
  785. .ucode_tracing = true,
  786. .sensitivity_calib_by_driver = true,
  787. .chain_noise_calib_by_driver = true,
  788. };
  789. struct iwl_cfg iwl6000i_2abg_cfg = {
  790. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  791. .fw_name_pre = IWL6000_FW_PRE,
  792. .ucode_api_max = IWL6000_UCODE_API_MAX,
  793. .ucode_api_min = IWL6000_UCODE_API_MIN,
  794. .sku = IWL_SKU_A|IWL_SKU_G,
  795. .ops = &iwl6000_ops,
  796. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  797. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  798. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  799. .num_of_queues = IWLAGN_NUM_QUEUES,
  800. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  801. .mod_params = &iwlagn_mod_params,
  802. .valid_tx_ant = ANT_BC,
  803. .valid_rx_ant = ANT_BC,
  804. .pll_cfg_val = 0,
  805. .set_l0s = true,
  806. .use_bsm = false,
  807. .pa_type = IWL_PA_INTERNAL,
  808. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  809. .shadow_ram_support = true,
  810. .led_compensation = 51,
  811. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  812. .supports_idle = true,
  813. .adv_thermal_throttle = true,
  814. .support_ct_kill_exit = true,
  815. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  816. .chain_noise_scale = 1000,
  817. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  818. .max_event_log_size = 1024,
  819. .ucode_tracing = true,
  820. .sensitivity_calib_by_driver = true,
  821. .chain_noise_calib_by_driver = true,
  822. };
  823. struct iwl_cfg iwl6000i_2bg_cfg = {
  824. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  825. .fw_name_pre = IWL6000_FW_PRE,
  826. .ucode_api_max = IWL6000_UCODE_API_MAX,
  827. .ucode_api_min = IWL6000_UCODE_API_MIN,
  828. .sku = IWL_SKU_G,
  829. .ops = &iwl6000_ops,
  830. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  831. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  832. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  833. .num_of_queues = IWLAGN_NUM_QUEUES,
  834. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  835. .mod_params = &iwlagn_mod_params,
  836. .valid_tx_ant = ANT_BC,
  837. .valid_rx_ant = ANT_BC,
  838. .pll_cfg_val = 0,
  839. .set_l0s = true,
  840. .use_bsm = false,
  841. .pa_type = IWL_PA_INTERNAL,
  842. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  843. .shadow_ram_support = true,
  844. .led_compensation = 51,
  845. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  846. .supports_idle = true,
  847. .adv_thermal_throttle = true,
  848. .support_ct_kill_exit = true,
  849. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  850. .chain_noise_scale = 1000,
  851. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  852. .max_event_log_size = 1024,
  853. .ucode_tracing = true,
  854. .sensitivity_calib_by_driver = true,
  855. .chain_noise_calib_by_driver = true,
  856. };
  857. struct iwl_cfg iwl6050_2agn_cfg = {
  858. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  859. .fw_name_pre = IWL6050_FW_PRE,
  860. .ucode_api_max = IWL6050_UCODE_API_MAX,
  861. .ucode_api_min = IWL6050_UCODE_API_MIN,
  862. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  863. .ops = &iwl6000_ops,
  864. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  865. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  866. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  867. .num_of_queues = IWLAGN_NUM_QUEUES,
  868. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  869. .mod_params = &iwlagn_mod_params,
  870. .valid_tx_ant = ANT_AB,
  871. .valid_rx_ant = ANT_AB,
  872. .pll_cfg_val = 0,
  873. .set_l0s = true,
  874. .use_bsm = false,
  875. .pa_type = IWL_PA_SYSTEM,
  876. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  877. .shadow_ram_support = true,
  878. .ht_greenfield_support = true,
  879. .led_compensation = 51,
  880. .use_rts_for_aggregation = true, /* use rts/cts protection */
  881. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  882. .supports_idle = true,
  883. .adv_thermal_throttle = true,
  884. .support_ct_kill_exit = true,
  885. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  886. .chain_noise_scale = 1500,
  887. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  888. .max_event_log_size = 1024,
  889. .ucode_tracing = true,
  890. .sensitivity_calib_by_driver = true,
  891. .chain_noise_calib_by_driver = true,
  892. .need_dc_calib = true,
  893. };
  894. struct iwl_cfg iwl6050g2_bgn_cfg = {
  895. .name = "6050 Series 1x2 BGN Gen2",
  896. .fw_name_pre = IWL6050_FW_PRE,
  897. .ucode_api_max = IWL6050_UCODE_API_MAX,
  898. .ucode_api_min = IWL6050_UCODE_API_MIN,
  899. .sku = IWL_SKU_G|IWL_SKU_N,
  900. .ops = &iwl6000_ops,
  901. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  902. .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
  903. .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
  904. .num_of_queues = IWLAGN_NUM_QUEUES,
  905. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  906. .mod_params = &iwlagn_mod_params,
  907. .valid_tx_ant = ANT_A,
  908. .valid_rx_ant = ANT_AB,
  909. .pll_cfg_val = 0,
  910. .set_l0s = true,
  911. .use_bsm = false,
  912. .pa_type = IWL_PA_SYSTEM,
  913. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  914. .shadow_ram_support = true,
  915. .ht_greenfield_support = true,
  916. .led_compensation = 51,
  917. .use_rts_for_aggregation = true, /* use rts/cts protection */
  918. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  919. .supports_idle = true,
  920. .adv_thermal_throttle = true,
  921. .support_ct_kill_exit = true,
  922. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  923. .chain_noise_scale = 1500,
  924. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  925. .max_event_log_size = 1024,
  926. .ucode_tracing = true,
  927. .sensitivity_calib_by_driver = true,
  928. .chain_noise_calib_by_driver = true,
  929. .need_dc_calib = true,
  930. };
  931. struct iwl_cfg iwl6050_2abg_cfg = {
  932. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  933. .fw_name_pre = IWL6050_FW_PRE,
  934. .ucode_api_max = IWL6050_UCODE_API_MAX,
  935. .ucode_api_min = IWL6050_UCODE_API_MIN,
  936. .sku = IWL_SKU_A|IWL_SKU_G,
  937. .ops = &iwl6000_ops,
  938. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  939. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  940. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  941. .num_of_queues = IWLAGN_NUM_QUEUES,
  942. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  943. .mod_params = &iwlagn_mod_params,
  944. .valid_tx_ant = ANT_AB,
  945. .valid_rx_ant = ANT_AB,
  946. .pll_cfg_val = 0,
  947. .set_l0s = true,
  948. .use_bsm = false,
  949. .pa_type = IWL_PA_SYSTEM,
  950. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  951. .shadow_ram_support = true,
  952. .led_compensation = 51,
  953. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  954. .supports_idle = true,
  955. .adv_thermal_throttle = true,
  956. .support_ct_kill_exit = true,
  957. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  958. .chain_noise_scale = 1500,
  959. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  960. .max_event_log_size = 1024,
  961. .ucode_tracing = true,
  962. .sensitivity_calib_by_driver = true,
  963. .chain_noise_calib_by_driver = true,
  964. .need_dc_calib = true,
  965. };
  966. struct iwl_cfg iwl6000_3agn_cfg = {
  967. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  968. .fw_name_pre = IWL6000_FW_PRE,
  969. .ucode_api_max = IWL6000_UCODE_API_MAX,
  970. .ucode_api_min = IWL6000_UCODE_API_MIN,
  971. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  972. .ops = &iwl6000_ops,
  973. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  974. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  975. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  976. .num_of_queues = IWLAGN_NUM_QUEUES,
  977. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  978. .mod_params = &iwlagn_mod_params,
  979. .valid_tx_ant = ANT_ABC,
  980. .valid_rx_ant = ANT_ABC,
  981. .pll_cfg_val = 0,
  982. .set_l0s = true,
  983. .use_bsm = false,
  984. .pa_type = IWL_PA_SYSTEM,
  985. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  986. .shadow_ram_support = true,
  987. .ht_greenfield_support = true,
  988. .led_compensation = 51,
  989. .use_rts_for_aggregation = true, /* use rts/cts protection */
  990. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  991. .supports_idle = true,
  992. .adv_thermal_throttle = true,
  993. .support_ct_kill_exit = true,
  994. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  995. .chain_noise_scale = 1000,
  996. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  997. .max_event_log_size = 1024,
  998. .ucode_tracing = true,
  999. .sensitivity_calib_by_driver = true,
  1000. .chain_noise_calib_by_driver = true,
  1001. };
  1002. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  1003. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  1004. MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  1005. MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));