blob: 3b63a0df737ef2ae93822ecdf469bd5070781ef2 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2011-2014 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28/*
29 *
30 * This file utils_parser.h contains the utility function protos
31 * used internally by the parser
32 * Author: Chandra Modumudi
33 * Date: 02/11/02
34 * History:-
35 * Date Modified by Modification Information
36 * --------------------------------------------------------------------
37 *
38 */
39#ifndef __UTILS_PARSE_H__
40#define __UTILS_PARSE_H__
41
42#include <stdarg.h>
43#include "sir_api.h"
44#include "dot11f.h"
45#include "utils_api.h"
46
47void convert_ssid(tpAniSirGlobal, tSirMacSSid *, tDot11fIESSID *);
48void convert_supp_rates(tpAniSirGlobal, tSirMacRateSet *, tDot11fIESuppRates *);
49void convert_fh_params(tpAniSirGlobal, tSirMacFHParamSet *,
50 tDot11fIEFHParamSet *);
51void convert_ext_supp_rates(tpAniSirGlobal, tSirMacRateSet *,
52 tDot11fIEExtSuppRates *);
53void convert_qos_caps(tpAniSirGlobal, tSirMacQosCapabilityIE *,
54 tDot11fIEQOSCapsAp *);
55void convert_qos_caps_station(tpAniSirGlobal, tSirMacQosCapabilityStaIE *,
56 tDot11fIEQOSCapsStation *);
57tSirRetStatus convert_wpa(tpAniSirGlobal, tSirMacWpaInfo *, tDot11fIEWPA *);
58tSirRetStatus convert_wpa_opaque(tpAniSirGlobal, tSirMacWpaInfo *,
59 tDot11fIEWPAOpaque *);
60tSirRetStatus convert_wapi_opaque(tpAniSirGlobal, tSirMacWapiInfo *,
61 tDot11fIEWAPIOpaque *);
62tSirRetStatus convert_rsn(tpAniSirGlobal, tSirMacRsnInfo *, tDot11fIERSN *);
63tSirRetStatus convert_rsn_opaque(tpAniSirGlobal, tSirMacRsnInfo *,
64 tDot11fIERSNOpaque *);
65void convert_power_caps(tpAniSirGlobal, tSirMacPowerCapabilityIE *,
66 tDot11fIEPowerCaps *);
67void convert_supp_channels(tpAniSirGlobal, tSirMacSupportedChannelIE *,
68 tDot11fIESuppChannels *);
69void convert_cf_params(tpAniSirGlobal, tSirMacCfParamSet *, tDot11fIECFParams *);
70void convert_tim(tpAniSirGlobal, tSirMacTim *, tDot11fIETIM *);
71void convert_country(tpAniSirGlobal, tSirCountryInformation *,
72 tDot11fIECountry *);
73void convert_wmm_params(tpAniSirGlobal, tSirMacEdcaParamSetIE *,
74 tDot11fIEWMMParams *);
75void convert_erp_info(tpAniSirGlobal, tSirMacErpInfo *, tDot11fIEERPInfo *);
76void convert_edca_param(tpAniSirGlobal, tSirMacEdcaParamSetIE *,
77 tDot11fIEEDCAParamSet *);
78void convert_tspec(tpAniSirGlobal, tSirMacTspecIE *, tDot11fIETSPEC *);
79tSirRetStatus convert_tclas(tpAniSirGlobal, tSirTclasInfo *, tDot11fIETCLAS *);
80void convert_wmmtspec(tpAniSirGlobal, tSirMacTspecIE *, tDot11fIEWMMTSPEC *);
81tSirRetStatus convert_wmmtclas(tpAniSirGlobal, tSirTclasInfo *,
82 tDot11fIEWMMTCLAS *);
83void convert_ts_delay(tpAniSirGlobal, tSirMacTsDelayIE *, tDot11fIETSDelay *);
84void convert_schedule(tpAniSirGlobal, tSirMacScheduleIE *, tDot11fIESchedule *);
85void convert_wmm_schedule(tpAniSirGlobal, tSirMacScheduleIE *,
86 tDot11fIEWMMSchedule *);
87tSirRetStatus convert_wsc_opaque(tpAniSirGlobal, tSirAddie *,
88 tDot11fIEWscIEOpaque *);
89tSirRetStatus convert_p2p_opaque(tpAniSirGlobal, tSirAddie *,
90 tDot11fIEP2PIEOpaque *);
91#ifdef WLAN_FEATURE_WFD
92tSirRetStatus convert_wfd_opaque(tpAniSirGlobal, tSirAddie *,
93 tDot11fIEWFDIEOpaque *);
94#endif
95void convert_qos_mapset_frame(tpAniSirGlobal, tSirQosMapSet *,
96 tDot11fIEQosMapSet *);
97
98#endif