iwl-6000.c 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  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. };
  405. static const struct iwl_ops iwl6050_ops = {
  406. .lib = &iwl6000_lib,
  407. .hcmd = &iwlagn_hcmd,
  408. .utils = &iwlagn_hcmd_utils,
  409. .led = &iwlagn_led_ops,
  410. .nic = &iwl6050_nic_ops,
  411. };
  412. static const struct iwl_ops iwl6050g2_ops = {
  413. .lib = &iwl6000_lib,
  414. .hcmd = &iwlagn_hcmd,
  415. .utils = &iwlagn_hcmd_utils,
  416. .led = &iwlagn_led_ops,
  417. .nic = &iwl6050g2_nic_ops,
  418. };
  419. static const struct iwl_ops iwl6000g2b_ops = {
  420. .lib = &iwl6000g2b_lib,
  421. .hcmd = &iwlagn_bt_hcmd,
  422. .utils = &iwlagn_hcmd_utils,
  423. .led = &iwlagn_led_ops,
  424. };
  425. static struct iwl_base_params iwl6000_base_params = {
  426. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  427. .num_of_queues = IWLAGN_NUM_QUEUES,
  428. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  429. .pll_cfg_val = 0,
  430. .set_l0s = true,
  431. .use_bsm = false,
  432. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  433. .shadow_ram_support = true,
  434. .led_compensation = 51,
  435. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  436. .supports_idle = true,
  437. .adv_thermal_throttle = true,
  438. .support_ct_kill_exit = true,
  439. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  440. .chain_noise_scale = 1000,
  441. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  442. .max_event_log_size = 512,
  443. .ucode_tracing = true,
  444. .sensitivity_calib_by_driver = true,
  445. .chain_noise_calib_by_driver = true,
  446. };
  447. static struct iwl_base_params iwl6050_base_params = {
  448. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  449. .num_of_queues = IWLAGN_NUM_QUEUES,
  450. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  451. .pll_cfg_val = 0,
  452. .set_l0s = true,
  453. .use_bsm = false,
  454. .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
  455. .shadow_ram_support = true,
  456. .led_compensation = 51,
  457. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  458. .supports_idle = true,
  459. .adv_thermal_throttle = true,
  460. .support_ct_kill_exit = true,
  461. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  462. .chain_noise_scale = 1500,
  463. .monitor_recover_period = IWL_DEF_MONITORING_PERIOD,
  464. .max_event_log_size = 1024,
  465. .ucode_tracing = true,
  466. .sensitivity_calib_by_driver = true,
  467. .chain_noise_calib_by_driver = true,
  468. };
  469. static struct iwl_base_params iwl6000_coex_base_params = {
  470. .eeprom_size = OTP_LOW_IMAGE_SIZE,
  471. .num_of_queues = IWLAGN_NUM_QUEUES,
  472. .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES,
  473. .pll_cfg_val = 0,
  474. .set_l0s = true,
  475. .use_bsm = false,
  476. .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
  477. .shadow_ram_support = true,
  478. .led_compensation = 51,
  479. .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
  480. .supports_idle = true,
  481. .adv_thermal_throttle = true,
  482. .support_ct_kill_exit = true,
  483. .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
  484. .chain_noise_scale = 1000,
  485. .monitor_recover_period = IWL_LONG_MONITORING_PERIOD,
  486. .max_event_log_size = 512,
  487. .ucode_tracing = true,
  488. .sensitivity_calib_by_driver = true,
  489. .chain_noise_calib_by_driver = true,
  490. };
  491. static struct iwl_ht_params iwl6000_ht_params = {
  492. .ht_greenfield_support = true,
  493. .use_rts_for_aggregation = true, /* use rts/cts protection */
  494. };
  495. static struct iwl_bt_params iwl6000_bt_params = {
  496. .bt_statistics = true,
  497. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  498. .advanced_bt_coexist = true,
  499. .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
  500. .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
  501. };
  502. struct iwl_cfg iwl6000g2a_2agn_cfg = {
  503. .name = "6000 Series 2x2 AGN Gen2a",
  504. .fw_name_pre = IWL6000G2A_FW_PRE,
  505. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  506. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  507. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  508. .valid_tx_ant = ANT_AB,
  509. .valid_rx_ant = ANT_AB,
  510. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  511. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  512. .ops = &iwl6000_ops,
  513. .mod_params = &iwlagn_mod_params,
  514. .base_params = &iwl6000_base_params,
  515. .ht_params = &iwl6000_ht_params,
  516. .need_dc_calib = true,
  517. .need_temp_offset_calib = true,
  518. };
  519. struct iwl_cfg iwl6000g2a_2abg_cfg = {
  520. .name = "6000 Series 2x2 ABG Gen2a",
  521. .fw_name_pre = IWL6000G2A_FW_PRE,
  522. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  523. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  524. .sku = IWL_SKU_A|IWL_SKU_G,
  525. .valid_tx_ant = ANT_AB,
  526. .valid_rx_ant = ANT_AB,
  527. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  528. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  529. .ops = &iwl6000_ops,
  530. .mod_params = &iwlagn_mod_params,
  531. .base_params = &iwl6000_base_params,
  532. .need_dc_calib = true,
  533. .need_temp_offset_calib = true,
  534. };
  535. struct iwl_cfg iwl6000g2a_2bg_cfg = {
  536. .name = "6000 Series 2x2 BG Gen2a",
  537. .fw_name_pre = IWL6000G2A_FW_PRE,
  538. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  539. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  540. .sku = IWL_SKU_G,
  541. .valid_tx_ant = ANT_AB,
  542. .valid_rx_ant = ANT_AB,
  543. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  544. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  545. .ops = &iwl6000_ops,
  546. .mod_params = &iwlagn_mod_params,
  547. .base_params = &iwl6000_base_params,
  548. .need_dc_calib = true,
  549. .need_temp_offset_calib = true,
  550. };
  551. struct iwl_cfg iwl6000g2b_2agn_cfg = {
  552. .name = "6000 Series 2x2 AGN Gen2b",
  553. .fw_name_pre = IWL6000G2B_FW_PRE,
  554. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  555. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  556. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  557. .valid_tx_ant = ANT_AB,
  558. .valid_rx_ant = ANT_AB,
  559. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  560. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  561. .ops = &iwl6000g2b_ops,
  562. .mod_params = &iwlagn_mod_params,
  563. .base_params = &iwl6000_coex_base_params,
  564. .bt_params = &iwl6000_bt_params,
  565. .ht_params = &iwl6000_ht_params,
  566. .need_dc_calib = true,
  567. .need_temp_offset_calib = 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. };
  571. struct iwl_cfg iwl6000g2b_2abg_cfg = {
  572. .name = "6000 Series 2x2 ABG Gen2b",
  573. .fw_name_pre = IWL6000G2B_FW_PRE,
  574. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  575. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  576. .sku = IWL_SKU_A|IWL_SKU_G,
  577. .valid_tx_ant = ANT_AB,
  578. .valid_rx_ant = ANT_AB,
  579. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  580. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  581. .ops = &iwl6000g2b_ops,
  582. .mod_params = &iwlagn_mod_params,
  583. .base_params = &iwl6000_coex_base_params,
  584. .bt_params = &iwl6000_bt_params,
  585. .need_dc_calib = true,
  586. .need_temp_offset_calib = true,
  587. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  588. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  589. };
  590. struct iwl_cfg iwl6000g2b_2bgn_cfg = {
  591. .name = "6000 Series 2x2 BGN Gen2b",
  592. .fw_name_pre = IWL6000G2B_FW_PRE,
  593. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  594. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  595. .sku = IWL_SKU_G|IWL_SKU_N,
  596. .valid_tx_ant = ANT_AB,
  597. .valid_rx_ant = ANT_AB,
  598. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  599. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  600. .ops = &iwl6000g2b_ops,
  601. .mod_params = &iwlagn_mod_params,
  602. .base_params = &iwl6000_coex_base_params,
  603. .bt_params = &iwl6000_bt_params,
  604. .ht_params = &iwl6000_ht_params,
  605. .need_dc_calib = true,
  606. .need_temp_offset_calib = true,
  607. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  608. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  609. };
  610. struct iwl_cfg iwl6000g2b_2bg_cfg = {
  611. .name = "6000 Series 2x2 BG Gen2b",
  612. .fw_name_pre = IWL6000G2B_FW_PRE,
  613. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  614. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  615. .sku = IWL_SKU_G,
  616. .valid_tx_ant = ANT_AB,
  617. .valid_rx_ant = ANT_AB,
  618. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  619. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  620. .ops = &iwl6000g2b_ops,
  621. .mod_params = &iwlagn_mod_params,
  622. .base_params = &iwl6000_coex_base_params,
  623. .bt_params = &iwl6000_bt_params,
  624. .need_dc_calib = true,
  625. .need_temp_offset_calib = true,
  626. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  627. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  628. };
  629. struct iwl_cfg iwl6000g2b_bgn_cfg = {
  630. .name = "6000 Series 1x2 BGN Gen2b",
  631. .fw_name_pre = IWL6000G2B_FW_PRE,
  632. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  633. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  634. .sku = IWL_SKU_G|IWL_SKU_N,
  635. .valid_tx_ant = ANT_A,
  636. .valid_rx_ant = ANT_AB,
  637. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  638. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  639. .ops = &iwl6000g2b_ops,
  640. .mod_params = &iwlagn_mod_params,
  641. .base_params = &iwl6000_coex_base_params,
  642. .bt_params = &iwl6000_bt_params,
  643. .ht_params = &iwl6000_ht_params,
  644. .need_dc_calib = true,
  645. .need_temp_offset_calib = true,
  646. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  647. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  648. };
  649. struct iwl_cfg iwl6000g2b_bg_cfg = {
  650. .name = "6000 Series 1x2 BG Gen2b",
  651. .fw_name_pre = IWL6000G2B_FW_PRE,
  652. .ucode_api_max = IWL6000G2_UCODE_API_MAX,
  653. .ucode_api_min = IWL6000G2_UCODE_API_MIN,
  654. .sku = IWL_SKU_G,
  655. .valid_tx_ant = ANT_A,
  656. .valid_rx_ant = ANT_AB,
  657. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  658. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  659. .ops = &iwl6000g2b_ops,
  660. .mod_params = &iwlagn_mod_params,
  661. .base_params = &iwl6000_coex_base_params,
  662. .bt_params = &iwl6000_bt_params,
  663. .need_dc_calib = true,
  664. .need_temp_offset_calib = true,
  665. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  666. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  667. };
  668. /*
  669. * "i": Internal configuration, use internal Power Amplifier
  670. */
  671. struct iwl_cfg iwl6000i_2agn_cfg = {
  672. .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
  673. .fw_name_pre = IWL6000_FW_PRE,
  674. .ucode_api_max = IWL6000_UCODE_API_MAX,
  675. .ucode_api_min = IWL6000_UCODE_API_MIN,
  676. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  677. .valid_tx_ant = ANT_BC,
  678. .valid_rx_ant = ANT_BC,
  679. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  680. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  681. .ops = &iwl6000_ops,
  682. .mod_params = &iwlagn_mod_params,
  683. .base_params = &iwl6000_base_params,
  684. .ht_params = &iwl6000_ht_params,
  685. .pa_type = IWL_PA_INTERNAL,
  686. };
  687. struct iwl_cfg iwl6000i_2abg_cfg = {
  688. .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
  689. .fw_name_pre = IWL6000_FW_PRE,
  690. .ucode_api_max = IWL6000_UCODE_API_MAX,
  691. .ucode_api_min = IWL6000_UCODE_API_MIN,
  692. .sku = IWL_SKU_A|IWL_SKU_G,
  693. .valid_tx_ant = ANT_BC,
  694. .valid_rx_ant = ANT_BC,
  695. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  696. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  697. .ops = &iwl6000_ops,
  698. .mod_params = &iwlagn_mod_params,
  699. .base_params = &iwl6000_base_params,
  700. .pa_type = IWL_PA_INTERNAL,
  701. };
  702. struct iwl_cfg iwl6000i_2bg_cfg = {
  703. .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
  704. .fw_name_pre = IWL6000_FW_PRE,
  705. .ucode_api_max = IWL6000_UCODE_API_MAX,
  706. .ucode_api_min = IWL6000_UCODE_API_MIN,
  707. .sku = IWL_SKU_G,
  708. .valid_tx_ant = ANT_BC,
  709. .valid_rx_ant = ANT_BC,
  710. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  711. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  712. .ops = &iwl6000_ops,
  713. .mod_params = &iwlagn_mod_params,
  714. .base_params = &iwl6000_base_params,
  715. .pa_type = IWL_PA_INTERNAL,
  716. };
  717. struct iwl_cfg iwl6050_2agn_cfg = {
  718. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
  719. .fw_name_pre = IWL6050_FW_PRE,
  720. .ucode_api_max = IWL6050_UCODE_API_MAX,
  721. .ucode_api_min = IWL6050_UCODE_API_MIN,
  722. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  723. .valid_tx_ant = ANT_AB,
  724. .valid_rx_ant = ANT_AB,
  725. .ops = &iwl6050_ops,
  726. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  727. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  728. .mod_params = &iwlagn_mod_params,
  729. .base_params = &iwl6050_base_params,
  730. .ht_params = &iwl6000_ht_params,
  731. .need_dc_calib = true,
  732. };
  733. struct iwl_cfg iwl6050g2_bgn_cfg = {
  734. .name = "6050 Series 1x2 BGN Gen2",
  735. .fw_name_pre = IWL6050_FW_PRE,
  736. .ucode_api_max = IWL6050_UCODE_API_MAX,
  737. .ucode_api_min = IWL6050_UCODE_API_MIN,
  738. .sku = IWL_SKU_G|IWL_SKU_N,
  739. .valid_tx_ant = ANT_A,
  740. .valid_rx_ant = ANT_AB,
  741. .eeprom_ver = EEPROM_6050G2_EEPROM_VERSION,
  742. .eeprom_calib_ver = EEPROM_6050G2_TX_POWER_VERSION,
  743. .ops = &iwl6050g2_ops,
  744. .mod_params = &iwlagn_mod_params,
  745. .base_params = &iwl6050_base_params,
  746. .ht_params = &iwl6000_ht_params,
  747. .need_dc_calib = true,
  748. };
  749. struct iwl_cfg iwl6050_2abg_cfg = {
  750. .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
  751. .fw_name_pre = IWL6050_FW_PRE,
  752. .ucode_api_max = IWL6050_UCODE_API_MAX,
  753. .ucode_api_min = IWL6050_UCODE_API_MIN,
  754. .sku = IWL_SKU_A|IWL_SKU_G,
  755. .valid_tx_ant = ANT_AB,
  756. .valid_rx_ant = ANT_AB,
  757. .eeprom_ver = EEPROM_6050_EEPROM_VERSION,
  758. .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,
  759. .ops = &iwl6050_ops,
  760. .mod_params = &iwlagn_mod_params,
  761. .base_params = &iwl6050_base_params,
  762. .need_dc_calib = true,
  763. };
  764. struct iwl_cfg iwl6000_3agn_cfg = {
  765. .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
  766. .fw_name_pre = IWL6000_FW_PRE,
  767. .ucode_api_max = IWL6000_UCODE_API_MAX,
  768. .ucode_api_min = IWL6000_UCODE_API_MIN,
  769. .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
  770. .valid_tx_ant = ANT_ABC,
  771. .valid_rx_ant = ANT_ABC,
  772. .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
  773. .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
  774. .ops = &iwl6000_ops,
  775. .mod_params = &iwlagn_mod_params,
  776. .base_params = &iwl6000_base_params,
  777. .ht_params = &iwl6000_ht_params,
  778. .need_dc_calib = true,
  779. };
  780. struct iwl_cfg iwl130_bgn_cfg = {
  781. .name = "Intel(R) 130 Series 1x1 BGN",
  782. .fw_name_pre = IWL6000G2B_FW_PRE,
  783. .ucode_api_max = IWL130_UCODE_API_MAX,
  784. .ucode_api_min = IWL130_UCODE_API_MIN,
  785. .sku = IWL_SKU_G|IWL_SKU_N,
  786. .valid_tx_ant = ANT_A,
  787. .valid_rx_ant = ANT_A,
  788. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  789. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  790. .ops = &iwl6000g2b_ops,
  791. .mod_params = &iwlagn_mod_params,
  792. .base_params = &iwl6000_coex_base_params,
  793. .bt_params = &iwl6000_bt_params,
  794. .ht_params = &iwl6000_ht_params,
  795. .need_dc_calib = true,
  796. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  797. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  798. };
  799. struct iwl_cfg iwl130_bg_cfg = {
  800. .name = "Intel(R) 130 Series 1x2 BG",
  801. .fw_name_pre = IWL6000G2B_FW_PRE,
  802. .ucode_api_max = IWL130_UCODE_API_MAX,
  803. .ucode_api_min = IWL130_UCODE_API_MIN,
  804. .sku = IWL_SKU_G,
  805. .valid_tx_ant = ANT_A,
  806. .valid_rx_ant = ANT_A,
  807. .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION,
  808. .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION,
  809. .ops = &iwl6000g2b_ops,
  810. .mod_params = &iwlagn_mod_params,
  811. .base_params = &iwl6000_coex_base_params,
  812. .bt_params = &iwl6000_bt_params,
  813. .need_dc_calib = true,
  814. /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
  815. .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A,
  816. };
  817. MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
  818. MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
  819. MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  820. MODULE_FIRMWARE(IWL6000G2B_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
  821. MODULE_FIRMWARE(IWL130_MODULE_FIRMWARE(IWL130_UCODE_API_MAX));