blob: 3b63a0df737ef2ae93822ecdf469bd5070781ef2 [file] [log] [blame]
/*
* Copyright (c) 2011-2014 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* This file was originally distributed by Qualcomm Atheros, Inc.
* under proprietary terms before Copyright ownership was assigned
* to the Linux Foundation.
*/
/*
*
* This file utils_parser.h contains the utility function protos
* used internally by the parser
* Author: Chandra Modumudi
* Date: 02/11/02
* History:-
* Date Modified by Modification Information
* --------------------------------------------------------------------
*
*/
#ifndef __UTILS_PARSE_H__
#define __UTILS_PARSE_H__
#include <stdarg.h>
#include "sir_api.h"
#include "dot11f.h"
#include "utils_api.h"
void convert_ssid(tpAniSirGlobal, tSirMacSSid *, tDot11fIESSID *);
void convert_supp_rates(tpAniSirGlobal, tSirMacRateSet *, tDot11fIESuppRates *);
void convert_fh_params(tpAniSirGlobal, tSirMacFHParamSet *,
tDot11fIEFHParamSet *);
void convert_ext_supp_rates(tpAniSirGlobal, tSirMacRateSet *,
tDot11fIEExtSuppRates *);
void convert_qos_caps(tpAniSirGlobal, tSirMacQosCapabilityIE *,
tDot11fIEQOSCapsAp *);
void convert_qos_caps_station(tpAniSirGlobal, tSirMacQosCapabilityStaIE *,
tDot11fIEQOSCapsStation *);
tSirRetStatus convert_wpa(tpAniSirGlobal, tSirMacWpaInfo *, tDot11fIEWPA *);
tSirRetStatus convert_wpa_opaque(tpAniSirGlobal, tSirMacWpaInfo *,
tDot11fIEWPAOpaque *);
tSirRetStatus convert_wapi_opaque(tpAniSirGlobal, tSirMacWapiInfo *,
tDot11fIEWAPIOpaque *);
tSirRetStatus convert_rsn(tpAniSirGlobal, tSirMacRsnInfo *, tDot11fIERSN *);
tSirRetStatus convert_rsn_opaque(tpAniSirGlobal, tSirMacRsnInfo *,
tDot11fIERSNOpaque *);
void convert_power_caps(tpAniSirGlobal, tSirMacPowerCapabilityIE *,
tDot11fIEPowerCaps *);
void convert_supp_channels(tpAniSirGlobal, tSirMacSupportedChannelIE *,
tDot11fIESuppChannels *);
void convert_cf_params(tpAniSirGlobal, tSirMacCfParamSet *, tDot11fIECFParams *);
void convert_tim(tpAniSirGlobal, tSirMacTim *, tDot11fIETIM *);
void convert_country(tpAniSirGlobal, tSirCountryInformation *,
tDot11fIECountry *);
void convert_wmm_params(tpAniSirGlobal, tSirMacEdcaParamSetIE *,
tDot11fIEWMMParams *);
void convert_erp_info(tpAniSirGlobal, tSirMacErpInfo *, tDot11fIEERPInfo *);
void convert_edca_param(tpAniSirGlobal, tSirMacEdcaParamSetIE *,
tDot11fIEEDCAParamSet *);
void convert_tspec(tpAniSirGlobal, tSirMacTspecIE *, tDot11fIETSPEC *);
tSirRetStatus convert_tclas(tpAniSirGlobal, tSirTclasInfo *, tDot11fIETCLAS *);
void convert_wmmtspec(tpAniSirGlobal, tSirMacTspecIE *, tDot11fIEWMMTSPEC *);
tSirRetStatus convert_wmmtclas(tpAniSirGlobal, tSirTclasInfo *,
tDot11fIEWMMTCLAS *);
void convert_ts_delay(tpAniSirGlobal, tSirMacTsDelayIE *, tDot11fIETSDelay *);
void convert_schedule(tpAniSirGlobal, tSirMacScheduleIE *, tDot11fIESchedule *);
void convert_wmm_schedule(tpAniSirGlobal, tSirMacScheduleIE *,
tDot11fIEWMMSchedule *);
tSirRetStatus convert_wsc_opaque(tpAniSirGlobal, tSirAddie *,
tDot11fIEWscIEOpaque *);
tSirRetStatus convert_p2p_opaque(tpAniSirGlobal, tSirAddie *,
tDot11fIEP2PIEOpaque *);
#ifdef WLAN_FEATURE_WFD
tSirRetStatus convert_wfd_opaque(tpAniSirGlobal, tSirAddie *,
tDot11fIEWFDIEOpaque *);
#endif
void convert_qos_mapset_frame(tpAniSirGlobal, tSirQosMapSet *,
tDot11fIEQosMapSet *);
#endif