Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 2 | * 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 Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 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 | |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 28 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 29 | * |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 30 | * 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 Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 42 | #include "aniGlobal.h" |
| 43 | #include "limTypes.h" |
| 44 | #include "halMsgApi.h" |
| 45 | #include "sirParams.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 46 | tSirRetStatus limSendCFParams(tpAniSirGlobal pMac, tANI_U8 bssIdx, tANI_U8 cfpCount, tANI_U8 cfpPeriod); |
| 47 | tSirRetStatus limSendBeaconParams(tpAniSirGlobal pMac, |
| 48 | tpUpdateBeaconParams pUpdatedBcnParams, |
| 49 | tpPESession psessionEntry ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 50 | //tSirRetStatus limSendBeaconParams(tpAniSirGlobal pMac, tpUpdateBeaconParams pUpdatedBcnParams); |
Mohit Khanna | 4a70d26 | 2012-09-11 16:30:12 -0700 | [diff] [blame] | 51 | tSirRetStatus limSendModeUpdate(tpAniSirGlobal pMac, |
| 52 | tUpdateVHTOpMode *tempParam, |
| 53 | tpPESession psessionEntry ); |
Madan Mohan Koyyalamudi | c6226de | 2012-09-18 16:33:31 -0700 | [diff] [blame] | 54 | |
Sandeep Puligilla | 6034276 | 2014-01-30 21:05:37 +0530 | [diff] [blame] | 55 | #ifdef WLAN_FEATURE_11AC |
Madan Mohan Koyyalamudi | c6226de | 2012-09-18 16:33:31 -0700 | [diff] [blame] | 56 | tANI_U32 limGetCenterChannel(tpAniSirGlobal pMac, |
| 57 | tANI_U8 primarychanNum, |
| 58 | ePhyChanBondState secondaryChanOffset, |
| 59 | tANI_U8 chanWidth); |
Mohit Khanna | 4a70d26 | 2012-09-11 16:30:12 -0700 | [diff] [blame] | 60 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 61 | #if defined WLAN_FEATURE_VOWIFI |
| 62 | tSirRetStatus limSendSwitchChnlParams(tpAniSirGlobal pMac, tANI_U8 chnlNumber, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 63 | ePhyChanBondState secondaryChnlOffset, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 64 | tPowerdBm maxTxPower,tANI_U8 peSessionId); |
| 65 | #else |
| 66 | tSirRetStatus limSendSwitchChnlParams(tpAniSirGlobal pMac, tANI_U8 chnlNumber, |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 67 | ePhyChanBondState secondaryChnlOffset, |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 68 | tANI_U8 localPwrConstraint,tANI_U8 peSessionId); |
| 69 | #endif |
| 70 | tSirRetStatus limSendEdcaParams(tpAniSirGlobal pMac, tSirMacEdcaParamRecord *pUpdatedEdcaParams, tANI_U16 bssIdx, tANI_BOOLEAN highPerformance); |
| 71 | tSirRetStatus limSetLinkState(tpAniSirGlobal pMac, tSirLinkState state, tSirMacAddr bssId, |
| 72 | tSirMacAddr selfMac, tpSetLinkStateCallback callback, |
| 73 | void *callbackArg); |
| 74 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 75 | extern tSirRetStatus limSetLinkStateFT(tpAniSirGlobal pMac, tSirLinkState |
| 76 | state,tSirMacAddr bssId, tSirMacAddr selfMacAddr, int ft, tpPESession psessionEntry); |
| 77 | #endif |
schang | 86c22c4 | 2013-03-13 18:41:24 -0700 | [diff] [blame] | 78 | tSirRetStatus limSendSetTxPowerReq(tpAniSirGlobal pMac, tANI_U32 *pTxPowerReq); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 79 | tSirRetStatus limSendGetTxPowerReq(tpAniSirGlobal pMac, tpSirGetTxPowerReq pTxPowerReq); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 80 | void limSetActiveEdcaParams(tpAniSirGlobal pMac, tSirMacEdcaParamRecord *plocalEdcaParams, tpPESession psessionEntry); |
Sandeep Puligilla | 11d49a6 | 2014-01-30 12:05:16 +0530 | [diff] [blame] | 81 | tSirRetStatus limSendHT40OBSSScanInd(tpAniSirGlobal pMac, |
| 82 | tpPESession psessionEntry); |
| 83 | tSirRetStatus limSendHT40OBSSStopScanInd(tpAniSirGlobal pMac, |
| 84 | tpPESession psessionEntry); |
| 85 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 86 | #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 Puligilla | 6634ca1 | 2014-03-27 21:00:12 +0530 | [diff] [blame] | 91 | #define HT_BYTE1_FILTER_MASK 0xF8 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 92 | #define HT_BYTE2_FILTER_MASK 0xEB |
| 93 | #define HT_BYTE5_FILTER_MASK 0xFD |
| 94 | #define DS_PARAM_CHANNEL_MASK 0x0 |
Kiran Kumar Lokere | 6e45533 | 2013-06-21 19:31:12 -0700 | [diff] [blame] | 95 | #define VHTOP_CHWIDTH_MASK 0xFC |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 96 | |
Madan Mohan Koyyalamudi | a84edda | 2012-10-15 14:58:25 -0700 | [diff] [blame] | 97 | tSirRetStatus limSendBeaconFilterInfo(tpAniSirGlobal pMac, tpPESession psessionEntry); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 98 | |
Chet Lanctot | 186b573 | 2013-03-18 10:26:30 -0700 | [diff] [blame] | 99 | #ifdef WLAN_FEATURE_11W |
| 100 | tSirRetStatus limSendExcludeUnencryptInd(tpAniSirGlobal pMac, |
| 101 | tANI_BOOLEAN excludeUnenc, |
| 102 | tpPESession psessionEntry ); |
| 103 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 104 | #endif |