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