blob: 645cc866ad8ea85782b4d657b3716c3e1aa8f004 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -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.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080020 */
Kiet Lam842dad02014-02-18 18:44:02 -080021
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
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080028/*
Jeff Johnson295189b2012-06-20 16:38:30 -070029 *
Jeff Johnson295189b2012-06-20 16:38:30 -070030 * limSendMessages.h: Provides functions to send messages or Indications to HAL.
31 * Author: Sunit Bhatia
32 * Date: 09/21/2006
33 * History:-
34 * Date Modified by Modification Information
35 *
36 * --------------------------------------------------------------------------
37 *
38 */
39#ifndef __LIM_SEND_MESSAGES_H
40#define __LIM_SEND_MESSAGES_H
41
Jeff Johnson295189b2012-06-20 16:38:30 -070042#include "aniGlobal.h"
43#include "limTypes.h"
44#include "halMsgApi.h"
45#include "sirParams.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070046tSirRetStatus limSendCFParams(tpAniSirGlobal pMac, tANI_U8 bssIdx, tANI_U8 cfpCount, tANI_U8 cfpPeriod);
47tSirRetStatus limSendBeaconParams(tpAniSirGlobal pMac,
48 tpUpdateBeaconParams pUpdatedBcnParams,
49 tpPESession psessionEntry );
Jeff Johnson295189b2012-06-20 16:38:30 -070050//tSirRetStatus limSendBeaconParams(tpAniSirGlobal pMac, tpUpdateBeaconParams pUpdatedBcnParams);
Mohit Khanna4a70d262012-09-11 16:30:12 -070051tSirRetStatus limSendModeUpdate(tpAniSirGlobal pMac,
52 tUpdateVHTOpMode *tempParam,
53 tpPESession psessionEntry );
Madan Mohan Koyyalamudic6226de2012-09-18 16:33:31 -070054
Sandeep Puligilla60342762014-01-30 21:05:37 +053055#ifdef WLAN_FEATURE_11AC
Madan Mohan Koyyalamudic6226de2012-09-18 16:33:31 -070056tANI_U32 limGetCenterChannel(tpAniSirGlobal pMac,
57 tANI_U8 primarychanNum,
58 ePhyChanBondState secondaryChanOffset,
59 tANI_U8 chanWidth);
Mohit Khanna4a70d262012-09-11 16:30:12 -070060#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070061#if defined WLAN_FEATURE_VOWIFI
62tSirRetStatus limSendSwitchChnlParams(tpAniSirGlobal pMac, tANI_U8 chnlNumber,
Jeff Johnsone7245742012-09-05 17:12:55 -070063 ePhyChanBondState secondaryChnlOffset,
Jeff Johnson295189b2012-06-20 16:38:30 -070064 tPowerdBm maxTxPower,tANI_U8 peSessionId);
65#else
66tSirRetStatus limSendSwitchChnlParams(tpAniSirGlobal pMac, tANI_U8 chnlNumber,
Jeff Johnsone7245742012-09-05 17:12:55 -070067 ePhyChanBondState secondaryChnlOffset,
Jeff Johnson295189b2012-06-20 16:38:30 -070068 tANI_U8 localPwrConstraint,tANI_U8 peSessionId);
69#endif
70tSirRetStatus limSendEdcaParams(tpAniSirGlobal pMac, tSirMacEdcaParamRecord *pUpdatedEdcaParams, tANI_U16 bssIdx, tANI_BOOLEAN highPerformance);
71tSirRetStatus limSetLinkState(tpAniSirGlobal pMac, tSirLinkState state, tSirMacAddr bssId,
72 tSirMacAddr selfMac, tpSetLinkStateCallback callback,
73 void *callbackArg);
74#ifdef WLAN_FEATURE_VOWIFI_11R
75extern tSirRetStatus limSetLinkStateFT(tpAniSirGlobal pMac, tSirLinkState
76state,tSirMacAddr bssId, tSirMacAddr selfMacAddr, int ft, tpPESession psessionEntry);
77#endif
schang86c22c42013-03-13 18:41:24 -070078tSirRetStatus limSendSetTxPowerReq(tpAniSirGlobal pMac, tANI_U32 *pTxPowerReq);
Jeff Johnson295189b2012-06-20 16:38:30 -070079tSirRetStatus limSendGetTxPowerReq(tpAniSirGlobal pMac, tpSirGetTxPowerReq pTxPowerReq);
Jeff Johnson295189b2012-06-20 16:38:30 -070080void limSetActiveEdcaParams(tpAniSirGlobal pMac, tSirMacEdcaParamRecord *plocalEdcaParams, tpPESession psessionEntry);
Sandeep Puligilla11d49a62014-01-30 12:05:16 +053081tSirRetStatus limSendHT40OBSSScanInd(tpAniSirGlobal pMac,
82 tpPESession psessionEntry);
83tSirRetStatus limSendHT40OBSSStopScanInd(tpAniSirGlobal pMac,
84 tpPESession psessionEntry);
85
Jeff Johnson295189b2012-06-20 16:38:30 -070086#define CAPABILITY_FILTER_MASK 0x73CF
87#define ERP_FILTER_MASK 0xF8
88#define EDCA_FILTER_MASK 0xF0
89#define QOS_FILTER_MASK 0xF0
90#define HT_BYTE0_FILTER_MASK 0x0
Sandeep Puligilla6634ca12014-03-27 21:00:12 +053091#define HT_BYTE1_FILTER_MASK 0xF8
Jeff Johnson295189b2012-06-20 16:38:30 -070092#define HT_BYTE2_FILTER_MASK 0xEB
93#define HT_BYTE5_FILTER_MASK 0xFD
94#define DS_PARAM_CHANNEL_MASK 0x0
Kiran Kumar Lokere6e455332013-06-21 19:31:12 -070095#define VHTOP_CHWIDTH_MASK 0xFC
Jeff Johnson295189b2012-06-20 16:38:30 -070096
Madan Mohan Koyyalamudia84edda2012-10-15 14:58:25 -070097tSirRetStatus limSendBeaconFilterInfo(tpAniSirGlobal pMac, tpPESession psessionEntry);
Jeff Johnson295189b2012-06-20 16:38:30 -070098
Chet Lanctot186b5732013-03-18 10:26:30 -070099#ifdef WLAN_FEATURE_11W
100tSirRetStatus limSendExcludeUnencryptInd(tpAniSirGlobal pMac,
101 tANI_BOOLEAN excludeUnenc,
102 tpPESession psessionEntry );
103#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700104#endif