blob: 37b5b3eab8a0a9861b9ac613fb5440b933dcd818 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala9c070ad2013-01-08 21:16:34 -08002 * Copyright (c) 2012-2013, 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/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42/*
43 *
44 * Airgo Networks, Inc proprietary. All rights reserved.
45 * limSendMessages.h: Provides functions to send messages or Indications to HAL.
46 * Author: Sunit Bhatia
47 * Date: 09/21/2006
48 * History:-
49 * Date Modified by Modification Information
50 *
51 * --------------------------------------------------------------------------
52 *
53 */
54#ifndef __LIM_SEND_MESSAGES_H
55#define __LIM_SEND_MESSAGES_H
56
Jeff Johnson295189b2012-06-20 16:38:30 -070057#include "aniGlobal.h"
58#include "limTypes.h"
59#include "halMsgApi.h"
60#include "sirParams.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070061tSirRetStatus limSendCFParams(tpAniSirGlobal pMac, tANI_U8 bssIdx, tANI_U8 cfpCount, tANI_U8 cfpPeriod);
62tSirRetStatus limSendBeaconParams(tpAniSirGlobal pMac,
63 tpUpdateBeaconParams pUpdatedBcnParams,
64 tpPESession psessionEntry );
Jeff Johnson295189b2012-06-20 16:38:30 -070065//tSirRetStatus limSendBeaconParams(tpAniSirGlobal pMac, tpUpdateBeaconParams pUpdatedBcnParams);
Mohit Khanna4a70d262012-09-11 16:30:12 -070066#ifdef WLAN_FEATURE_11AC
67tSirRetStatus limSendModeUpdate(tpAniSirGlobal pMac,
68 tUpdateVHTOpMode *tempParam,
69 tpPESession psessionEntry );
Madan Mohan Koyyalamudic6226de2012-09-18 16:33:31 -070070
71tANI_U32 limGetCenterChannel(tpAniSirGlobal pMac,
72 tANI_U8 primarychanNum,
73 ePhyChanBondState secondaryChanOffset,
74 tANI_U8 chanWidth);
Mohit Khanna4a70d262012-09-11 16:30:12 -070075#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070076#if defined WLAN_FEATURE_VOWIFI
77tSirRetStatus limSendSwitchChnlParams(tpAniSirGlobal pMac, tANI_U8 chnlNumber,
Jeff Johnsone7245742012-09-05 17:12:55 -070078 ePhyChanBondState secondaryChnlOffset,
Jeff Johnson295189b2012-06-20 16:38:30 -070079 tPowerdBm maxTxPower,tANI_U8 peSessionId);
80#else
81tSirRetStatus limSendSwitchChnlParams(tpAniSirGlobal pMac, tANI_U8 chnlNumber,
Jeff Johnsone7245742012-09-05 17:12:55 -070082 ePhyChanBondState secondaryChnlOffset,
Jeff Johnson295189b2012-06-20 16:38:30 -070083 tANI_U8 localPwrConstraint,tANI_U8 peSessionId);
84#endif
85tSirRetStatus limSendEdcaParams(tpAniSirGlobal pMac, tSirMacEdcaParamRecord *pUpdatedEdcaParams, tANI_U16 bssIdx, tANI_BOOLEAN highPerformance);
86tSirRetStatus limSetLinkState(tpAniSirGlobal pMac, tSirLinkState state, tSirMacAddr bssId,
87 tSirMacAddr selfMac, tpSetLinkStateCallback callback,
88 void *callbackArg);
89#ifdef WLAN_FEATURE_VOWIFI_11R
90extern tSirRetStatus limSetLinkStateFT(tpAniSirGlobal pMac, tSirLinkState
91state,tSirMacAddr bssId, tSirMacAddr selfMacAddr, int ft, tpPESession psessionEntry);
92#endif
schangd82195a2013-03-13 18:41:24 -070093tSirRetStatus limSendSetTxPowerReq(tpAniSirGlobal pMac, tANI_U32 *pTxPowerReq);
Jeff Johnson295189b2012-06-20 16:38:30 -070094tSirRetStatus limSendGetTxPowerReq(tpAniSirGlobal pMac, tpSirGetTxPowerReq pTxPowerReq);
Jeff Johnson295189b2012-06-20 16:38:30 -070095void limSetActiveEdcaParams(tpAniSirGlobal pMac, tSirMacEdcaParamRecord *plocalEdcaParams, tpPESession psessionEntry);
Jeff Johnson295189b2012-06-20 16:38:30 -070096#define CAPABILITY_FILTER_MASK 0x73CF
97#define ERP_FILTER_MASK 0xF8
98#define EDCA_FILTER_MASK 0xF0
99#define QOS_FILTER_MASK 0xF0
100#define HT_BYTE0_FILTER_MASK 0x0
101#define HT_BYTE2_FILTER_MASK 0xEB
102#define HT_BYTE5_FILTER_MASK 0xFD
103#define DS_PARAM_CHANNEL_MASK 0x0
Kiran Kumar Lokere71d42dc2013-06-21 19:31:12 -0700104#define VHTOP_CHWIDTH_MASK 0xFC
Jeff Johnson295189b2012-06-20 16:38:30 -0700105
Madan Mohan Koyyalamudia84edda2012-10-15 14:58:25 -0700106tSirRetStatus limSendBeaconFilterInfo(tpAniSirGlobal pMac, tpPESession psessionEntry);
Jeff Johnson295189b2012-06-20 16:38:30 -0700107
Mohit Khannac0b992f2012-12-04 15:08:18 -0800108#ifdef FEATURE_WLAN_TDLS_INTERNAL
109tSirRetStatus limSendTdlsLinkEstablish(tpAniSirGlobal pMac, tANI_U8 bIsPeerResponder, tANI_U8 linkIdenOffset, \
110 tANI_U8 ptiBufStatusOffset, tANI_U8 ptiFrameLen, tANI_U8 *ptiFrame, tANI_U8 *extCapability);
111tSirRetStatus limSendTdlsLinkTeardown(tpAniSirGlobal pMac, tANI_U16 staId);
112#endif
Chet Lanctota96bb432013-03-18 10:26:30 -0700113#ifdef WLAN_FEATURE_11W
114tSirRetStatus limSendExcludeUnencryptInd(tpAniSirGlobal pMac,
115 tANI_BOOLEAN excludeUnenc,
116 tpPESession psessionEntry );
117#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700118#endif