iwl-6000.c 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  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. #define IWL130_UCODE_API_MAX 5
  54. /* Lowest firmware API version supported */
  55. #define IWL6000_UCODE_API_MIN 4
  56. #define IWL6050_UCODE_API_MIN 4
  57. #define IWL6000G2_UCODE_API_MIN 4
  58. #define IWL130_UCODE_API_MIN 5
  59. #define IWL6000_FW_PRE "iwlwifi-6000-"
  60. #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
  61. #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
  62. #define IWL6050_FW_PRE "iwlwifi-6050-"
  63. #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
  64. #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
  65. #define IWL6000G2A_FW_PRE "iwlwifi-6000g2a-"
  66. #define _IWL6000G2A_MODULE_FIRMWARE(api) IWL6000G2A_FW_PRE #api ".ucode"
  67. #define IWL6000G2A_MODULE_FIRMWARE(api) _IWL6000G2A_MODULE_FIRMWARE(api)
  68. #define IWL6000G2B_FW_PRE "iwlwifi-6000g2b-"
  69. #define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode"
  70. #define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api)
  71. #define IWL130_FW_PRE "iwlwifi-130-"
  72. #define _IWL130_MODULE_FIRMWARE(api) IWL130_FW_PRE #api ".ucode"
  73. #define IWL130_MODULE_FIRMWARE(api) _IWL130_MODULE_FIRMWARE(api)
  74. static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
  75. {
  76. /* want Celsius */
  77. priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
  78. priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
  79. }
  80. static void iwl6050_additional_nic_config(struct iwl_priv *priv)
  81. {
  82. /* Indicate calibration version to uCode. */
  83. if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
  84. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  85. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  86. }
  87. static void iwl6050g2_additional_nic_config(struct iwl_priv *priv)
  88. {
  89. /* Indicate calibration version to uCode. */
  90. if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6)
  91. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  92. CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);
  93. iwl_set_bit(priv, CSR_GP_DRIVER_REG,
  94. CSR_GP_DRIVER_REG_BIT_6050_1x2);
  95. }
  96. /* NIC configuration for 6000 series */
  97. static void iwl6000_nic_config(struct iwl_priv *priv)
  98. {
  99. u16 radio_cfg;
  100. radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
  101. /* write radio config values to register */
  102. if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
  103. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  104. EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
  105. EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
  106. EEPROM_RF_CFG_DASH_MSK(radio_cfg));
  107. /* set CSR_HW_CONFIG_REG for uCode use */
  108. iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
  109. CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
  110. CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
  111. /* no locking required for register write */
  112. if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
  113. /* 2x2 IPA phy type */
  114. iwl_write32(priv, CSR_GP_DRIVER_REG,
  115. CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
  116. }
  117. /* do additional nic configuration if needed */
  118. if (priv->cfg->ops->nic &&
  119. priv->cfg->ops->nic->additional_nic_config) {
  120. priv->cfg->ops->nic->additional_nic_config(priv);
  121. }
  122. }
  123. static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
  124. .min_nrg_cck = 97,
  125. .max_nrg_cck = 0, /* not used, set to 0 */
  126. .auto_corr_min_ofdm = 80,
  127. .auto_corr_min_ofdm_mrc = 128,
  128. .auto_corr_min_ofdm_x1 = 105,
  129. .auto_corr_min_ofdm_mrc_x1 = 192,
  130. .auto_corr_max_ofdm = 145,
  131. .auto_corr_max_ofdm_mrc = 232,
  132. .auto_corr_max_ofdm_x1 = 110,
  133. .auto_corr_max_ofdm_mrc_x1 = 232,
  134. .auto_corr_min_cck = 125,
  135. .auto_corr_max_cck = 175,
  136. .auto_corr_min_cck_mrc = 160,
  137. .auto_corr_max_cck_mrc = 310,
  138. .nrg_th_cck = 97,
  139. .nrg_th_ofdm = 100,
  140. .barker_corr_th_min = 190,
  141. .barker_corr_th_min_mrc = 390,
  142. .nrg_th_cca = 62,
  143. };
  144. static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
  145. {
  146. if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
  147. priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
  148. priv->cfg->base_params->num_of_queues =
  149. priv->cfg->mod_params->num_of_queues;
  150. priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;
  151. priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
  152. priv->hw_params.scd_bc_tbls_size =
  153. priv->cfg->base_params->num_of_queues *
  154. sizeof(struct iwlagn_scd_bc_tbl);
  155. priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
  156. priv->hw_params.max_stations = IWLAGN_STATION_COUNT;
  157. priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
  158. priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
  159. priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
  160. priv->hw_params.max_bsm_size = 0;
  161. priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
  162. BIT(IEEE80211_BAND_5GHZ);
  163. priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
  164. priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
  165. priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
  166. priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
  167. priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
  168. iwl6000_set_ct_threshold(priv);
  169. /* Set initial sensitivity parameters */
  170. /* Set initial calibration set */
  171. priv->hw_params.sens = &iwl6000_sensitivity;
  172. priv->hw_params.calib_init_cfg =
  173. BIT(IWL_CALIB_XTAL) |
  174. BIT(IWL_CALIB_LO) |
  175. BIT(IWL_CALIB_TX_IQ) |
  176. BIT(IWL_CALIB_BASE_BAND);
  177. if (priv->cfg->need_dc_calib)
  178. priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
  179. if (priv->cfg->need_temp_offset_calib)
  180. priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
  181. priv->hw_params.beacon_time_tsf_bits = IWLAGN_EXT_BEACON_TIME_POS;
  182. return 0;
  183. }
  184. static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
  185. struct ieee80211_channel_switch *ch_switch)
  186. {
  187. /*
  188. * MULTI-FIXME
  189. * See iwl_mac_channel_switch.
  190. */
  191. struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
  192. struct iwl6000_channel_switch_cmd cmd;
  193. const struct iwl_channel_info *ch_info;
  194. u32 switch_time_in_usec, ucode_switch_time;
  195. u16 ch;
  196. u32 tsf_low;
  197. u8 switch_count;
  198. u16 beacon_interval = le16_to_cpu(ctx->timing.beacon_interval);
  199. struct ieee80211_vif *vif = ctx->vif;
  200. struct iwl_host_cmd hcmd = {
  201. .id = REPLY_CHANNEL_SWITCH,
  202. .len = sizeof(cmd),
  203. .flags = CMD_SYNC,
  204. .data = &cmd,
  205. };
  206. cmd.band = priv->band == IEEE80211_BAND_2GHZ;
  207. ch = ch_switch->channel->hw_value;
  208. IWL_DEBUG_11H(priv, "channel switch from %u to %u\n",
  209. ctx->active.channel, ch);
  210. cmd.channel = cpu_to_le16(ch);
  211. cmd.rxon_flags = ctx->staging.flags;
  212. cmd.rxon_filter_flags = ctx->staging.filter_flags;
  213. switch_count = ch_switch->count;
  214. tsf_low = ch_switch->timestamp & 0x0ffffffff;
  215. /*
  216. * calculate the ucode channel switch time
  217. * adding TSF as one of the factor for when to switch
  218. */
  219. if ((priv->ucode_beacon_time > tsf_low) && beacon_interval) {
  220. if (switch_count > ((priv->ucode_beacon_time - tsf_low) /
  221. beacon_interval)) {
  222. switch_count -= (priv->ucode_beacon_time -
  223. tsf_low) / beacon_interval;
  224. } else
  225. switch_count = 0;
  226. }
  227. if (switch_count <= 1)
  228. cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time);
  229. else {
  230. switch_time_in_usec =
  231. vif->bss_conf.beacon_int * switch_count * TIME_UNIT;
  232. ucode_switch_time = iwl_usecs_to_beacons(priv,
  233. switch_time_in_usec,
  234. beacon_interval);
  235. cmd.switch_time = iwl_add_beacon_time(priv,
  236. priv->ucode_beacon_time,
  237. ucode_switch_time,
  238. beacon_interval);
  239. }
  240. IWL_DEBUG_11H(priv, "uCode time for the switch is 0x%x\n",
  241. cmd.switch_time);
  242. ch_info = iwl_get_channel_info(priv, priv->band, ch);
  243. if (ch_info)
  244. cmd.expect_beacon = is_channel_radar(ch_info);
  245. else {
  246. IWL_ERR(priv, "invalid channel switch from %u to %u\n",
  247. ctx->active.channel, ch);
  248. return -EFAULT;
  249. }
  250. priv->switch_rxon.channel = cmd.channel;
  251. priv->switch_rxon.switch_in_progress = true;
  252. return iwl_send_cmd_sync(priv, &hcmd);
  253. }
  254. static struct iwl_lib_ops iwl6000_lib = {
  255. .set_hw_params = iwl6000_hw_set_hw_params,
  256. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  257. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  258. .txq_set_sched = iwlagn_txq_set_sched,
  259. .txq_agg_enable = iwlagn_txq_agg_enable,
  260. .txq_agg_disable = iwlagn_txq_agg_disable,
  261. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  262. .txq_free_tfd = iwl_hw_txq_free_tfd,
  263. .txq_init = iwl_hw_tx_queue_init,
  264. .rx_handler_setup = iwlagn_rx_handler_setup,
  265. .setup_deferred_work = iwlagn_setup_deferred_work,
  266. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  267. .load_ucode = iwlagn_load_ucode,
  268. .dump_nic_event_log = iwl_dump_nic_event_log,
  269. .dump_nic_error_log = iwl_dump_nic_error_log,
  270. .dump_csr = iwl_dump_csr,
  271. .dump_fh = iwl_dump_fh,
  272. .init_alive_start = iwlagn_init_alive_start,
  273. .alive_notify = iwlagn_alive_notify,
  274. .send_tx_power = iwlagn_send_tx_power,
  275. .update_chain_flags = iwl_update_chain_flags,
  276. .set_channel_switch = iwl6000_hw_channel_switch,
  277. .apm_ops = {
  278. .init = iwl_apm_init,
  279. .config = iwl6000_nic_config,
  280. },
  281. .eeprom_ops = {
  282. .regulatory_bands = {
  283. EEPROM_REG_BAND_1_CHANNELS,
  284. EEPROM_REG_BAND_2_CHANNELS,
  285. EEPROM_REG_BAND_3_CHANNELS,
  286. EEPROM_REG_BAND_4_CHANNELS,
  287. EEPROM_REG_BAND_5_CHANNELS,
  288. EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
  289. EEPROM_REG_BAND_52_HT40_CHANNELS
  290. },
  291. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  292. .release_semaphore = iwlcore_eeprom_release_semaphore,
  293. .calib_version = iwlagn_eeprom_calib_version,
  294. .query_addr = iwlagn_eeprom_query_addr,
  295. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  296. },
  297. .post_associate = iwl_post_associate,
  298. .isr = iwl_isr_ict,
  299. .config_ap = iwl_config_ap,
  300. .temp_ops = {
  301. .temperature = iwlagn_temperature,
  302. },
  303. .manage_ibss_station = iwlagn_manage_ibss_station,
  304. .update_bcast_stations = iwl_update_bcast_stations,
  305. .debugfs_ops = {
  306. .rx_stats_read = iwl_ucode_rx_stats_read,
  307. .tx_stats_read = iwl_ucode_tx_stats_read,
  308. .general_stats_read = iwl_ucode_general_stats_read,
  309. .bt_stats_read = iwl_ucode_bt_stats_read,
  310. .reply_tx_error = iwl_reply_tx_error_read,
  311. },
  312. .recover_from_tx_stall = iwl_bg_monitor_recover,
  313. .check_plcp_health = iwl_good_plcp_health,
  314. .check_ack_health = iwl_good_ack_health,
  315. .txfifo_flush = iwlagn_txfifo_flush,
  316. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  317. .tt_ops = {
  318. .lower_power_detection = iwl_tt_is_low_power_state,
  319. .tt_power_mode = iwl_tt_current_power_mode,
  320. .ct_kill_check = iwl_check_for_ct_kill,
  321. }
  322. };
  323. static struct iwl_lib_ops iwl6000g2b_lib = {
  324. .set_hw_params = iwl6000_hw_set_hw_params,
  325. .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
  326. .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
  327. .txq_set_sched = iwlagn_txq_set_sched,
  328. .txq_agg_enable = iwlagn_txq_agg_enable,
  329. .txq_agg_disable = iwlagn_txq_agg_disable,
  330. .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
  331. .txq_free_tfd = iwl_hw_txq_free_tfd,
  332. .txq_init = iwl_hw_tx_queue_init,
  333. .rx_handler_setup = iwlagn_bt_rx_handler_setup,
  334. .setup_deferred_work = iwlagn_bt_setup_deferred_work,
  335. .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
  336. .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
  337. .load_ucode = iwlagn_load_ucode,
  338. .dump_nic_event_log = iwl_dump_nic_event_log,
  339. .dump_nic_error_log = iwl_dump_nic_error_log,
  340. .dump_csr = iwl_dump_csr,
  341. .dump_fh = iwl_dump_fh,
  342. .init_alive_start = iwlagn_init_alive_start,
  343. .alive_notify = iwlagn_alive_notify,
  344. .send_tx_power = iwlagn_send_tx_power,
  345. .update_chain_flags = iwl_update_chain_flags,
  346. .set_channel_switch = iwl6000_hw_channel_switch,
  347. .apm_ops = {
  348. .init = iwl_apm_init,
  349. .config = iwl6000_nic_config,
  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. .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
  362. .release_semaphore = iwlcore_eeprom_release_semaphore,
  363. .calib_version = iwlagn_eeprom_calib_version,
  364. .query_addr = iwlagn_eeprom_query_addr,
  365. .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
  366. },
  367. .post_associate = iwl_post_associate,
  368. .isr = iwl_isr_ict,
  369. .config_ap = iwl_config_ap,
  370. .temp_ops = {
  371. .temperature = iwlagn_temperature,
  372. },
  373. .manage_ibss_station = iwlagn_manage_ibss_station,
  374. .update_bcast_stations = iwl_update_bcast_stations,
  375. .debugfs_ops = {
  376. .rx_stats_read = iwl_ucode_rx_stats_read,
  377. .tx_stats_read = iwl_ucode_tx_stats_read,
  378. .general_stats_read = iwl_ucode_general_stats_read,
  379. .bt_stats_read = iwl_ucode_bt_stats_read,
  380. .reply_tx_error = iwl_reply_tx_error_read,
  381. },
  382. .recover_from_tx_stall = iwl_bg_monitor_recover,
  383. .check_plcp_health = iwl_good_plcp_health,
  384. .check_ack_health = iwl_good_ack_health,
  385. .txfifo_flush = iwlagn_txfifo_flush,
  386. .dev_txfifo_flush = iwlagn_dev_txfifo_flush,
  387. .tt_ops = {
  388. .lower_power_detection = iwl_tt_is_low_power_state,
  389. .tt_power_mode = iwl_tt_current_power_mode,
  390. .ct_kill_check = iwl_check_for_ct_kill,
  391. }
  392. };
  393. static struct iwl_nic_ops iwl6050_nic_ops = {
  394. .additional_nic_config = &iwl6050_additional_nic_config,
  395. };
  396. static struct iwl_nic_ops iwl6050g2_nic_ops = {
  397. .additional_nic_config = &iwl6050g2_additional_nic_config,
  398. };
  399. static const struct iwl_ops iwl6000_ops = {
  400. .lib = &iwl6000_lib,
  401. .hcmd = &iwlagn_hcmd,
  402. .utils = &iwlagn_hcmd_utils,
  403. .led = &iwlagn_led_ops,
  404. .ieee80211_ops = &iwlagn_hw_ops,
  405. };
  406. static const struct iwl_ops iwl6050_ops = {
  407. .lib = &iwl6000_lib,
  408. .hcmd = &iwlagn_hcmd,
  409. .utils = &iwlagn_hcmd_utils,
  410. .led = &iwlagn_led_ops,
  411. .nic = &iwl6050_nic_ops,
  412. .ieee80211_ops = &iwlagn_hw_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. .ieee80211_ops = &iwlagn_hw_ops,
  421. };
  422. static const struct iwl_ops iwl6000g2b_ops = {
  423. .lib = &iwl6000g2b_lib,
  424. .hcmd = &iwlagn_bt_hcmd,
  425. .utils = &iwlagn_hcmd_utils,
  426. .led = &iwlagn_led_ops,
  427. .ieee80211_ops = &iwlagn_hw_ops,
  428. };
  429. static struct iwl_base_params iwl6000_base_params = {
  430. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  431. .num_of_queues = IWLAGN_NUM_QUEUES,
  432. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  433. .pll_cfg_val = 0,
  434. .set_l0s = true,
  435. .use_bsm = false,
  436. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  437. .shadow_ram_support = true,
  438. .led_compensation = 51,
  439. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  440. .supports_idle = true,
  441. .adv_thermal_throttle = true,
  442. .support_ct_kill_exit = true,
  443. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  444. .chain_noise_scale = 1000,
  445. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  446. .max_event_log_size = 512,
  447. .ucode_tracing = true,
  448. .sensitivity_calib_by_driver = true,
  449. .chain_noise_calib_by_driver = true,
  450. };
  451. static struct iwl_base_params iwl6050_base_params = {
  452. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  453. .num_of_queues = IWLAGN_NUM_QUEUES,
  454. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  455. .pll_cfg_val = 0,
  456. .set_l0s = true,
  457. .use_bsm = false,
  458. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  459. .shadow_ram_support = true,
  460. .led_compensation = 51,
  461. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  462. .supports_idle = true,
  463. .adv_thermal_throttle = true,
  464. .support_ct_kill_exit = true,
  465. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  466. .chain_noise_scale = 1500,
  467. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  468. .max_event_log_size = 1024,
  469. .ucode_tracing = true,
  470. .sensitivity_calib_by_driver = true,
  471. .chain_noise_calib_by_driver = true,
  472. };
  473. static struct iwl_base_params iwl6000_coex_base_params = {
  474. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  475. .num_of_queues = IWLAGN_NUM_QUEUES,
  476. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  477. .pll_cfg_val = 0,
  478. .set_l0s = true,
  479. .use_bsm = false,
  480. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  481. .shadow_ram_support = true,
  482. .led_compensation = 51,
  483. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  484. .supports_idle = true,
  485. .adv_thermal_throttle = true,
  486. .support_ct_kill_exit = true,
  487. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  488. .chain_noise_scale = 1000,
  489. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  490. .max_event_log_size = 512,
  491. .ucode_tracing = true,
  492. .sensitivity_calib_by_driver = true,
  493. .chain_noise_calib_by_driver = true,
  494. };
  495. static struct iwl_ht_params iwl6000_ht_params = {
  496. .ht_greenfield_support = true,
  497. .use_rts_for_aggregation = true, /* use rts/cts protection */
  498. };
  499. static struct iwl_bt_params iwl6000_bt_params = {
  500. .bt_statistics = true,
  501. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  502. .advanced_bt_coexist = true,
  503. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  504. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  505. };
  506. struct iwl_cfg iwl6000g2a_2agn_cfg = {
  507. .name = "6000 Series 2x2 AGN Gen2a",
  508. .fw_name_pre = IWL6000G2A_FW_PRE,
  509. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  510. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  511. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  512. .valid_tx_ant = ANT_AB,
  513. .valid_rx_ant = ANT_AB,
  514. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  515. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  516. .ops = &iwl6000_ops,
  517. .mod_params = &iwlagn_mod_params,
  518. .base_params = &iwl6000_base_params,
  519. .ht_params = &iwl6000_ht_params,
  520. .need_dc_calib = true,
  521. .need_temp_offset_calib = true,
  522. };
  523. struct iwl_cfg iwl6000g2a_2abg_cfg = {
  524. .name = "6000 Series 2x2 ABG Gen2a",
  525. .fw_name_pre = IWL6000G2A_FW_PRE,
  526. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  527. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  528. .sku = IWL_SKU_A|IWL_SKU_G,
  529. .valid_tx_ant = ANT_AB,
  530. .valid_rx_ant = ANT_AB,
  531. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  532. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  533. .ops = &iwl6000_ops,
  534. .mod_params = &iwlagn_mod_params,
  535. .base_params = &iwl6000_base_params,
  536. .need_dc_calib = true,
  537. .need_temp_offset_calib = true,
  538. };
  539. struct iwl_cfg iwl6000g2a_2bg_cfg = {
  540. .name = "6000 Series 2x2 BG Gen2a",
  541. .fw_name_pre = IWL6000G2A_FW_PRE,
  542. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  543. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  544. .sku = IWL_SKU_G,
  545. .valid_tx_ant = ANT_AB,
  546. .valid_rx_ant = ANT_AB,
  547. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  548. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  549. .ops = &iwl6000_ops,
  550. .mod_params = &iwlagn_mod_params,
  551. .base_params = &iwl6000_base_params,
  552. .need_dc_calib = true,
  553. .need_temp_offset_calib = true,
  554. };
  555. struct iwl_cfg iwl6000g2b_2agn_cfg = {
  556. .name = "6000 Series 2x2 AGN Gen2b",
  557. .fw_name_pre = IWL6000G2B_FW_PRE,
  558. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  559. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  560. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  561. .valid_tx_ant = ANT_AB,
  562. .valid_rx_ant = ANT_AB,
  563. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  564. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  565. .ops = &iwl6000g2b_ops,
  566. .mod_params = &iwlagn_mod_params,
  567. .base_params = &iwl6000_coex_base_params,
  568. .bt_params = &iwl6000_bt_params,
  569. .ht_params = &iwl6000_ht_params,
  570. .need_dc_calib = true,
  571. .need_temp_offset_calib = true,
  572. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  573. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  574. };
  575. struct iwl_cfg iwl6000g2b_2abg_cfg = {
  576. .name = "6000 Series 2x2 ABG Gen2b",
  577. .fw_name_pre = IWL6000G2B_FW_PRE,
  578. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  579. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  580. .sku = IWL_SKU_A|IWL_SKU_G,
  581. .valid_tx_ant = ANT_AB,
  582. .valid_rx_ant = ANT_AB,
  583. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  584. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  585. .ops = &iwl6000g2b_ops,
  586. .mod_params = &iwlagn_mod_params,
  587. .base_params = &iwl6000_coex_base_params,
  588. .bt_params = &iwl6000_bt_params,
  589. .need_dc_calib = true,
  590. .need_temp_offset_calib = true,
  591. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  592. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  593. };
  594. struct iwl_cfg iwl6000g2b_2bgn_cfg = {
  595. .name = "6000 Series 2x2 BGN Gen2b",
  596. .fw_name_pre = IWL6000G2B_FW_PRE,
  597. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  598. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  599. .sku = IWL_SKU_G|IWL_SKU_N,
  600. .valid_tx_ant = ANT_AB,
  601. .valid_rx_ant = ANT_AB,
  602. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  603. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  604. .ops = &iwl6000g2b_ops,
  605. .mod_params = &iwlagn_mod_params,
  606. .base_params = &iwl6000_coex_base_params,
  607. .bt_params = &iwl6000_bt_params,
  608. .ht_params = &iwl6000_ht_params,
  609. .need_dc_calib = true,
  610. .need_temp_offset_calib = true,
  611. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  612. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  613. };
  614. struct iwl_cfg iwl6000g2b_2bg_cfg = {
  615. .name = "6000 Series 2x2 BG 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,
  620. .valid_tx_ant = ANT_AB,
  621. .valid_rx_ant = ANT_AB,
  622. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  623. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  624. .ops = &iwl6000g2b_ops,
  625. .mod_params = &iwlagn_mod_params,
  626. .base_params = &iwl6000_coex_base_params,
  627. .bt_params = &iwl6000_bt_params,
  628. .need_dc_calib = true,
  629. .need_temp_offset_calib = true,
  630. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  631. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  632. };
  633. struct iwl_cfg iwl6000g2b_bgn_cfg = {
  634. .name = "6000 Series 1x2 BGN Gen2b",
  635. .fw_name_pre = IWL6000G2B_FW_PRE,
  636. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  637. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  638. .sku = IWL_SKU_G|IWL_SKU_N,
  639. .valid_tx_ant = ANT_A,
  640. .valid_rx_ant = ANT_AB,
  641. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  642. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  643. .ops = &iwl6000g2b_ops,
  644. .mod_params = &iwlagn_mod_params,
  645. .base_params = &iwl6000_coex_base_params,
  646. .bt_params = &iwl6000_bt_params,
  647. .ht_params = &iwl6000_ht_params,
  648. .need_dc_calib = true,
  649. .need_temp_offset_calib = 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. };
  653. struct iwl_cfg iwl6000g2b_bg_cfg = {
  654. .name = "6000 Series 1x2 BG Gen2b",
  655. .fw_name_pre = IWL6000G2B_FW_PRE,
  656. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  657. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  658. .sku = IWL_SKU_G,
  659. .valid_tx_ant = ANT_A,
  660. .valid_rx_ant = ANT_AB,
  661. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  662. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  663. .ops = &iwl6000g2b_ops,
  664. .mod_params = &iwlagn_mod_params,
  665. .base_params = &iwl6000_coex_base_params,
  666. .bt_params = &iwl6000_bt_params,
  667. .need_dc_calib = true,
  668. .need_temp_offset_calib = true,
  669. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  670. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  671. };
  672. /*
  673. * "i": Internal configuration, use internal Power Amplifier
  674. */
  675. struct iwl_cfg iwl6000i_2agn_cfg = {
  676. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  677. .fw_name_pre = IWL6000_FW_PRE,
  678. .ucode_api_max = IWL6000_UCODE_API_MAX,
  679. .ucode_api_min = IWL6000_UCODE_API_MIN,
  680. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  681. .valid_tx_ant = ANT_BC,
  682. .valid_rx_ant = ANT_BC,
  683. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  684. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  685. .ops = &iwl6000_ops,
  686. .mod_params = &iwlagn_mod_params,
  687. .base_params = &iwl6000_base_params,
  688. .ht_params = &iwl6000_ht_params,
  689. .pa_type = IWL_PA_INTERNAL,
  690. };
  691. struct iwl_cfg iwl6000i_2abg_cfg = {
  692. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  693. .fw_name_pre = IWL6000_FW_PRE,
  694. .ucode_api_max = IWL6000_UCODE_API_MAX,
  695. .ucode_api_min = IWL6000_UCODE_API_MIN,
  696. .sku = IWL_SKU_A|IWL_SKU_G,
  697. .valid_tx_ant = ANT_BC,
  698. .valid_rx_ant = ANT_BC,
  699. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  700. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  701. .ops = &iwl6000_ops,
  702. .mod_params = &iwlagn_mod_params,
  703. .base_params = &iwl6000_base_params,
  704. .pa_type = IWL_PA_INTERNAL,
  705. };
  706. struct iwl_cfg iwl6000i_2bg_cfg = {
  707. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  708. .fw_name_pre = IWL6000_FW_PRE,
  709. .ucode_api_max = IWL6000_UCODE_API_MAX,
  710. .ucode_api_min = IWL6000_UCODE_API_MIN,
  711. .sku = IWL_SKU_G,
  712. .valid_tx_ant = ANT_BC,
  713. .valid_rx_ant = ANT_BC,
  714. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  715. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  716. .ops = &iwl6000_ops,
  717. .mod_params = &iwlagn_mod_params,
  718. .base_params = &iwl6000_base_params,
  719. .pa_type = IWL_PA_INTERNAL,
  720. };
  721. struct iwl_cfg iwl6050_2agn_cfg = {
  722. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  723. .fw_name_pre = IWL6050_FW_PRE,
  724. .ucode_api_max = IWL6050_UCODE_API_MAX,
  725. .ucode_api_min = IWL6050_UCODE_API_MIN,
  726. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  727. .valid_tx_ant = ANT_AB,
  728. .valid_rx_ant = ANT_AB,
  729. .ops = &iwl6050_ops,
  730. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  731. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  732. .mod_params = &iwlagn_mod_params,
  733. .base_params = &iwl6050_base_params,
  734. .ht_params = &iwl6000_ht_params,
  735. .need_dc_calib = true,
  736. };
  737. struct iwl_cfg iwl6050g2_bgn_cfg = {
  738. .name = "6050 Series 1x2 BGN Gen2",
  739. .fw_name_pre = IWL6050_FW_PRE,
  740. .ucode_api_max = IWL6050_UCODE_API_MAX,
  741. .ucode_api_min = IWL6050_UCODE_API_MIN,
  742. .sku = IWL_SKU_G|IWL_SKU_N,
  743. .valid_tx_ant = ANT_A,
  744. .valid_rx_ant = ANT_AB,
  745. .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
  746. .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
  747. .ops = &iwl6050g2_ops,
  748. .mod_params = &iwlagn_mod_params,
  749. .base_params = &iwl6050_base_params,
  750. .ht_params = &iwl6000_ht_params,
  751. .need_dc_calib = true,
  752. };
  753. struct iwl_cfg iwl6050_2abg_cfg = {
  754. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  755. .fw_name_pre = IWL6050_FW_PRE,
  756. .ucode_api_max = IWL6050_UCODE_API_MAX,
  757. .ucode_api_min = IWL6050_UCODE_API_MIN,
  758. .sku = IWL_SKU_A|IWL_SKU_G,
  759. .valid_tx_ant = ANT_AB,
  760. .valid_rx_ant = ANT_AB,
  761. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  762. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  763. .ops = &iwl6050_ops,
  764. .mod_params = &iwlagn_mod_params,
  765. .base_params = &iwl6050_base_params,
  766. .need_dc_calib = true,
  767. };
  768. struct iwl_cfg iwl6000_3agn_cfg = {
  769. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  770. .fw_name_pre = IWL6000_FW_PRE,
  771. .ucode_api_max = IWL6000_UCODE_API_MAX,
  772. .ucode_api_min = IWL6000_UCODE_API_MIN,
  773. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  774. .valid_tx_ant = ANT_ABC,
  775. .valid_rx_ant = ANT_ABC,
  776. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  777. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  778. .ops = &iwl6000_ops,
  779. .mod_params = &iwlagn_mod_params,
  780. .base_params = &iwl6000_base_params,
  781. .ht_params = &iwl6000_ht_params,
  782. .need_dc_calib = true,
  783. };
  784. struct iwl_cfg iwl130_bgn_cfg = {
  785. .name = "Intel(R) 130 Series 1x1 BGN",
  786. .fw_name_pre = IWL6000G2B_FW_PRE,
  787. .ucode_api_max = IWL130_UCODE_API_MAX,
  788. .ucode_api_min = IWL130_UCODE_API_MIN,
  789. .sku = IWL_SKU_G|IWL_SKU_N,
  790. .valid_tx_ant = ANT_A,
  791. .valid_rx_ant = ANT_A,
  792. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  793. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  794. .ops = &iwl6000g2b_ops,
  795. .mod_params = &iwlagn_mod_params,
  796. .base_params = &iwl6000_coex_base_params,
  797. .bt_params = &iwl6000_bt_params,
  798. .ht_params = &iwl6000_ht_params,
  799. .need_dc_calib = true,
  800. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  801. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  802. };
  803. struct iwl_cfg iwl130_bg_cfg = {
  804. .name = "Intel(R) 130 Series 1x2 BG",
  805. .fw_name_pre = IWL6000G2B_FW_PRE,
  806. .ucode_api_max = IWL130_UCODE_API_MAX,
  807. .ucode_api_min = IWL130_UCODE_API_MIN,
  808. .sku = IWL_SKU_G,
  809. .valid_tx_ant = ANT_A,
  810. .valid_rx_ant = ANT_A,
  811. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  812. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  813. .ops = &iwl6000g2b_ops,
  814. .mod_params = &iwlagn_mod_params,
  815. .base_params = &iwl6000_coex_base_params,
  816. .bt_params = &iwl6000_bt_params,
  817. .need_dc_calib = true,
  818. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  819. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  820. };
  821. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  822. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  823. MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  824. MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  825. MODULE_FIRMWARE(IWL130_MODULE_FIRMWARE(IWL130_UCODE_API_MAX));