Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Hanumantha Reddy Pothula | 28b1e65 | 2015-02-02 21:10:13 +0530 | [diff] [blame] | 2 | * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved. |
Kiet Lam | 0fb93dd | 2014-02-19 00:32:59 -0800 | [diff] [blame] | 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 | 0fb93dd | 2014-02-19 00:32:59 -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 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 28 | #if !defined( __SMEINSIDE_H ) |
| 29 | #define __SMEINSIDE_H |
| 30 | |
| 31 | |
| 32 | /**========================================================================= |
| 33 | |
| 34 | \file smeInside.h |
| 35 | |
| 36 | \brief prototype for SME structures and APIs used insside SME |
| 37 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 38 | |
| 39 | ========================================================================*/ |
| 40 | |
| 41 | /* $Header$ */ |
| 42 | |
| 43 | /*-------------------------------------------------------------------------- |
| 44 | Include Files |
| 45 | ------------------------------------------------------------------------*/ |
| 46 | #include "vos_status.h" |
| 47 | #include "vos_lock.h" |
| 48 | #include "vos_trace.h" |
| 49 | #include "vos_memory.h" |
| 50 | #include "vos_types.h" |
| 51 | #include "sirApi.h" |
| 52 | #include "csrInternal.h" |
| 53 | #include "sme_QosApi.h" |
| 54 | #include "smeQosInternal.h" |
| 55 | |
| 56 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 57 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 58 | #include "oemDataInternal.h" |
| 59 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 60 | |
| 61 | #if defined WLAN_FEATURE_VOWIFI |
| 62 | #include "sme_RrmApi.h" |
| 63 | #endif |
| 64 | |
| 65 | |
| 66 | /*-------------------------------------------------------------------------- |
| 67 | Type declarations |
| 68 | ------------------------------------------------------------------------*/ |
| 69 | |
Gopichand Nakkala | 976e325 | 2013-01-03 15:45:56 -0800 | [diff] [blame] | 70 | #define SME_TOTAL_COMMAND 30 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 71 | |
| 72 | |
| 73 | typedef struct sGenericPmcCmd |
| 74 | { |
| 75 | tANI_U32 size; //sizeof the data in the union, if any |
| 76 | tRequestFullPowerReason fullPowerReason; |
| 77 | tANI_BOOLEAN fReleaseWhenDone; //if TRUE, the command shall not put back to the queue, free te memory instead. |
| 78 | union |
| 79 | { |
| 80 | tExitBmpsInfo exitBmpsInfo; |
| 81 | tSirSmeWowlEnterParams enterWowlInfo; |
| 82 | }u; |
| 83 | } tGenericPmcCmd; |
| 84 | |
| 85 | |
| 86 | typedef struct sGenericQosCmd |
| 87 | { |
| 88 | sme_QosWmmTspecInfo tspecInfo; |
| 89 | sme_QosEdcaAcType ac; |
| 90 | v_U8_t tspec_mask; |
| 91 | } tGenericQosCmd; |
| 92 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 93 | typedef struct sRemainChlCmd |
| 94 | { |
| 95 | tANI_U8 chn; |
| 96 | tANI_U8 phyMode; |
| 97 | tANI_U32 duration; |
Gopichand Nakkala | 924e455 | 2013-05-08 19:18:14 +0530 | [diff] [blame] | 98 | tANI_U8 isP2PProbeReqAllowed; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 99 | void* callback; |
| 100 | void* callbackCtx; |
| 101 | }tRemainChlCmd; |
| 102 | |
| 103 | typedef struct sNoACmd |
| 104 | { |
| 105 | tP2pPsConfig NoA; |
| 106 | } tNoACmd; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 107 | #ifdef FEATURE_WLAN_TDLS |
| 108 | typedef struct TdlsSendMgmtInfo |
| 109 | { |
| 110 | tSirMacAddr peerMac; |
| 111 | tANI_U8 frameType; |
| 112 | tANI_U8 dialog; |
| 113 | tANI_U16 statusCode; |
Hoonki Lee | a34dd89 | 2013-02-05 22:56:02 -0800 | [diff] [blame] | 114 | tANI_U8 responder; |
Pradeep Reddy POTTETI | ca171f8 | 2014-03-21 14:17:35 +0530 | [diff] [blame] | 115 | tANI_U32 peerCapability; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 116 | tANI_U8 *buf; |
| 117 | tANI_U8 len; |
| 118 | } tTdlsSendMgmtCmdInfo; |
| 119 | |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 120 | typedef struct TdlsLinkEstablishInfo |
| 121 | { |
| 122 | tSirMacAddr peerMac; |
| 123 | tANI_U8 uapsdQueues; |
| 124 | tANI_U8 maxSp; |
| 125 | tANI_U8 isBufSta; |
Naresh Jayaram | dff88f9 | 2014-02-12 21:44:29 +0530 | [diff] [blame] | 126 | tANI_U8 isOffChannelSupported; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 127 | tANI_U8 isResponder; |
Naresh Jayaram | dff88f9 | 2014-02-12 21:44:29 +0530 | [diff] [blame] | 128 | tANI_U8 supportedChannelsLen; |
| 129 | tANI_U8 supportedChannels[SIR_MAC_MAX_SUPP_CHANNELS]; |
| 130 | tANI_U8 supportedOperClassesLen; |
| 131 | tANI_U8 supportedOperClasses[SIR_MAC_MAX_SUPP_OPER_CLASSES]; |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 132 | } tTdlsLinkEstablishCmdInfo; |
| 133 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 134 | typedef struct TdlsAddStaInfo |
| 135 | { |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 136 | eTdlsAddOper tdlsAddOper; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 137 | tSirMacAddr peerMac; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 138 | tANI_U16 capability; |
| 139 | tANI_U8 extnCapability[SIR_MAC_MAX_EXTN_CAP]; |
| 140 | tANI_U8 supportedRatesLen; |
| 141 | tANI_U8 supportedRates[SIR_MAC_MAX_SUPP_RATES]; |
Hoonki Lee | 66b75f3 | 2013-04-16 18:30:07 -0700 | [diff] [blame] | 142 | tANI_U8 htcap_present; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 143 | tSirHTCap HTCap; |
Hoonki Lee | 66b75f3 | 2013-04-16 18:30:07 -0700 | [diff] [blame] | 144 | tANI_U8 vhtcap_present; |
Gopichand Nakkala | 681989c | 2013-03-06 22:27:48 -0800 | [diff] [blame] | 145 | tSirVHTCap VHTCap; |
| 146 | tANI_U8 uapsdQueues; |
| 147 | tANI_U8 maxSp; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 148 | } tTdlsAddStaCmdInfo; |
| 149 | |
| 150 | typedef struct TdlsDelStaInfo |
| 151 | { |
| 152 | tSirMacAddr peerMac; |
| 153 | } tTdlsDelStaCmdInfo; |
Atul Mittal | c0f739f | 2014-07-31 13:47:47 +0530 | [diff] [blame] | 154 | |
| 155 | // tdlsoffchan |
| 156 | typedef struct TdlsChanSwitchInfo |
| 157 | { |
| 158 | tSirMacAddr peerMac; |
| 159 | tANI_U8 tdlsOffCh; |
| 160 | tANI_U8 tdlsOffChBwOffset; |
| 161 | tANI_U8 tdlsSwMode; |
| 162 | } tTdlsChanSwitchCmdInfo; |
| 163 | |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 164 | /* |
| 165 | * TDLS cmd info, CMD from SME to PE. |
| 166 | */ |
| 167 | typedef struct s_tdls_cmd |
| 168 | { |
| 169 | tANI_U32 size; |
| 170 | union |
| 171 | { |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 172 | tTdlsLinkEstablishCmdInfo tdlsLinkEstablishCmdInfo; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 173 | tTdlsSendMgmtCmdInfo tdlsSendMgmtCmdInfo; |
| 174 | tTdlsAddStaCmdInfo tdlsAddStaCmdInfo; |
| 175 | tTdlsDelStaCmdInfo tdlsDelStaCmdInfo; |
Atul Mittal | c0f739f | 2014-07-31 13:47:47 +0530 | [diff] [blame] | 176 | tTdlsChanSwitchCmdInfo tdlsChanSwitchCmdInfo; //tdlsoffchan |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 177 | }u; |
| 178 | } tTdlsCmd; |
| 179 | #endif /* FEATURE_WLAN_TDLS */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 180 | |
| 181 | typedef struct tagSmeCmd |
| 182 | { |
| 183 | tListElem Link; |
| 184 | eSmeCommandType command; |
| 185 | tANI_U32 sessionId; |
| 186 | union |
| 187 | { |
| 188 | tScanCmd scanCmd; |
| 189 | tRoamCmd roamCmd; |
| 190 | tWmStatusChangeCmd wmStatusChangeCmd; |
| 191 | tSetKeyCmd setKeyCmd; |
| 192 | tRemoveKeyCmd removeKeyCmd; |
| 193 | tGenericPmcCmd pmcCmd; |
| 194 | tGenericQosCmd qosCmd; |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 195 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 196 | tOemDataCmd oemDataCmd; |
| 197 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 198 | tRemainChlCmd remainChlCmd; |
| 199 | tNoACmd NoACmd; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 200 | tAddStaForSessionCmd addStaSessionCmd; |
| 201 | tDelStaForSessionCmd delStaSessionCmd; |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 202 | #ifdef FEATURE_WLAN_TDLS |
| 203 | tTdlsCmd tdlsCmd; |
| 204 | #endif |
Hanumantha Reddy Pothula | 28b1e65 | 2015-02-02 21:10:13 +0530 | [diff] [blame] | 205 | tSirPNOScanReq pnoInfo; |
Siddharth Bhal | d8a95e8 | 2015-02-12 20:14:52 +0530 | [diff] [blame] | 206 | tSirSpoofMacAddrReq macAddrSpoofCmd; |
Siddharth Bhal | 6424617 | 2015-02-27 01:04:37 +0530 | [diff] [blame] | 207 | tAniGetFrameLogReq getFramelogCmd; |
Srinivas Dasari | a3f11c0 | 2015-03-20 13:15:20 +0530 | [diff] [blame] | 208 | tpNanRequest pNanReq; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 209 | }u; |
| 210 | }tSmeCmd; |
| 211 | |
| 212 | |
| 213 | |
| 214 | /*-------------------------------------------------------------------------- |
| 215 | Internal to SME |
| 216 | ------------------------------------------------------------------------*/ |
| 217 | |
| 218 | //To get a command buffer |
| 219 | //Return: NULL if there no more command buffer left |
| 220 | tSmeCmd *smeGetCommandBuffer( tpAniSirGlobal pMac ); |
| 221 | void smePushCommand( tpAniSirGlobal pMac, tSmeCmd *pCmd, tANI_BOOLEAN fHighPriority ); |
| 222 | void smeProcessPendingQueue( tpAniSirGlobal pMac ); |
| 223 | void smeReleaseCommand(tpAniSirGlobal pMac, tSmeCmd *pCmd); |
Madan Mohan Koyyalamudi | 2125599 | 2013-08-01 18:00:25 +0530 | [diff] [blame] | 224 | void purgeSmeSessionCmdList(tpAniSirGlobal pMac, tANI_U32 sessionId, |
| 225 | tDblLinkList *pList); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 226 | tANI_BOOLEAN smeCommandPending(tpAniSirGlobal pMac); |
| 227 | tANI_BOOLEAN pmcProcessCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 228 | //this function is used to abort a command where the normal processing of the command |
| 229 | //is terminated without going through the normal path. it is here to take care of callbacks for |
| 230 | //the command, if applicable. |
| 231 | void pmcAbortCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand, tANI_BOOLEAN fStopping ); |
| 232 | tANI_BOOLEAN qosProcessCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 233 | |
| 234 | eHalStatus csrProcessScanCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 235 | eHalStatus csrRoamProcessCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 236 | void csrRoamProcessWmStatusChangeCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 237 | void csrReinitRoamCmd(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 238 | void csrReinitWmStatusChangeCmd(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 239 | void csrReinitSetKeyCmd(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 240 | void csrReinitRemoveKeyCmd(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 241 | eHalStatus csrRoamProcessSetKeyCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 242 | eHalStatus csrRoamProcessRemoveKeyCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 243 | void csrReleaseCommandSetKey(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 244 | void csrReleaseCommandRemoveKey(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 245 | //eHalStatus csrRoamIssueSetKeyCommand( tpAniSirGlobal pMac, tANI_U32 sessionId, tCsrRoamSetKey *pSetKey, tANI_U32 roamId ); |
| 246 | eHalStatus csrRoamIssueRemoveKeyCommand( tpAniSirGlobal pMac, tANI_U32 sessionId, |
| 247 | tCsrRoamRemoveKey *pRemoveKey, tANI_U32 roamId ); |
| 248 | eHalStatus csrIsFullPowerNeeded( tpAniSirGlobal pMac, tSmeCmd *pCommand, tRequestFullPowerReason *pReason, |
| 249 | tANI_BOOLEAN *pfNeedPower); |
| 250 | void csrAbortCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand, tANI_BOOLEAN fStopping ); |
| 251 | |
| 252 | eHalStatus sme_AcquireGlobalLock( tSmeStruct *psSme); |
| 253 | eHalStatus sme_ReleaseGlobalLock( tSmeStruct *psSme); |
| 254 | |
Padma, Santhosh Kumar | 778d838 | 2015-03-04 17:41:22 +0530 | [diff] [blame] | 255 | /* --------------------------------------------------------------------------- |
| 256 | \fn sme_SetCfgScanControlList |
| 257 | \brief API to set Scan Control List |
| 258 | \param hHal - The handle returned by macOpen. |
| 259 | \param countryCode - Pointer to the countryCode |
| 260 | \param pChannelList - Pointer to the valid channel list |
| 261 | \return eHalStatus |
| 262 | ---------------------------------------------------------------------------*/ |
| 263 | eHalStatus sme_SetCfgScanControlList(tHalHandle hHal, tANI_U8 *countryCode, |
| 264 | tCsrChannel *pChannelList); |
| 265 | |
Jeff Johnson | e724574 | 2012-09-05 17:12:55 -0700 | [diff] [blame] | 266 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 267 | eHalStatus oemData_ProcessOemDataReqCommand(tpAniSirGlobal pMac, tSmeCmd *pCommand); |
| 268 | #endif |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 269 | |
| 270 | eHalStatus csrProcessAddStaSessionCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
| 271 | eHalStatus csrProcessAddStaSessionRsp( tpAniSirGlobal pMac, tANI_U8 *pMsg); |
| 272 | eHalStatus csrProcessDelStaSessionCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
Siddharth Bhal | d8a95e8 | 2015-02-12 20:14:52 +0530 | [diff] [blame] | 273 | eHalStatus csrProcessMacAddrSpoofCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 274 | eHalStatus csrProcessDelStaSessionRsp( tpAniSirGlobal pMac, tANI_U8 *pMsg); |
Siddharth Bhal | 6424617 | 2015-02-27 01:04:37 +0530 | [diff] [blame] | 275 | eHalStatus csrProcessGetFrameLogCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 276 | |
| 277 | #ifdef WLAN_NS_OFFLOAD |
| 278 | /* --------------------------------------------------------------------------- |
| 279 | \fn pmcSetNSOffload |
| 280 | \brief Set the host offload feature. |
| 281 | \param hHal - The handle returned by macOpen. |
| 282 | \param pRequest - Pointer to the offload request. |
Madan Mohan Koyyalamudi | 96dd30d | 2012-10-05 17:24:51 -0700 | [diff] [blame] | 283 | \param sessionId . Session index of the session |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 284 | \return eHalStatus |
| 285 | eHAL_STATUS_FAILURE Cannot set the offload. |
| 286 | eHAL_STATUS_SUCCESS Request accepted. |
| 287 | ---------------------------------------------------------------------------*/ |
Madan Mohan Koyyalamudi | 96dd30d | 2012-10-05 17:24:51 -0700 | [diff] [blame] | 288 | eHalStatus pmcSetNSOffload (tHalHandle hHal, tpSirHostOffloadReq pRequest, tANI_U8 sessionId); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 289 | #endif //WLAN_NS_OFFLOAD |
| 290 | |
| 291 | #ifdef FEATURE_WLAN_SCAN_PNO |
| 292 | eHalStatus pmcSetPreferredNetworkList(tHalHandle hHal, tpSirPNOScanReq pRequest, tANI_U8 sessionId, preferredNetworkFoundIndCallback callbackRoutine, void *callbackContext); |
| 293 | eHalStatus pmcUpdateScanParams(tHalHandle hHal, tCsrConfig *pRequest, tCsrChannel *pChannelList, tANI_U8 b11dResolved); |
| 294 | eHalStatus pmcSetRssiFilter(tHalHandle hHal, v_U8_t rssiThreshold); |
| 295 | #endif // FEATURE_WLAN_SCAN_PNO |
Tushnim Bhattacharyya | 3a37def | 2013-02-24 11:11:15 -0800 | [diff] [blame] | 296 | eHalStatus pmcSetPowerParams(tHalHandle hHal, tSirSetPowerParamsReq* pwParams, tANI_BOOLEAN forced); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 297 | |
| 298 | tANI_BOOLEAN csrRoamGetConcurrencyConnectStatusForBmps(tpAniSirGlobal pMac); |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 299 | #ifdef FEATURE_WLAN_TDLS |
| 300 | eHalStatus csrTdlsSendMgmtReq(tHalHandle hHal, tANI_U8 sessionId, tCsrTdlsSendMgmt *tdlsSendMgmt); |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 301 | VOS_STATUS csrTdlsSendLinkEstablishParams(tHalHandle hHal, |
| 302 | tANI_U8 sessionId, |
Anand N Sunkad | c205d95 | 2015-07-30 15:36:03 +0530 | [diff] [blame] | 303 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 304 | const tSirMacAddr peerMac, |
| 305 | #else |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 306 | tSirMacAddr peerMac, |
Anand N Sunkad | c205d95 | 2015-07-30 15:36:03 +0530 | [diff] [blame] | 307 | #endif |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 308 | tCsrTdlsLinkEstablishParams *tdlsLinkEstablishParams); |
Anand N Sunkad | b3ab97d | 2015-07-29 09:58:13 +0530 | [diff] [blame] | 309 | eHalStatus csrTdlsAddPeerSta(tHalHandle hHal, tANI_U8 sessionId, |
| 310 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 311 | const tSirMacAddr peerMac |
| 312 | #else |
| 313 | tSirMacAddr peerMac |
| 314 | #endif |
| 315 | ); |
| 316 | eHalStatus csrTdlsChangePeerSta(tHalHandle hHal, tANI_U8 sessionId, |
| 317 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 318 | const tSirMacAddr peerMac, |
| 319 | #else |
| 320 | tSirMacAddr peerMac, |
| 321 | #endif |
| 322 | tCsrStaParams *pstaParams); |
Anand N Sunkad | c205d95 | 2015-07-30 15:36:03 +0530 | [diff] [blame] | 323 | eHalStatus csrTdlsDelPeerSta(tHalHandle hHal, tANI_U8 sessionId, |
| 324 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)) |
| 325 | const tSirMacAddr peerMac |
| 326 | #else |
| 327 | tSirMacAddr peerMac |
| 328 | #endif |
| 329 | ); |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 330 | eHalStatus csrTdlsProcessCmd(tpAniSirGlobal pMac,tSmeCmd *pCommand ); |
Gopichand Nakkala | 79ff85d | 2013-05-27 17:05:29 +0530 | [diff] [blame] | 331 | eHalStatus csrTdlsProcessLinkEstablish( tpAniSirGlobal pMac, tSmeCmd *cmd ); |
Atul Mittal | c0f739f | 2014-07-31 13:47:47 +0530 | [diff] [blame] | 332 | eHalStatus csrTdlsProcessChanSwitchReq(tpAniSirGlobal pMac, tSmeCmd *cmd ); //tdlsoffchan |
| 333 | eHalStatus tdlsMsgProcessor(tpAniSirGlobal pMac,v_U16_t msg_type, void *pMsgBuf); |
| 334 | VOS_STATUS csrTdlsSendChanSwitchReq(tHalHandle hHal, |
| 335 | tANI_U8 sessionId, |
| 336 | tSirMacAddr peerMac, |
| 337 | tANI_S32 tdlsOffCh, |
| 338 | tANI_S32 tdlsOffChBwOffset, |
| 339 | tANI_U8 tdlsSwMode); |
Mohit Khanna | 698ba2a | 2012-12-04 15:08:18 -0800 | [diff] [blame] | 340 | #endif /* FEATURE_WLAN_TDLS */ |
| 341 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 342 | #if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR) |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 343 | eHalStatus csrFlushCfgBgScanRoamChannelList(tpAniSirGlobal pMac); |
Srinivas Girigowda | 100eb32 | 2013-03-15 16:48:20 -0700 | [diff] [blame] | 344 | eHalStatus csrCreateBgScanRoamChannelList(tpAniSirGlobal pMac, |
| 345 | const tANI_U8 *pChannelList, |
| 346 | const tANI_U8 numChannels); |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 347 | eHalStatus csrUpdateBgScanConfigIniChannelList(tpAniSirGlobal pMac, eCsrBand eBand); |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 348 | #endif |
| 349 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 350 | #if defined(FEATURE_WLAN_ESE) && defined(FEATURE_WLAN_ESE_UPLOAD) |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 351 | eHalStatus csrCreateRoamScanChannelList(tpAniSirGlobal pMac, |
| 352 | tANI_U8 *pChannelList, |
| 353 | tANI_U8 numChannels, |
| 354 | const eCsrBand eBand); |
| 355 | #endif |
Kalikinkar Dhara | a498897 | 2013-10-28 13:39:54 -0700 | [diff] [blame] | 356 | void activeListCmdTimeoutHandle(void *userData); |
Srinivas Girigowda | de69741 | 2013-02-14 16:31:48 -0800 | [diff] [blame] | 357 | |
Kanchanapally, Vidyullatha | 2ed7bde | 2014-12-29 12:18:36 +0530 | [diff] [blame] | 358 | void csrGetStaticUapsdMask(tpAniSirGlobal pMac, tANI_U8 *staticUapsdMask); |
| 359 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 360 | #endif //#if !defined( __SMEINSIDE_H ) |