iwl-6000.c 36 KB

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