blob: 9fdd4d9480b23f7036b5fd23abf652f8b36e9f22 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Jeff Johnson32d95a32012-09-10 13:15:23 -07002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -07003 *
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
22#if !defined( __SME_API_H )
23#define __SME_API_H
24
25
26/**=========================================================================
27
28 \file smeApi.h
29
30 \brief prototype for SME APIs
31
32 Copyright 2008 (c) Qualcomm, Incorporated. All Rights Reserved.
33
34 Qualcomm Confidential and Proprietary.
35
36 ========================================================================*/
37
38/* $Header$ */
39
40/*--------------------------------------------------------------------------
41 Include Files
42 ------------------------------------------------------------------------*/
43#include "ccmApi.h"
44#include "csrApi.h"
45#include "pmcApi.h"
46#include "vos_mq.h"
47#include "vos_lock.h"
48#include "halTypes.h"
49#include "sirApi.h"
50#include "btcApi.h"
51#include "vos_nvitem.h"
52#include "p2p_Api.h"
53#ifdef FEATURE_WLAN_NON_INTEGRATED_SOC
54#include "halFw.h"
55#endif
56
Jeff Johnsone7245742012-09-05 17:12:55 -070057#ifdef FEATURE_OEM_DATA_SUPPORT
58#include "oemDataApi.h"
59#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070060
61#if defined WLAN_FEATURE_VOWIFI
62#include "smeRrmInternal.h"
63#endif
64
65/*--------------------------------------------------------------------------
66 Preprocessor definitions and constants
67 ------------------------------------------------------------------------*/
68
69#define SME_SUMMARY_STATS 1
70#define SME_GLOBAL_CLASSA_STATS 2
71#define SME_GLOBAL_CLASSB_STATS 4
72#define SME_GLOBAL_CLASSC_STATS 8
73#define SME_GLOBAL_CLASSD_STATS 16
74#define SME_PER_STA_STATS 32
75
76#define SME_INVALID_COUNTRY_CODE "XX"
77
78/*--------------------------------------------------------------------------
79 Type declarations
80 ------------------------------------------------------------------------*/
81typedef struct _smeConfigParams
82{
83 tCsrConfigParam csrConfig;
84#if defined WLAN_FEATURE_VOWIFI
85 tRrmConfigParam rrmConfig;
86#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -070087#if defined FEATURE_WLAN_LFR
88 tANI_U8 isFastRoamIniFeatureEnabled;
89#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070090#if defined FEATURE_WLAN_CCX
91 tANI_U8 isCcxIniFeatureEnabled;
92#endif
93#if defined WLAN_FEATURE_P2P_INTERNAL
94 tP2PConfigParam p2pConfig;
95#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -070096#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
Jeff Johnson295189b2012-06-20 16:38:30 -070097 tANI_U8 isFastTransitionEnabled;
Jeff Johnson43971f52012-07-17 12:26:56 -070098 tANI_U8 RoamRssiDiff;
Jeff Johnson295189b2012-06-20 16:38:30 -070099#endif
100} tSmeConfigParams, *tpSmeConfigParams;
101
102
103/*-------------------------------------------------------------------------
104 Function declarations and documenation
105 ------------------------------------------------------------------------*/
106
107/*--------------------------------------------------------------------------
108
109 \brief sme_Open() - Initialze all SME modules and put them at idle state
110
111 The function initializes each module inside SME, PMC, CCM, CSR, etc. . Upon
112 successfully return, all modules are at idle state ready to start.
113
114 smeOpen must be called before any other SME APIs can be involved.
115 smeOpen must be called after macOpen.
116
117 \param hHal - The handle returned by macOpen.
118
119 \return eHAL_STATUS_SUCCESS - SME is successfully initialized.
120
121 Other status means SME is failed to be initialized
122 \sa
123
124 --------------------------------------------------------------------------*/
125eHalStatus sme_Open(tHalHandle hHal);
126
127/*--------------------------------------------------------------------------
128
129 \brief sme_Close() - Release all SME modules and their resources.
130
131 The function release each module in SME, PMC, CCM, CSR, etc. . Upon
132 return, all modules are at closed state.
133
134 No SME APIs can be involved after sme_Close except sme_Open.
135 sme_Close must be called before macClose.
136
137 \param hHal - The handle returned by macOpen.
138
139 \return eHAL_STATUS_SUCCESS - SME is successfully close.
140
141 Other status means SME is failed to be closed but caller still cannot
142 call any other SME functions except smeOpen.
143 \sa
144
145 --------------------------------------------------------------------------*/
146eHalStatus sme_Close(tHalHandle hHal);
147
148/*--------------------------------------------------------------------------
149
150 \brief sme_Start() - Put all SME modules at ready state.
151
152 The function starts each module in SME, PMC, CCM, CSR, etc. . Upon
153 successfully return, all modules are ready to run.
154
155 \param hHal - The handle returned by macOpen.
156
157 \return eHAL_STATUS_SUCCESS - SME is ready.
158
159 Other status means SME is failed to start.
160 \sa
161
162 --------------------------------------------------------------------------*/
163eHalStatus sme_Start(tHalHandle hHal);
164
165/*--------------------------------------------------------------------------
166
167 \brief sme_Stop() - Stop all SME modules and put them at idle state
168
169 The function stops each module in SME, PMC, CCM, CSR, etc. . Upon
170 return, all modules are at idle state ready to start.
171
172
173 \param hHal - The handle returned by macOpen.
174
175 \param pmcFlag - The flag tells SME if we want to stop PMC or not
176
177 \return eHAL_STATUS_SUCCESS - SME is stopped.
178
179 Other status means SME is failed to stop but caller should still consider
180 SME is stopped.
181 \sa
182
183 --------------------------------------------------------------------------*/
184eHalStatus sme_Stop(tHalHandle hHal, tANI_BOOLEAN pmcFlag);
185
186
187/*--------------------------------------------------------------------------
188
189 \brief sme_OpenSession() - Open a session for scan/roam operation.
190
191 This is a synchronous API.
192
193
194 \param hHal - The handle returned by macOpen.
195 \param callback - A pointer to the function caller specifies for roam/connect status indication
196 \param pContext - The context passed with callback
197 \param pSelfMacAddr - Caller allocated memory filled with self MAC address (6 bytes)
198 \param pbSessionId - pointer to a caller allocated buffer for returned session ID
199
200 \return eHAL_STATUS_SUCCESS - session is opened. sessionId returned.
201
202 Other status means SME is failed to open the session.
203 eHAL_STATUS_RESOURCES - no more session available.
204 \sa
205
206 --------------------------------------------------------------------------*/
207eHalStatus sme_OpenSession(tHalHandle hHal, csrRoamCompleteCallback callback, void *pContext,
208 tANI_U8 *pSelfMacAddr, tANI_U8 *pbSessionId);
209
210
211/*--------------------------------------------------------------------------
212
213 \brief sme_CloseSession() - Open a session for scan/roam operation.
214
215 This is a synchronous API.
216
217
218 \param hHal - The handle returned by macOpen.
219
220 \param sessionId - A previous opened session's ID.
221
222 \return eHAL_STATUS_SUCCESS - session is closed.
223
224 Other status means SME is failed to open the session.
225 eHAL_STATUS_INVALID_PARAMETER - session is not opened.
226 \sa
227
228 --------------------------------------------------------------------------*/
229eHalStatus sme_CloseSession(tHalHandle hHal, tANI_U8 sessionId,
230 csrRoamSessionCloseCallback callback, void *pContext);
231
232
233
234/*--------------------------------------------------------------------------
235
236 \brief sme_UpdateConfig() - Change configurations for all SME moduels
237
238 The function updates some configuration for modules in SME, CCM, CSR, etc
239 during SMEs close -> open sequence.
240
241 Modules inside SME apply the new configuration at the next transaction.
242
243
244 \param hHal - The handle returned by macOpen.
245 \Param pSmeConfigParams - a pointer to a caller allocated object of
246 typedef struct _smeConfigParams.
247
248 \return eHAL_STATUS_SUCCESS - SME update the config parameters successfully.
249
250 Other status means SME is failed to update the config parameters.
251 \sa
252
253 --------------------------------------------------------------------------*/
254eHalStatus sme_UpdateConfig(tHalHandle hHal, tpSmeConfigParams pSmeConfigParams);
255
256#ifdef FEATURE_WLAN_SCAN_PNO
257/*--------------------------------------------------------------------------
258
259 \brief sme_UpdateChannelConfig() - Update channel configuration in RIVA.
260
261 It is used at driver start up to inform RIVA of the default channel
262 configuration.
263
264 This is a synchronuous call
265
266 \param hHal - The handle returned by macOpen.
267
268 \return eHAL_STATUS_SUCCESS - SME update the channel config successfully.
269
270 Other status means SME is failed to update the channel config.
271 \sa
272
273 --------------------------------------------------------------------------*/
274eHalStatus sme_UpdateChannelConfig(tHalHandle hHal);
275
276#endif // FEATURE_WLAN_SCAN_PNLO
277#ifdef WLAN_SOFTAP_FEATURE
278/*--------------------------------------------------------------------------
279
280 \brief sme_set11dinfo() - Set the 11d information about valid channels
281 and there power using information from nvRAM
282 This function is called only for AP.
283
284 This is a synchronuous call
285
286 \param hHal - The handle returned by macOpen.
287 \Param pSmeConfigParams - a pointer to a caller allocated object of
288 typedef struct _smeConfigParams.
289
290 \return eHAL_STATUS_SUCCESS - SME update the config parameters successfully.
291
292 Other status means SME is failed to update the config parameters.
293 \sa
294--------------------------------------------------------------------------*/
295
296eHalStatus sme_set11dinfo(tHalHandle hHal, tpSmeConfigParams pSmeConfigParams);
297
298/*--------------------------------------------------------------------------
299
300 \brief sme_getSoftApDomain() - Get the current regulatory domain of softAp.
301
302 This is a synchronuous call
303
304 \param hHal - The handle returned by HostapdAdapter.
305 \Param v_REGDOMAIN_t - The current Regulatory Domain requested for SoftAp.
306
307 \return eHAL_STATUS_SUCCESS - SME successfully completed the request.
308
309 Other status means, failed to get the current regulatory domain.
310 \sa
311--------------------------------------------------------------------------*/
312
313eHalStatus sme_getSoftApDomain(tHalHandle hHal, v_REGDOMAIN_t *domainIdSoftAp);
314
315eHalStatus sme_setRegInfo(tHalHandle hHal, tANI_U8 *apCntryCode);
316
317#endif
318
319/* ---------------------------------------------------------------------------
320 \fn sme_ChangeConfigParams
321 \brief The SME API exposed for HDD to provide config params to SME during
322 SMEs stop -> start sequence.
323
324 If HDD changed the domain that will cause a reset. This function will
325 provide the new set of 11d information for the new domain. Currrently this
326 API provides info regarding 11d only at reset but we can extend this for
327 other params (PMC, QoS) which needs to be initialized again at reset.
328
329 This is a synchronuous call
330
331 \param hHal - The handle returned by macOpen.
332
333 \Param
334 pUpdateConfigParam - a pointer to a structure (tCsrUpdateConfigParam) that
335 currently provides 11d related information like Country code,
336 Regulatory domain, valid channel list, Tx power per channel, a
337 list with active/passive scan allowed per valid channel.
338
339 \return eHalStatus
340 ---------------------------------------------------------------------------*/
341eHalStatus sme_ChangeConfigParams(tHalHandle hHal,
342 tCsrUpdateConfigParam *pUpdateConfigParam);
343
344/*--------------------------------------------------------------------------
345
346 \brief sme_HDDReadyInd() - SME sends eWNI_SME_SYS_READY_IND to PE to inform that the NIC
347 is ready tio run.
348
349 The function is called by HDD at the end of initialization stage so PE/HAL can enable the NIC
350 to running state.
351
352
353 \param hHal - The handle returned by macOpen.
354
355 \return eHAL_STATUS_SUCCESS - eWNI_SME_SYS_READY_IND is sent to PE successfully.
356
357 Other status means SME failed to send the message to PE.
358 \sa
359
360 --------------------------------------------------------------------------*/
361eHalStatus sme_HDDReadyInd(tHalHandle hHal);
362
363
364/*--------------------------------------------------------------------------
365
366 \brief sme_ProcessMsg() - The main message processor for SME.
367
368 The function is called by a message dispatcher when to process a message
369 targeted for SME.
370
371
372 \param hHal - The handle returned by macOpen.
373 \param pMsg - A pointer to a caller allocated object of tSirMsgQ.
374
375 \return eHAL_STATUS_SUCCESS - SME successfully process the message.
376
377 Other status means SME failed to process the message.
378 \sa
379
380 --------------------------------------------------------------------------*/
381eHalStatus sme_ProcessMsg(tHalHandle hHal, vos_msg_t* pMsg);
382
383v_VOID_t sme_FreeMsg( tHalHandle hHal, vos_msg_t* pMsg );
384
385/* ---------------------------------------------------------------------------
386 \fn sme_ScanRequest
387 \brief a wrapper function to Request a 11d or full scan from CSR.
388 \param pScanRequestID - pointer to an object to get back the request ID
389 \param callback - a callback function that scan calls upon finish, will not
390 be called if csrScanRequest returns error
391 \param pContext - a pointer passed in for the callback
392 \return eHalStatus
393 ---------------------------------------------------------------------------*/
394eHalStatus sme_ScanRequest(tHalHandle hHal, tANI_U8 sessionId, tCsrScanRequest *,
395 tANI_U32 *pScanRequestID,
396 csrScanCompleteCallback callback, void *pContext);
397
398
399/* ---------------------------------------------------------------------------
400 \fn sme_ScanSetBGScanparams
401 \brief a wrapper function to request CSR to set BG scan params in PE
402 \param pScanReq - BG scan request structure
403 \return eHalStatus
404 ---------------------------------------------------------------------------*/
405eHalStatus sme_ScanSetBGScanparams(tHalHandle hHal, tANI_U8 sessionId, tCsrBGScanRequest *pScanReq);
406
407
408/* ---------------------------------------------------------------------------
409 \fn sme_ScanGetResult
410 \brief a wrapper function to request scan results from CSR.
411 \param pFilter - If pFilter is NULL, all cached results are returned
412 \param phResult - an object for the result.
413 \return eHalStatus
414 ---------------------------------------------------------------------------*/
415eHalStatus sme_ScanGetResult(tHalHandle hHal, tANI_U8 sessionId, tCsrScanResultFilter *pFilter,
416 tScanResultHandle *phResult);
417
418
419/* ---------------------------------------------------------------------------
420 \fn sme_ScanFlushResult
421 \brief a wrapper function to request CSR to clear scan results.
422 \return eHalStatus
423 ---------------------------------------------------------------------------*/
424eHalStatus sme_ScanFlushResult(tHalHandle hHal, tANI_U8 sessionId);
425
426
427/* ---------------------------------------------------------------------------
428 \fn sme_ScanResultGetFirst
429 \brief a wrapper function to request CSR to returns the first element of
430 scan result.
431 \param hScanResult - returned from csrScanGetResult
432 \return tCsrScanResultInfo * - NULL if no result
433 ---------------------------------------------------------------------------*/
434tCsrScanResultInfo *sme_ScanResultGetFirst(tHalHandle,
435 tScanResultHandle hScanResult);
436
437/* ---------------------------------------------------------------------------
438 \fn sme_ScanResultGetNext
439 \brief a wrapper function to request CSR to returns the next element of
440 scan result. It can be called without calling csrScanResultGetFirst
441 first
442 \param hScanResult - returned from csrScanGetResult
443 \return Null if no result or reach the end
444 ---------------------------------------------------------------------------*/
445tCsrScanResultInfo *sme_ScanResultGetNext(tHalHandle,
446 tScanResultHandle hScanResult);
447
448/* ---------------------------------------------------------------------------
449 \fn sme_ScanResultPurge
450 \brief a wrapper function to request CSR to remove all items(tCsrScanResult)
451 in the list and free memory for each item
452 \param hScanResult - returned from csrScanGetResult. hScanResult is
453 considered gone by
454 calling this function and even before this function reutrns.
455 \return eHalStatus
456 ---------------------------------------------------------------------------*/
457eHalStatus sme_ScanResultPurge(tHalHandle hHal, tScanResultHandle hScanResult);
458
459/* ---------------------------------------------------------------------------
460 \fn sme_ScanGetPMKIDCandidateList
461 \brief a wrapper function to return the PMKID candidate list
462 \param pPmkidList - caller allocated buffer point to an array of
463 tPmkidCandidateInfo
464 \param pNumItems - pointer to a variable that has the number of
465 tPmkidCandidateInfo allocated when retruning, this is
466 either the number needed or number of items put into
467 pPmkidList
468 \return eHalStatus - when fail, it usually means the buffer allocated is not
469 big enough and pNumItems
470 has the number of tPmkidCandidateInfo.
471 \Note: pNumItems is a number of tPmkidCandidateInfo,
472 not sizeof(tPmkidCandidateInfo) * something
473 ---------------------------------------------------------------------------*/
474eHalStatus sme_ScanGetPMKIDCandidateList(tHalHandle hHal, tANI_U8 sessionId,
475 tPmkidCandidateInfo *pPmkidList,
476 tANI_U32 *pNumItems );
477
478
479/*----------------------------------------------------------------------------
480 \fn sme_RoamRegisterLinkQualityIndCallback
481
482 \brief
483 a wrapper function to allow HDD to register a callback handler with CSR for
484 link quality indications.
485
486 Only one callback may be registered at any time.
487 In order to deregister the callback, a NULL cback may be provided.
488
489 Registration happens in the task context of the caller.
490
491 \param callback - Call back being registered
492 \param pContext - user data
493
494 DEPENDENCIES: After CSR open
495
496 \return eHalStatus
497-----------------------------------------------------------------------------*/
498eHalStatus sme_RoamRegisterLinkQualityIndCallback(tHalHandle hHal, tANI_U8 sessionId,
499 csrRoamLinkQualityIndCallback callback,
500 void *pContext);
501
502
503/* ---------------------------------------------------------------------------
504 \fn sme_RoamConnect
505 \brief a wrapper function to request CSR to inititiate an association
506 \param sessionId - the sessionId returned by sme_OpenSession.
507 \param pProfile - can be NULL to join to any open ones
508 \param pRoamId - to get back the request ID
509 \return eHalStatus
510 ---------------------------------------------------------------------------*/
511eHalStatus sme_RoamConnect(tHalHandle hHal, tANI_U8 sessionId, tCsrRoamProfile *pProfile,
512 tANI_U32 *pRoamId);
513
514/* ---------------------------------------------------------------------------
515 \fn sme_RoamReassoc
516 \brief a wrapper function to request CSR to inititiate a re-association
517 \param pProfile - can be NULL to join the currently connected AP. In that
518 case modProfileFields should carry the modified field(s) which could trigger
519 reassoc
520 \param modProfileFields - fields which are part of tCsrRoamConnectedProfile
521 that might need modification dynamically once STA is up & running and this
522 could trigger a reassoc
523 \param pRoamId - to get back the request ID
524 \return eHalStatus
525 -------------------------------------------------------------------------------*/
526eHalStatus sme_RoamReassoc(tHalHandle hHal, tANI_U8 sessionId, tCsrRoamProfile *pProfile,
527 tCsrRoamModifyProfileFields modProfileFields,
528 tANI_U32 *pRoamId);
529
530/* ---------------------------------------------------------------------------
531 \fn sme_RoamConnectToLastProfile
532 \brief a wrapper function to request CSR to disconnect and reconnect with
533 the same profile
534 \return eHalStatus. It returns fail if currently connected
535 ---------------------------------------------------------------------------*/
536eHalStatus sme_RoamConnectToLastProfile(tHalHandle hHal, tANI_U8 sessionId);
537
538/* ---------------------------------------------------------------------------
539 \fn sme_RoamDisconnect
540 \brief a wrapper function to request CSR to disconnect from a network
541 \param reason -- To indicate the reason for disconnecting. Currently, only
542 eCSR_DISCONNECT_REASON_MIC_ERROR is meanful.
543 \return eHalStatus
544 ---------------------------------------------------------------------------*/
545eHalStatus sme_RoamDisconnect(tHalHandle hHal, tANI_U8 sessionId, eCsrRoamDisconnectReason reason);
546
547#ifdef WLAN_SOFTAP_FEATURE
548/* ---------------------------------------------------------------------------
549 \fn sme_RoamStopBss
550 \brief a wrapper function to request CSR to stop bss
551 \param sessionId - sessionId of SoftAP
552 \return eHalStatus
553 ---------------------------------------------------------------------------*/
554eHalStatus sme_RoamStopBss(tHalHandle hHal, tANI_U8 sessionId);
555
556/* ---------------------------------------------------------------------------
557 \fn sme_RoamGetAssociatedStas
558 \brief To probe the list of associated stations from various modules of CORE stack.
559 \This is an asynchronous API.
560 \param sessionId - sessionId of SoftAP
561 \param modId - Module from whom list of associtated stations is to be probed.
562 If an invalid module is passed then by default VOS_MODULE_ID_PE will be probed
563 \param pUsrContext - Opaque HDD context
564 \param pfnSapEventCallback - Sap event callback in HDD
565 \param pAssocBuf - Caller allocated memory to be filled with associatd stations info
566 \return eHalStatus
567 -------------------------------------------------------------------------------*/
568eHalStatus sme_RoamGetAssociatedStas(tHalHandle hHal, tANI_U8 sessionId,
569 VOS_MODULE_ID modId, void *pUsrContext,
570 void *pfnSapEventCallback, tANI_U8 *pAssocStasBuf);
571
572/* ---------------------------------------------------------------------------
573 \fn sme_RoamDisconnectSta
574 \brief To disassociate a station. This is an asynchronous API.
575 \param pPeerMacAddr - Caller allocated memory filled with peer MAC address (6 bytes)
576 \return eHalStatus SUCCESS Roam callback will be called to indicate actual results
577 -------------------------------------------------------------------------------*/
578eHalStatus sme_RoamDisconnectSta(tHalHandle hHal, tANI_U8 sessionId, tANI_U8 *pPeerMacAddr);
579
580/* ---------------------------------------------------------------------------
581 \fn sme_RoamDeauthSta
582 \brief To disassociate a station. This is an asynchronous API.
583 \param hHal - Global structure
584 \param sessionId - sessionId of SoftAP
585 \param pPeerMacAddr - Caller allocated memory filled with peer MAC address (6 bytes)
586 \return eHalStatus SUCCESS Roam callback will be called to indicate actual results
587 -------------------------------------------------------------------------------*/
588eHalStatus sme_RoamDeauthSta(tHalHandle hHal, tANI_U8 sessionId,
589 tANI_U8 *pPeerMacAddr);
590
591/* ---------------------------------------------------------------------------
592 \fn sme_RoamTKIPCounterMeasures
593 \brief To start or stop TKIP counter measures. This is an asynchronous API.
594 \param sessionId - sessionId of SoftAP
595 \param bEnable - Flag to start/stop TKIP countermeasures
596 \return eHalStatus SUCCESS Roam callback will be called to indicate actual results
597 -------------------------------------------------------------------------------*/
598eHalStatus sme_RoamTKIPCounterMeasures(tHalHandle hHal, tANI_U8 sessionId, tANI_BOOLEAN bEnable);
599
600/* ---------------------------------------------------------------------------
601 \fn sme_RoamGetWpsSessionOverlap
602 \brief To get the WPS PBC session overlap information.
603 \This is an asynchronous API.
604 \param sessionId - sessionId of SoftAP
605 \param pUsrContext - Opaque HDD context
606 \param pfnSapEventCallback - Sap event callback in HDD
607 \return eHalStatus
608 -------------------------------------------------------------------------------*/
609eHalStatus sme_RoamGetWpsSessionOverlap(tHalHandle hHal, tANI_U8 sessionId,
610 void *pUsrContext, void *pfnSapEventCallback,
611 v_MACADDR_t pRemoveMac);
612#endif
613
614/* ---------------------------------------------------------------------------
615 \fn sme_RoamGetConnectState
616 \brief a wrapper function to request CSR to return the current connect state
617 of Roaming
618 \return eHalStatus
619 ---------------------------------------------------------------------------*/
620eHalStatus sme_RoamGetConnectState(tHalHandle hHal, tANI_U8 sessionId, eCsrConnectState *pState);
621
622/* ---------------------------------------------------------------------------
623 \fn sme_RoamGetConnectProfile
624 \brief a wrapper function to request CSR to return the current connect
625 profile. Caller must call csrRoamFreeConnectProfile after it is done
626 and before reuse for another csrRoamGetConnectProfile call.
627 \param pProfile - pointer to a caller allocated structure
628 tCsrRoamConnectedProfile
629 \return eHalStatus. Failure if not connected
630 ---------------------------------------------------------------------------*/
631eHalStatus sme_RoamGetConnectProfile(tHalHandle hHal, tANI_U8 sessionId,
632 tCsrRoamConnectedProfile *pProfile);
633
634/* ---------------------------------------------------------------------------
635 \fn sme_RoamFreeConnectProfile
636 \brief a wrapper function to request CSR to free and reinitialize the
637 profile returned previously by csrRoamGetConnectProfile.
638 \param pProfile - pointer to a caller allocated structure
639 tCsrRoamConnectedProfile
640 \return eHalStatus.
641 ---------------------------------------------------------------------------*/
642eHalStatus sme_RoamFreeConnectProfile(tHalHandle hHal,
643 tCsrRoamConnectedProfile *pProfile);
644
645/* ---------------------------------------------------------------------------
646 \fn sme_RoamSetPMKIDCache
647 \brief a wrapper function to request CSR to return the PMKID candidate list
648 \param pPMKIDCache - caller allocated buffer point to an array of
649 tPmkidCacheInfo
650 \param numItems - a variable that has the number of tPmkidCacheInfo
651 allocated when retruning, this is either the number needed
652 or number of items put into pPMKIDCache
653 \return eHalStatus - when fail, it usually means the buffer allocated is not
654 big enough and pNumItems has the number of
655 tPmkidCacheInfo.
656 \Note: pNumItems is a number of tPmkidCacheInfo,
657 not sizeof(tPmkidCacheInfo) * something
658 ---------------------------------------------------------------------------*/
659eHalStatus sme_RoamSetPMKIDCache( tHalHandle hHal, tANI_U8 sessionId, tPmkidCacheInfo *pPMKIDCache,
660 tANI_U32 numItems );
661
662/* ---------------------------------------------------------------------------
663 \fn sme_RoamGetSecurityReqIE
664 \brief a wrapper function to request CSR to return the WPA or RSN or WAPI IE CSR
665 passes to PE to JOIN request or START_BSS request
666 This is a synchronuous call.
667 \param sessionId - returned by sme_OpenSession.
668 \param pLen - caller allocated memory that has the length of pBuf as input.
669 Upon returned, *pLen has the needed or IE length in pBuf.
670 \param pBuf - Caller allocated memory that contain the IE field, if any,
671 upon return
672 \param secType - Specifies whether looking for WPA/WPA2/WAPI IE
673 \return eHalStatus - when fail, it usually means the buffer allocated is not
674 big enough
675 ---------------------------------------------------------------------------*/
676eHalStatus sme_RoamGetSecurityReqIE(tHalHandle hHal, tANI_U8 sessionId, tANI_U32 *pLen,
677 tANI_U8 *pBuf, eCsrSecurityType secType);
678
679/* ---------------------------------------------------------------------------
680 \fn sme_RoamGetSecurityRspIE
681 \brief a wrapper function to request CSR to return the WPA or RSN or WAPI IE from
682 the beacon or probe rsp if connected
683 \param sessionId - returned by sme_OpenSession.
684 \param pLen - caller allocated memory that has the length of pBuf as input.
685 Upon returned, *pLen has the needed or IE length in pBuf.
686 \param pBuf - Caller allocated memory that contain the IE field, if any,
687 upon return
688 \param secType - Specifies whether looking for WPA/WPA2/WAPI IE
689 \return eHalStatus - when fail, it usually means the buffer allocated is not
690 big enough
691 ---------------------------------------------------------------------------*/
692eHalStatus sme_RoamGetSecurityRspIE(tHalHandle hHal, tANI_U8 sessionId, tANI_U32 *pLen,
693 tANI_U8 *pBuf, eCsrSecurityType secType);
694
695
696/* ---------------------------------------------------------------------------
697 \fn sme_RoamGetNumPMKIDCache
698 \brief a wrapper function to request CSR to return number of PMKID cache
699 entries
700 \return tANI_U32 - the number of PMKID cache entries
701 ---------------------------------------------------------------------------*/
702tANI_U32 sme_RoamGetNumPMKIDCache(tHalHandle hHal, tANI_U8 sessionId);
703
704/* ---------------------------------------------------------------------------
705 \fn sme_RoamGetPMKIDCache
706 \brief a wrapper function to request CSR to return PMKID cache from CSR
707 \param pNum - caller allocated memory that has the space of the number of
708 pBuf tPmkidCacheInfo as input. Upon returned, *pNum has the
709 needed or actually number in tPmkidCacheInfo.
710 \param pPmkidCache - Caller allocated memory that contains PMKID cache, if
711 any, upon return
712 \return eHalStatus - when fail, it usually means the buffer allocated is not
713 big enough
714 ---------------------------------------------------------------------------*/
715eHalStatus sme_RoamGetPMKIDCache(tHalHandle hHal, tANI_U8 sessionId, tANI_U32 *pNum,
716 tPmkidCacheInfo *pPmkidCache);
717
718/* ---------------------------------------------------------------------------
719 \fn sme_GetConfigParam
720 \brief a wrapper function that HDD calls to get the global settings
721 currently maintained by CSR.
722 \param pParam - caller allocated memory
723 \return eHalStatus
724 ---------------------------------------------------------------------------*/
725eHalStatus sme_GetConfigParam(tHalHandle hHal, tSmeConfigParams *pParam);
726
727/* ---------------------------------------------------------------------------
728 \fn sme_GetStatistics
729 \brief a wrapper function that client calls to register a callback to get
730 different PHY level statistics from CSR.
731
732 \param requesterId - different client requesting for statistics, HDD, UMA/GAN etc
733 \param statsMask - The different category/categories of stats requester is looking for
734 The order in which you set the bits in the statsMask for requesting
735 different type of stats is:
736
737 eCsrSummaryStats = bit 0
738 eCsrGlobalClassAStats = bit 1
739 eCsrGlobalClassBStats = bit 2
740 eCsrGlobalClassCStats = bit 3
741 eCsrGlobalClassDStats = bit 4
742 eCsrPerStaStats = bit 5
743
744 \param callback - SME sends back the requested stats using the callback
745 \param periodicity - If requester needs periodic update, 0 means it's an one
746 time request
747 \param cache - If requester is happy with cached stats
748 \param staId - The station ID for which the stats is requested for
749 \param pContext - user context to be passed back along with the callback
750 \return eHalStatus
751 ---------------------------------------------------------------------------*/
752eHalStatus sme_GetStatistics(tHalHandle hHal, eCsrStatsRequesterType requesterId,
753 tANI_U32 statsMask,
754 tCsrStatsCallback callback,
755 tANI_U32 periodicity, tANI_BOOLEAN cache,
756 tANI_U8 staId, void *pContext);
757
758eHalStatus sme_GetRssi(tHalHandle hHal,
759 tCsrRssiCallback callback,
760 tANI_U8 staId, tCsrBssid bssId, void *pContext, void* pVosContext);
761
762/* ---------------------------------------------------------------------------
763 \fn sme_CfgSetInt
764 \brief a wrapper function that HDD calls to set parameters in CFG.
765 \param cfgId - Configuration Parameter ID (type) for STA.
766 \param ccmValue - The information related to Configuration Parameter ID
767 which needs to be saved in CFG
768 \param callback - To be registered by CSR with CCM. Once the CFG done with
769 saving the information in the database, it notifies CCM &
770 then the callback will be invoked to notify.
771 \param toBeSaved - To save the request for future reference
772 \return eHalStatus
773 ---------------------------------------------------------------------------*/
774eHalStatus sme_CfgSetInt(tHalHandle hHal, tANI_U32 cfgId, tANI_U32 ccmValue,
775 tCcmCfgSetCallback callback, eAniBoolean toBeSaved) ;
776
777/* ---------------------------------------------------------------------------
778 \fn sme_CfgSetStr
779 \brief a wrapper function that HDD calls to set parameters in CFG.
780 \param cfgId - Configuration Parameter ID (type) for STA.
781 \param pStr - Pointer to the byte array which carries the information needs
782 to be saved in CFG
783 \param length - Length of the data to be saved
784 \param callback - To be registered by CSR with CCM. Once the CFG done with
785 saving the information in the database, it notifies CCM &
786 then the callback will be invoked to notify.
787 \param toBeSaved - To save the request for future reference
788 \return eHalStatus
789 ---------------------------------------------------------------------------*/
790eHalStatus sme_CfgSetStr(tHalHandle hHal, tANI_U32 cfgId, tANI_U8 *pStr,
791 tANI_U32 length, tCcmCfgSetCallback callback,
792 eAniBoolean toBeSaved) ;
793
794
795/* ---------------------------------------------------------------------------
796 \fn sme_GetModifyProfileFields
797 \brief HDD or SME - QOS calls this function to get the current values of
798 connected profile fields, changing which can cause reassoc.
799 This function must be called after CFG is downloaded and STA is in connected
800 state. Also, make sure to call this function to get the current profile
801 fields before calling the reassoc. So that pModifyProfileFields will have
802 all the latest values plus the one(s) has been updated as part of reassoc
803 request.
804 \param pModifyProfileFields - pointer to the connected profile fields
805 changing which can cause reassoc
806
807 \return eHalStatus
808 -------------------------------------------------------------------------------*/
809eHalStatus sme_GetModifyProfileFields(tHalHandle hHal, tANI_U8 sessionId,
810 tCsrRoamModifyProfileFields * pModifyProfileFields);
811
812
813/*--------------------------------------------------------------------------
814 \fn sme_SetConfigPowerSave
815 \brief Wrapper fn to change power save configuration in SME (PMC) module.
816 For BMPS related configuration, this function also updates the CFG
817 and sends a message to FW to pick up the new values. Note: Calling
818 this function only updates the configuration and does not enable
819 the specified power save mode.
820 \param hHal - The handle returned by macOpen.
821 \param psMode - Power Saving mode being modified
822 \param pConfigParams - a pointer to a caller allocated object of type
823 tPmcSmpsConfigParams or tPmcBmpsConfigParams or tPmcImpsConfigParams
824 \return eHalStatus
825 --------------------------------------------------------------------------*/
826eHalStatus sme_SetConfigPowerSave(tHalHandle hHal, tPmcPowerSavingMode psMode,
827 void *pConfigParams);
828
829/*--------------------------------------------------------------------------
830 \fn sme_GetConfigPowerSave
831 \brief Wrapper fn to retireve power save configuration in SME (PMC) module
832 \param hHal - The handle returned by macOpen.
833 \param psMode - Power Saving mode
834 \param pConfigParams - a pointer to a caller allocated object of type
835 tPmcSmpsConfigParams or tPmcBmpsConfigParams or tPmcImpsConfigParams
836 \return eHalStatus
837 --------------------------------------------------------------------------*/
838eHalStatus sme_GetConfigPowerSave(tHalHandle hHal, tPmcPowerSavingMode psMode,
839 void *pConfigParams);
840
841/* ---------------------------------------------------------------------------
842 \fn sme_SignalPowerEvent
843 \brief Signals to PMC that a power event has occurred. Used for putting
844 the chip into deep sleep mode.
845 \param hHal - The handle returned by macOpen.
846 \param event - the event that has occurred
847 \return eHalStatus
848 ---------------------------------------------------------------------------*/
849extern eHalStatus sme_SignalPowerEvent (
850 tHalHandle hHal,
851 tPmcPowerEvent event);
852
853/* ---------------------------------------------------------------------------
854 \fn sme_EnablePowerSave
855 \brief Enables one of the power saving modes. This API does not cause a
856 device state change. This is purely a configuration API.
857 \param hHal - The handle returned by macOpen.
858 \param psMode - The power saving mode to enable.
859 \return eHalStatus
860 ---------------------------------------------------------------------------*/
861extern eHalStatus sme_EnablePowerSave (
862 tHalHandle hHal,
863 tPmcPowerSavingMode psMode);
864
865/* ---------------------------------------------------------------------------
866 \fn sme_DisablePowerSave
867 \brief Disables one of the power saving modes.Disabling does not imply
868 that device will be brought out of the current PS mode. This is
869 purely a configuration API.
870 \param hHal - The handle returned by macOpen.
871 \param psMode - The power saving mode to disable.
872 \return eHalStatus
873 ---------------------------------------------------------------------------*/
874extern eHalStatus sme_DisablePowerSave (
875 tHalHandle hHal,
876 tPmcPowerSavingMode psMode);
877
878/* ---------------------------------------------------------------------------
879 \fn sme_StartAutoBmpsTimer
880 \brief Starts a timer that periodically polls all the registered
881 module for entry into Bmps mode. This timer is started only if BMPS is
882 enabled and whenever the device is in full power.
883 \param hHal - The handle returned by macOpen.
884 \return eHalStatus
885 ---------------------------------------------------------------------------*/
886extern eHalStatus sme_StartAutoBmpsTimer ( tHalHandle hHal);
887
888/* ---------------------------------------------------------------------------
889 \fn sme_StopAutoBmpsTimer
890 \brief Stops the Auto BMPS Timer that was started using sme_startAutoBmpsTimer
891 Stopping the timer does not cause a device state change. Only the timer
892 is stopped. If "Full Power" is desired, use the sme_RequestFullPower API
893 \param hHal - The handle returned by macOpen.
894 \return eHalStatus
895 ---------------------------------------------------------------------------*/
896extern eHalStatus sme_StopAutoBmpsTimer ( tHalHandle hHal);
897
898/* ---------------------------------------------------------------------------
899 \fn sme_QueryPowerState
900 \brief Returns the current power state of the device.
901 \param hHal - The handle returned by macOpen.
902 \param pPowerState - pointer to location to return power state
903 \param pSwWlanSwitchState - ptr to location to return SW WLAN Switch state
904 \return eHalStatus
905 ---------------------------------------------------------------------------*/
906extern eHalStatus sme_QueryPowerState (
907 tHalHandle hHal,
908 tPmcPowerState *pPowerState,
909 tPmcSwitchState *pSwWlanSwitchState);
910
911/* ---------------------------------------------------------------------------
912 \fn sme_IsPowerSaveEnabled
913 \brief Checks if the device is able to enter a particular power save mode
914 This does not imply that the device is in a particular PS mode
915 \param hHal - The handle returned by macOpen.
916 \param psMode - the power saving mode
917 \return eHalStatus
918 ---------------------------------------------------------------------------*/
919extern tANI_BOOLEAN sme_IsPowerSaveEnabled(
920 tHalHandle hHal,
921 tPmcPowerSavingMode psMode);
922
923/* ---------------------------------------------------------------------------
924 \fn sme_RequestFullPower
925 \brief Request that the device be brought to full power state.
926 Note 1: If "fullPowerReason" specificied in this API is set to
927 eSME_FULL_PWR_NEEDED_BY_HDD, PMC will clear any "buffered wowl" requests
928 and also clear any "buffered BMPS requests by HDD". Assumption is that since
929 HDD is requesting full power, we need to undo any previous HDD requests for
930 BMPS (using sme_RequestBmps) or WoWL (using sme_EnterWoWL). If the reason is
931 specified anything other than above, the buffered requests for BMPS and WoWL
932 will not be cleared.
933 Note 2: Requesting full power (no matter what the fullPowerReason is) doesn't
934 disable the "auto bmps timer" (if it is enabled) or clear any "buffered uapsd
935 request".
936 Note 3: When the device finally enters Full Power PMC will start a timer
937 if any of the following holds true:
938 - Auto BMPS mode is enabled
939 - Uapsd request is pending
940 - HDD's request for BMPS is pending
941 - HDD's request for WoWL is pending
942 On timer expiry PMC will attempt to put the device in BMPS mode if following
943 (in addition to those listed above) holds true:
944 - Polling of all modules through the Power Save Check routine passes
945 - STA is associated to an access point
946 \param hHal - The handle returned by macOpen.
947 \param - callbackRoutine Callback routine invoked in case of success/failure
948 \param - callbackContext - Cookie to be passed back during callback
949 \param - fullPowerReason - Reason why this API is being invoked. SME needs to
950 distinguish between BAP and HDD requests
951 \return eHalStatus - status
952 eHAL_STATUS_SUCCESS - device brought to full power state
953 eHAL_STATUS_FAILURE - device cannot be brought to full power state
954 eHAL_STATUS_PMC_PENDING - device is being brought to full power state,
955 ---------------------------------------------------------------------------*/
956extern eHalStatus sme_RequestFullPower (
957 tHalHandle hHal,
958 void (*callbackRoutine) (void *callbackContext, eHalStatus status),
959 void *callbackContext,
960 tRequestFullPowerReason fullPowerReason);
961
962/* ---------------------------------------------------------------------------
963 \fn sme_RequestBmps
964 \brief Request that the device be put in BMPS state. Request will be
965 accepted only if BMPS mode is enabled and power save check routine
966 passes. Only HDD should invoke this API.
967 \param hHal - The handle returned by macOpen.
968 \param - callbackRoutine Callback routine invoked in case of success/failure
969 \param - callbackContext - Cookie to be passed back during callback
970 \return eHalStatus
971 eHAL_STATUS_SUCCESS - device is in BMPS state
972 eHAL_STATUS_FAILURE - device cannot be brought to BMPS state
973 eHAL_STATUS_PMC_PENDING - device is being brought to BMPS state
974 ---------------------------------------------------------------------------*/
975extern eHalStatus sme_RequestBmps (
976 tHalHandle hHal,
977 void (*callbackRoutine) (void *callbackContext, eHalStatus status),
978 void *callbackContext);
979
980/* ---------------------------------------------------------------------------
981 \fn sme_SetDHCPTillPowerActiveFlag
982 \brief Sets/Clears DHCP related flag in PMC to disable/enable auto BMPS
983 entry by PMC
984 \param hHal - The handle returned by macOpen.
985 ---------------------------------------------------------------------------*/
986void sme_SetDHCPTillPowerActiveFlag(tHalHandle hHal, tANI_U8 flag);
987
988
989/* ---------------------------------------------------------------------------
990 \fn sme_StartUapsd
991 \brief Request that the device be put in UAPSD state. If the device is in
992 Full Power it will be put in BMPS mode first and then into UAPSD
993 mode.
994 \param hHal - The handle returned by macOpen.
995 \param - callbackRoutine Callback routine invoked in case of success/failure
996 \param - callbackContext - Cookie to be passed back during callback
997 eHAL_STATUS_SUCCESS - device is in UAPSD state
998 eHAL_STATUS_FAILURE - device cannot be brought to UAPSD state
999 eHAL_STATUS_PMC_PENDING - device is being brought to UAPSD state
1000 eHAL_STATUS_PMC_DISABLED - UAPSD is disabled or BMPS mode is disabled
1001 \return eHalStatus
1002 ---------------------------------------------------------------------------*/
1003extern eHalStatus sme_StartUapsd (
1004 tHalHandle hHal,
1005 void (*callbackRoutine) (void *callbackContext, eHalStatus status),
1006 void *callbackContext);
1007
1008/* ---------------------------------------------------------------------------
1009 \fn sme_StopUapsd
1010 \brief Request that the device be put out of UAPSD state. Device will be
1011 put in in BMPS state after stop UAPSD completes. Buffered requests for
1012 UAPSD will be cleared after this.
1013 \param hHal - The handle returned by macOpen.
1014 \return eHalStatus
1015 eHAL_STATUS_SUCCESS - device is put out of UAPSD and back in BMPS state
1016 eHAL_STATUS_FAILURE - device cannot be brought out of UAPSD state
1017 ---------------------------------------------------------------------------*/
1018extern eHalStatus sme_StopUapsd (tHalHandle hHal);
1019
1020/* ---------------------------------------------------------------------------
1021 \fn sme_RequestStandby
1022 \brief Request that the device be put in standby. It is HDD's responsibility
1023 to bring the chip to full power and do a discconnect before calling
1024 this API. Request for standby will be rejected if STA is associated
1025 to an AP.
1026 \param hHal - The handle returned by macOpen.
1027 \param - callbackRoutine Callback routine invoked in case of success/failure
1028 \param - callbackContext - Cookie to be passed back during callback
1029 \return eHalStatus
1030 eHAL_STATUS_SUCCESS - device is in Standby mode
1031 eHAL_STATUS_FAILURE - device cannot be put in standby mode
1032 eHAL_STATUS_PMC_PENDING - device is being put in standby mode
1033 ---------------------------------------------------------------------------*/
1034extern eHalStatus sme_RequestStandby (
1035 tHalHandle hHal,
1036 void (*callbackRoutine) (void *callbackContext, eHalStatus status),
1037 void *callbackContext);
1038
1039/* ---------------------------------------------------------------------------
1040 \fn sme_RegisterPowerSaveCheck
1041 \brief Register a power save check routine that is called whenever
1042 the device is about to enter one of the power save modes.
1043 \param hHal - The handle returned by macOpen.
1044 \param checkRoutine - Power save check routine to be registered
1045 \param callbackContext - Cookie to be passed back during callback
1046 \return eHalStatus
1047 eHAL_STATUS_SUCCESS - successfully registered
1048 eHAL_STATUS_FAILURE - not successfully registered
1049 ---------------------------------------------------------------------------*/
1050extern eHalStatus sme_RegisterPowerSaveCheck (
1051 tHalHandle hHal,
1052 tANI_BOOLEAN (*checkRoutine) (void *checkContext), void *checkContext);
1053
1054/* ---------------------------------------------------------------------------
1055 \fn sme_DeregisterPowerSaveCheck
1056 \brief Deregister a power save check routine
1057 \param hHal - The handle returned by macOpen.
1058 \param checkRoutine - Power save check routine to be deregistered
1059 \return eHalStatus
1060 eHAL_STATUS_SUCCESS - successfully deregistered
1061 eHAL_STATUS_FAILURE - not successfully deregistered
1062 ---------------------------------------------------------------------------*/
1063extern eHalStatus sme_DeregisterPowerSaveCheck (
1064 tHalHandle hHal,
1065 tANI_BOOLEAN (*checkRoutine) (void *checkContext));
1066
1067/* ---------------------------------------------------------------------------
1068 \fn sme_RegisterDeviceStateUpdateInd
1069 \brief Register a callback routine that is called whenever
1070 the device enters a new device state (Full Power, BMPS, UAPSD)
1071 \param hHal - The handle returned by macOpen.
1072 \param callbackRoutine - Callback routine to be registered
1073 \param callbackContext - Cookie to be passed back during callback
1074 \return eHalStatus
1075 eHAL_STATUS_SUCCESS - successfully registered
1076 eHAL_STATUS_FAILURE - not successfully registered
1077 ---------------------------------------------------------------------------*/
1078extern eHalStatus sme_RegisterDeviceStateUpdateInd (
1079 tHalHandle hHal,
1080 void (*callbackRoutine) (void *callbackContext, tPmcState pmcState),
1081 void *callbackContext);
1082
1083/* ---------------------------------------------------------------------------
1084 \fn sme_DeregisterDeviceStateUpdateInd
1085 \brief Deregister a routine that was registered for device state changes
1086 \param hHal - The handle returned by macOpen.
1087 \param callbackRoutine - Callback routine to be deregistered
1088 \return eHalStatus
1089 eHAL_STATUS_SUCCESS - successfully deregistered
1090 eHAL_STATUS_FAILURE - not successfully deregistered
1091 ---------------------------------------------------------------------------*/
1092extern eHalStatus sme_DeregisterDeviceStateUpdateInd (
1093 tHalHandle hHal,
1094 void (*callbackRoutine) (void *callbackContext, tPmcState pmcState));
1095
1096/* ---------------------------------------------------------------------------
1097 \fn sme_WowlAddBcastPattern
1098 \brief Add a pattern for Pattern Byte Matching in Wowl mode. Firmware will
1099 do a pattern match on these patterns when Wowl is enabled during BMPS
1100 mode.
1101 \param hHal - The handle returned by macOpen.
1102 \param pattern - Pattern to be added
1103 \return eHalStatus
1104 eHAL_STATUS_FAILURE Cannot add pattern
1105 eHAL_STATUS_SUCCESS Request accepted.
1106 ---------------------------------------------------------------------------*/
1107extern eHalStatus sme_WowlAddBcastPattern (
1108 tHalHandle hHal,
1109 tpSirWowlAddBcastPtrn pattern);
1110
1111/* ---------------------------------------------------------------------------
1112 \fn sme_WowlDelBcastPattern
1113 \brief Delete a pattern that was added for Pattern Byte Matching.
1114 \param hHal - The handle returned by macOpen.
1115 \param pattern - Pattern to be deleted
1116 \return eHalStatus
1117 eHAL_STATUS_FAILURE Cannot delete pattern
1118 eHAL_STATUS_SUCCESS Request accepted.
1119 ---------------------------------------------------------------------------*/
1120extern eHalStatus sme_WowlDelBcastPattern (
1121 tHalHandle hHal,
1122 tpSirWowlDelBcastPtrn pattern);
1123
1124/* ---------------------------------------------------------------------------
1125 \fn sme_EnterWowl
1126 \brief This is the API to request entry into WOWL mode.
1127 WoWLAN works on top of BMPS mode. If the device is not in BMPS mode,
1128 SME will will cache the information that WOWL has been requested and
1129 attempt to put the device in BMPS first. On entry into BMPS, SME will
1130 enter the WOWL mode.
1131 Note 1: After WoWL request is accepted, If module other than HDD requests
1132 full power BEFORE WoWL request is completed, PMC will buffer the WoWL request
1133 and attempt to put the chip into BMPS+WOWL based on a timer.
1134 Note 2: Buffered request for WoWL will be cleared immedisately AFTER "enter Wowl"
1135 completes or if HDD requests full power or if sme_ExitWoWL API is invoked.
1136 Note 3: Both UAPSD and WOWL work on top of BMPS. On entry into BMPS, SME
1137 will give priority to UAPSD and enable only UAPSD if both UAPSD and WOWL
1138 are required. Currently there is no requirement or use case to support UAPSD
1139 and WOWL at the same time.
1140 Note 4. Request for WoWL is rejected if there is a pending UAPSD request.
1141 Note 5. Request for WoWL is rejected if BMPS is disabled.
1142
1143 \param hHal - The handle returned by macOpen.
1144 \param enterWowlCallbackRoutine - Callback routine provided by HDD.
1145 Used for success/failure notification by SME
1146 \param enterWowlCallbackContext - A cookie passed by HDD, that is passed back to HDD
1147 at the time of callback.
1148 \param wakeReasonIndCB - Callback routine provided by HDD.
1149 Used for Wake Reason Indication by SME
1150 \param wakeReasonIndCBContext - A cookie passed by HDD, that is passed back to HDD
1151 at the time of callback.
1152 \return eHalStatus
1153 eHAL_STATUS_SUCCESS Device is already in WoWLAN mode
1154 eHAL_STATUS_FAILURE Device cannot enter WoWLAN mode.
1155 eHAL_STATUS_PMC_PENDING Request accepted. SME will enable WOWL when BMPS
1156 mode is entered.
1157 ---------------------------------------------------------------------------*/
1158extern eHalStatus sme_EnterWowl (
1159 tHalHandle hHal,
1160 void (*enterWowlCallbackRoutine) (void *callbackContext, eHalStatus status),
1161 void *enterWowlCallbackContext,
1162#ifdef WLAN_WAKEUP_EVENTS
1163 void (*wakeReasonIndCB) (void *callbackContext, tpSirWakeReasonInd pWakeReasonInd),
1164 void *wakeReasonIndCBContext,
1165#endif // WLAN_WAKEUP_EVENTS
1166 tpSirSmeWowlEnterParams wowlEnterParams);
1167
1168/* ---------------------------------------------------------------------------
1169 \fn sme_ExitWowl
1170 \brief This is the SME API exposed to HDD to request exit from WoWLAN mode.
1171 SME will initiate exit from WoWLAN mode and device will be put in BMPS
1172 mode. Any Buffered request for WoWL will be cleared after this API.
1173 \param hHal - The handle returned by macOpen.
1174 \return eHalStatus
1175 eHAL_STATUS_FAILURE Device cannot exit WoWLAN mode. This can happen
1176 only if the previous "Enter WOWL" transaction has
1177 not even completed.
1178 eHAL_STATUS_SUCCESS Request accepted to exit WoWLAN mode.
1179 ---------------------------------------------------------------------------*/
1180extern eHalStatus sme_ExitWowl (tHalHandle hHal);
1181
1182/* ---------------------------------------------------------------------------
1183
1184 \fn sme_RoamSetKey
1185
1186 \brief To set encryption key. This function should be called only when connected
1187 This is an asynchronous API.
1188
1189 \param pSetKeyInfo - pointer to a caller allocated object of tCsrSetContextInfo
1190
1191 \param pRoamId Upon success return, this is the id caller can use to identify the request in roamcallback
1192
1193 \return eHalStatus SUCCESS Roam callback will be called indicate actually results
1194
1195 FAILURE or RESOURCES The API finished and failed.
1196
1197 -------------------------------------------------------------------------------*/
1198eHalStatus sme_RoamSetKey(tHalHandle, tANI_U8 sessionId, tCsrRoamSetKey *pSetKey, tANI_U32 *pRoamId);
1199
1200/* ---------------------------------------------------------------------------
1201
1202 \fn sme_RoamRemoveKey
1203
1204 \brief To set encryption key. This is an asynchronous API.
1205
1206 \param pRemoveKey - pointer to a caller allocated object of tCsrRoamRemoveKey
1207
1208 \param pRoamId Upon success return, this is the id caller can use to identify the request in roamcallback
1209
1210 \return eHalStatus SUCCESS Roam callback will be called indicate actually results
1211
1212 FAILURE or RESOURCES The API finished and failed.
1213
1214 -------------------------------------------------------------------------------*/
1215eHalStatus sme_RoamRemoveKey(tHalHandle, tANI_U8 sessionId, tCsrRoamRemoveKey *pRemoveKey, tANI_U32 *pRoamId);
1216
1217
1218/* ---------------------------------------------------------------------------
1219
1220 \fn sme_GetCountryCode
1221
1222 \brief To return the current country code. If no country code is applied, default country code is
1223 used to fill the buffer.
1224 If 11d supported is turned off, an error is return and the last applied/default country code is used.
1225 This is a synchronous API.
1226
1227 \param pBuf - pointer to a caller allocated buffer for returned country code.
1228
1229 \param pbLen For input, this parameter indicates how big is the buffer.
1230 Upon return, this parameter has the number of bytes for country. If pBuf
1231 doesn't have enough space, this function returns
1232 fail status and this parameter contains the number that is needed.
1233
1234 \return eHalStatus SUCCESS.
1235
1236 FAILURE or RESOURCES The API finished and failed.
1237
1238 -------------------------------------------------------------------------------*/
1239eHalStatus sme_GetCountryCode(tHalHandle hHal, tANI_U8 *pBuf, tANI_U8 *pbLen);
1240
1241/* ---------------------------------------------------------------------------
1242
1243 \fn sme_SetCountryCode
1244
1245 \brief To change the current/default country code.
1246 If 11d supported is turned off, an error is return.
1247 This is a synchronous API.
1248
1249 \param pCountry - pointer to a caller allocated buffer for the country code.
1250
1251 \param pfRestartNeeded A pointer to caller allocated memory, upon successful return, it indicates
1252 whether a reset is required.
1253
1254 \return eHalStatus SUCCESS.
1255
1256 FAILURE or RESOURCES The API finished and failed.
1257
1258 -------------------------------------------------------------------------------*/
1259eHalStatus sme_SetCountryCode(tHalHandle hHal, tANI_U8 *pCountry, tANI_BOOLEAN *pfRestartNeeded);
1260
1261/* ---------------------------------------------------------------------------
1262 \fn sme_ResetCountryCodeInformation
1263 \brief this function is to reset the country code current being used back to EEPROM default
1264 this includes channel list and power setting. This is a synchronous API.
1265 \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether
1266 a restart is needed to apply the change
1267 \return eHalStatus
1268 -------------------------------------------------------------------------------*/
1269eHalStatus sme_ResetCountryCodeInformation(tHalHandle hHal, tANI_BOOLEAN *pfRestartNeeded);
1270
1271/* ---------------------------------------------------------------------------
1272 \fn sme_GetSupportedCountryCode
1273 \brief this function is to get a list of the country code current being supported
1274 \param pBuf - Caller allocated buffer with at least 3 bytes, upon success return,
1275 this has the country code list. 3 bytes for each country code. This may be NULL if
1276 caller wants to know the needed byte count.
1277 \param pbLen - Caller allocated, as input, it indicates the length of pBuf. Upon success return,
1278 this contains the length of the data in pBuf. If pbuf is NULL, as input, *pbLen should be 0.
1279 \return eHalStatus
1280 -------------------------------------------------------------------------------*/
1281eHalStatus sme_GetSupportedCountryCode(tHalHandle hHal, tANI_U8 *pBuf, tANI_U32 *pbLen);
1282
1283/* ---------------------------------------------------------------------------
1284 \fn sme_GetCurrentRegulatoryDomain
1285 \brief this function is to get the current regulatory domain. This is a synchronous API.
1286 This function must be called after CFG is downloaded and all the band/mode setting already passed into
1287 SME. The function fails if 11d support is turned off.
1288 \param pDomain - Caller allocated buffer to return the current domain.
1289 \return eHalStatus SUCCESS.
1290
1291 FAILURE or RESOURCES The API finished and failed.
1292 -------------------------------------------------------------------------------*/
1293eHalStatus sme_GetCurrentRegulatoryDomain(tHalHandle hHal, v_REGDOMAIN_t *pDomain);
1294
1295/* ---------------------------------------------------------------------------
1296 \fn sme_SetRegulatoryDomain
1297 \brief this function is to set the current regulatory domain.
1298 This function must be called after CFG is downloaded and all the band/mode setting already passed into
1299 SME. This is a synchronous API.
1300 \param domainId - indicate the domain (defined in the driver) needs to set to.
1301 See v_REGDOMAIN_t for definition
1302 \param pfRestartNeeded - pointer to a caller allocated space. Upon successful return, it indicates whether
1303 a restart is needed to apply the change
1304 \return eHalStatus
1305 -------------------------------------------------------------------------------*/
1306eHalStatus sme_SetRegulatoryDomain(tHalHandle hHal, v_REGDOMAIN_t domainId, tANI_BOOLEAN *pfRestartNeeded);
1307
1308/* ---------------------------------------------------------------------------
1309
1310 \fn sme_GetRegulatoryDomainForCountry
1311
1312 \brief To return a regulatory domain base on a country code. This is a synchronous API.
1313
1314 \param pCountry - pointer to a caller allocated buffer for input country code.
1315
1316 \param pDomainId Upon successful return, it is the domain that country belongs to.
1317 If it is NULL, returning success means that the country code is known.
1318
1319 \return eHalStatus SUCCESS.
1320
1321 FAILURE or RESOURCES The API finished and failed.
1322
1323 -------------------------------------------------------------------------------*/
1324eHalStatus sme_GetRegulatoryDomainForCountry(tHalHandle hHal, tANI_U8 *pCountry, v_REGDOMAIN_t *pDomainId);
1325
1326
1327
1328/* ---------------------------------------------------------------------------
1329
1330 \fn sme_GetSupportedRegulatoryDomains
1331
1332 \brief To return a list of supported regulatory domains. This is a synchronous API.
1333
1334 \param pDomains - pointer to a caller allocated buffer for returned regulatory domains.
1335
1336 \param pNumDomains For input, this parameter indicates howm many domains pDomains can hold.
1337 Upon return, this parameter has the number for supported domains. If pDomains
1338 doesn't have enough space for all the supported domains, this function returns
1339 fail status and this parameter contains the number that is needed.
1340
1341 \return eHalStatus SUCCESS.
1342
1343 FAILURE or RESOURCES The API finished and failed.
1344
1345 -------------------------------------------------------------------------------*/
1346eHalStatus sme_GetSupportedRegulatoryDomains(tHalHandle hHal, v_REGDOMAIN_t *pDomains, tANI_U32 *pNumDomains);
1347
1348//some support functions
1349tANI_BOOLEAN sme_Is11dSupported(tHalHandle hHal);
1350tANI_BOOLEAN sme_Is11hSupported(tHalHandle hHal);
1351tANI_BOOLEAN sme_IsWmmSupported(tHalHandle hHal);
1352//Upper layer to get the list of the base channels to scan for passively 11d info from csr
1353eHalStatus sme_ScanGetBaseChannels( tHalHandle hHal, tCsrChannelInfo * pChannelInfo );
1354
1355typedef void ( *tSmeChangeCountryCallback)(void *pContext);
1356/* ---------------------------------------------------------------------------
1357
1358 \fn sme_ChangeCountryCode
1359
1360 \brief Change Country code from upperlayer during WLAN driver operation.
1361 This is a synchronous API.
1362
1363 \param hHal - The handle returned by macOpen.
1364
1365 \param pCountry New Country Code String
1366
1367 \return eHalStatus SUCCESS.
1368
1369 FAILURE or RESOURCES The API finished and failed.
1370
1371 -------------------------------------------------------------------------------*/
1372eHalStatus sme_ChangeCountryCode( tHalHandle hHal,
1373 tSmeChangeCountryCallback callback,
1374 tANI_U8 *pCountry,
1375 void *pContext,
1376 void* pVosContext );
1377
1378
1379/* ---------------------------------------------------------------------------
1380 \fn sme_BtcSignalBtEvent
1381 \brief API to signal Bluetooth (BT) event to the WLAN driver. Based on the
1382 BT event type and the current operating mode of Libra (full power,
1383 BMPS, UAPSD etc), appropriate Bluetooth Coexistence (BTC) strategy
1384 would be employed.
1385 \param hHal - The handle returned by macOpen.
1386 \param pBtcBtEvent - Pointer to a caller allocated object of type tSmeBtEvent
1387 Caller owns the memory and is responsible for freeing it.
1388 \return VOS_STATUS
1389 VOS_STATUS_E_FAILURE BT Event not passed to HAL. This can happen
1390 if driver has not yet been initialized or if BTC
1391 Events Layer has been disabled.
1392 VOS_STATUS_SUCCESS BT Event passed to HAL
1393 ---------------------------------------------------------------------------*/
1394VOS_STATUS sme_BtcSignalBtEvent (tHalHandle hHal, tpSmeBtEvent pBtcBtEvent);
1395
1396/* ---------------------------------------------------------------------------
1397 \fn sme_BtcSetConfig
1398 \brief API to change the current Bluetooth Coexistence (BTC) configuration
1399 This function should be invoked only after CFG download has completed.
1400 Calling it after sme_HDDReadyInd is recommended.
1401 \param hHal - The handle returned by macOpen.
1402 \param pSmeBtcConfig - Pointer to a caller allocated object of type
1403 tSmeBtcConfig. Caller owns the memory and is responsible
1404 for freeing it.
1405 \return VOS_STATUS
1406 VOS_STATUS_E_FAILURE Config not passed to HAL.
1407 VOS_STATUS_SUCCESS Config passed to HAL
1408 ---------------------------------------------------------------------------*/
1409VOS_STATUS sme_BtcSetConfig (tHalHandle hHal, tpSmeBtcConfig pSmeBtcConfig);
1410
1411/* ---------------------------------------------------------------------------
1412 \fn sme_BtcGetConfig
1413 \brief API to retrieve the current Bluetooth Coexistence (BTC) configuration
1414 \param hHal - The handle returned by macOpen.
1415 \param pSmeBtcConfig - Pointer to a caller allocated object of type tSmeBtcConfig.
1416 Caller owns the memory and is responsible for freeing it.
1417 \return VOS_STATUS
1418 VOS_STATUS_E_FAILURE - failure
1419 VOS_STATUS_SUCCESS success
1420 ---------------------------------------------------------------------------*/
1421VOS_STATUS sme_BtcGetConfig (tHalHandle hHal, tpSmeBtcConfig pSmeBtcConfig);
1422
1423/* ---------------------------------------------------------------------------
1424 \fn sme_SetCfgPrivacy
1425 \brief API to set configure privacy parameters
1426 \param hHal - The handle returned by macOpen.
1427 \param pProfile - Pointer CSR Roam profile.
1428 \param fPrivacy - This parameter indicates status of privacy
1429
1430 \return void
1431 ---------------------------------------------------------------------------*/
1432void sme_SetCfgPrivacy(tHalHandle hHal, tCsrRoamProfile *pProfile, tANI_BOOLEAN fPrivacy);
1433
1434#if defined WLAN_FEATURE_VOWIFI
1435/* ---------------------------------------------------------------------------
1436 \fn sme_NeighborReportRequest
1437 \brief API to request neighbor report.
1438 \param hHal - The handle returned by macOpen.
1439 \param pRrmNeighborReq - Pointer to a caller allocated object of type
1440 tRrmNeighborReq. Caller owns the memory and is responsible
1441 for freeing it.
1442 \return VOS_STATUS
1443 VOS_STATUS_E_FAILURE - failure
1444 VOS_STATUS_SUCCESS success
1445 ---------------------------------------------------------------------------*/
1446VOS_STATUS sme_NeighborReportRequest (tHalHandle hHal, tANI_U8 sessionId,
1447 tpRrmNeighborReq pRrmNeighborReq, tpRrmNeighborRspCallbackInfo callbackInfo);
1448#endif
1449
1450//The following are debug APIs to support direct read/write register/memory
1451//They are placed in SME because HW cannot be access when in LOW_POWER state
1452//AND not connected. The knowledge and synchronization is done in SME
1453
1454//sme_DbgReadRegister
1455//Caller needs to validate the input values
1456VOS_STATUS sme_DbgReadRegister(tHalHandle hHal, v_U32_t regAddr, v_U32_t *pRegValue);
1457
1458//sme_DbgWriteRegister
1459//Caller needs to validate the input values
1460VOS_STATUS sme_DbgWriteRegister(tHalHandle hHal, v_U32_t regAddr, v_U32_t regValue);
1461
1462//sme_DbgReadMemory
1463//Caller needs to validate the input values
1464//pBuf caller allocated buffer has the length of nLen
1465VOS_STATUS sme_DbgReadMemory(tHalHandle hHal, v_U32_t memAddr, v_U8_t *pBuf, v_U32_t nLen);
1466
1467//sme_DbgWriteMemory
1468//Caller needs to validate the input values
1469VOS_STATUS sme_DbgWriteMemory(tHalHandle hHal, v_U32_t memAddr, v_U8_t *pBuf, v_U32_t nLen);
1470
1471#ifdef FEATURE_WLAN_NON_INTEGRATED_SOC
1472//sme_GetFwVersion
1473VOS_STATUS sme_GetFwVersion (tHalHandle hHal,FwVersionInfo *pVersion);
1474#endif
1475#ifdef FEATURE_WLAN_INTEGRATED_SOC
1476VOS_STATUS sme_GetWcnssWlanCompiledVersion(tHalHandle hHal,
1477 tSirVersionType *pVersion);
1478VOS_STATUS sme_GetWcnssWlanReportedVersion(tHalHandle hHal,
1479 tSirVersionType *pVersion);
1480VOS_STATUS sme_GetWcnssSoftwareVersion(tHalHandle hHal,
1481 tANI_U8 *pVersion,
1482 tANI_U32 versionBufferSize);
1483VOS_STATUS sme_GetWcnssHardwareVersion(tHalHandle hHal,
1484 tANI_U8 *pVersion,
1485 tANI_U32 versionBufferSize);
1486#endif
1487eHalStatus sme_RoamRegisterCallback(tHalHandle hHal,
1488 csrRoamCompleteCallback callback,
1489 void *pContext);
1490
1491#ifdef FEATURE_WLAN_WAPI
1492/* ---------------------------------------------------------------------------
1493 \fn sme_RoamSetBKIDCache
1494 \brief The SME API exposed to HDD to allow HDD to provde SME the BKID
1495 candidate list.
1496 \param hHal - Handle to the HAL. The HAL handle is returned by the HAL after
1497 it is opened (by calling halOpen).
1498 \param pBKIDCache - caller allocated buffer point to an array of tBkidCacheInfo
1499 \param numItems - a variable that has the number of tBkidCacheInfo allocated
1500 when retruning, this is the number of items put into pBKIDCache
1501 \return eHalStatus - when fail, it usually means the buffer allocated is not
1502 big enough and pNumItems has the number of tBkidCacheInfo.
1503 ---------------------------------------------------------------------------*/
1504eHalStatus sme_RoamSetBKIDCache( tHalHandle hHal, tANI_U32 sessionId, tBkidCacheInfo *pBKIDCache,
1505 tANI_U32 numItems );
1506
1507/* ---------------------------------------------------------------------------
1508 \fn sme_RoamGetBKIDCache
1509 \brief The SME API exposed to HDD to allow HDD to request SME to return its
1510 BKID cache.
1511 \param hHal - Handle to the HAL. The HAL handle is returned by the HAL after
1512 it is opened (by calling halOpen).
1513 \param pNum - caller allocated memory that has the space of the number of
1514 tBkidCacheInfo as input. Upon returned, *pNum has the needed number of entries
1515 in SME cache.
1516 \param pBkidCache - Caller allocated memory that contains BKID cache, if any,
1517 upon return
1518 \return eHalStatus - when fail, it usually means the buffer allocated is not
1519 big enough.
1520 ---------------------------------------------------------------------------*/
1521eHalStatus sme_RoamGetBKIDCache(tHalHandle hHal, tANI_U32 *pNum,
1522 tBkidCacheInfo *pBkidCache);
1523
1524/* ---------------------------------------------------------------------------
1525 \fn sme_RoamGetNumBKIDCache
1526 \brief The SME API exposed to HDD to allow HDD to request SME to return the
1527 number of BKID cache entries.
1528 \param hHal - Handle to the HAL. The HAL handle is returned by the HAL after
1529 it is opened (by calling halOpen).
1530 \return tANI_U32 - the number of BKID cache entries.
1531 ---------------------------------------------------------------------------*/
1532tANI_U32 sme_RoamGetNumBKIDCache(tHalHandle hHal, tANI_U32 sessionId);
1533
1534/* ---------------------------------------------------------------------------
1535 \fn sme_ScanGetBKIDCandidateList
1536 \brief a wrapper function to return the BKID candidate list
1537 \param pBkidList - caller allocated buffer point to an array of
1538 tBkidCandidateInfo
1539 \param pNumItems - pointer to a variable that has the number of
1540 tBkidCandidateInfo allocated when retruning, this is
1541 either the number needed or number of items put into
1542 pPmkidList
1543 \return eHalStatus - when fail, it usually means the buffer allocated is not
1544 big enough and pNumItems
1545 has the number of tBkidCandidateInfo.
1546 \Note: pNumItems is a number of tBkidCandidateInfo,
1547 not sizeof(tBkidCandidateInfo) * something
1548 ---------------------------------------------------------------------------*/
1549eHalStatus sme_ScanGetBKIDCandidateList(tHalHandle hHal, tANI_U32 sessionId,
1550 tBkidCandidateInfo *pBkidList,
1551 tANI_U32 *pNumItems );
1552#endif /* FEATURE_WLAN_WAPI */
1553
Jeff Johnsone7245742012-09-05 17:12:55 -07001554#ifdef FEATURE_OEM_DATA_SUPPORT
1555/********************************************************************************************
1556 Oem data related modifications
1557*********************************************************************************************/
1558/* ---------------------------------------------------------------------------
1559 \fn sme_OemDataReq
1560 \param sessionId - session id of session to be used for oem data req.
1561 \param pOemDataReqID - pointer to an object to get back the request ID
1562 \param callback - a callback function that is called upon finish
1563 \param pContext - a pointer passed in for the callback
1564 \return eHalStatus
1565 ---------------------------------------------------------------------------*/
1566eHalStatus sme_OemDataReq(tHalHandle hHal,
1567 tANI_U8 sessionId,
1568 tOemDataReqConfig *,
1569 tANI_U32 *pOemDataReqID,
1570 oemData_OemDataReqCompleteCallback callback,
1571 void *pContext);
1572
1573/* ---------------------------------------------------------------------------
1574 \fn sme_getOemDataRsp
1575 \param pOemDataRsp - A pointer to the response object
1576 \param pOemDataReqID - pointer to an object to get back the request ID
1577 \return eHalStatus
1578 ---------------------------------------------------------------------------*/
1579eHalStatus sme_getOemDataRsp(tHalHandle hHal,
1580 tOemDataRsp **pOemDataRsp);
1581
1582#endif /*FEATURE_OEM_DATA_SUPPORT*/
Jeff Johnson295189b2012-06-20 16:38:30 -07001583
1584
1585#ifdef WLAN_SOFTAP_FEATURE
1586
1587/* ---------------------------------------------------------------------------
1588
1589 \fn sme_RoamUpdateAPWPSIE
1590
1591 \brief To update AP's WPS IE. This function should be called after SME AP session is created
1592 This is an asynchronous API.
1593
1594 \param pAPWPSIES - pointer to a caller allocated object of tCsrRoamAPWPSIES
1595
1596 \return eHalStatus – SUCCESS – Roam callback will be called indicate actually results
1597
1598 FAILURE or RESOURCES – The API finished and failed.
1599
1600 -------------------------------------------------------------------------------*/
1601
1602eHalStatus sme_RoamUpdateAPWPSIE(tHalHandle, tANI_U8 sessionId, tSirAPWPSIEs *pAPWPSIES);
1603/* ---------------------------------------------------------------------------
1604
1605 \fn sme_RoamUpdateAPWPARSNIEs
1606
1607 \brief To update AP's WPA/RSN IEs. This function should be called after SME AP session is created
1608 This is an asynchronous API.
1609
1610 \param pAPSirRSNie - pointer to a caller allocated object of tSirRSNie with WPS/RSN IEs
1611
1612 \return eHalStatus – SUCCESS –
1613
1614 FAILURE or RESOURCES – The API finished and failed.
1615
1616 -------------------------------------------------------------------------------*/
1617eHalStatus sme_RoamUpdateAPWPARSNIEs(tHalHandle hHal, tANI_U8 sessionId, tSirRSNie * pAPSirRSNie);
1618
1619#endif
1620
1621/* ---------------------------------------------------------------------------
1622 \fn sme_sendBTAmpEvent
1623 \brief API to send the btAMPstate to FW
1624 \param hHal - The handle returned by macOpen.
1625 \param btAmpEvent -- btAMP event
1626 \return eHalStatus – SUCCESS –
1627
1628 FAILURE or RESOURCES – The API finished and failed.
1629
1630--------------------------------------------------------------------------- */
1631
1632eHalStatus sme_sendBTAmpEvent(tHalHandle hHal, tSmeBtAmpEvent btAmpEvent);
1633
1634
1635
1636/* ---------------------------------------------------------------------------
1637 \fn sme_SetHostOffload
1638 \brief API to set the host offload feature.
1639 \param hHal - The handle returned by macOpen.
1640 \param pRequest - Pointer to the offload request.
1641 \return eHalStatus
1642 ---------------------------------------------------------------------------*/
Jeff Johnsone7245742012-09-05 17:12:55 -07001643eHalStatus sme_SetHostOffload (tHalHandle hHal, tANI_U8 sessionId,
1644 tpSirHostOffloadReq pRequest);
Jeff Johnson295189b2012-06-20 16:38:30 -07001645
1646/* ---------------------------------------------------------------------------
1647 \fn sme_SetKeepAlive
1648 \brief API to set the Keep Alive feature.
1649 \param hHal - The handle returned by macOpen.
1650 \param pRequest - Pointer to the Keep Alive request.
1651 \return eHalStatus
1652 ---------------------------------------------------------------------------*/
Jeff Johnsone7245742012-09-05 17:12:55 -07001653eHalStatus sme_SetKeepAlive (tHalHandle hHal, tANI_U8 sessionId,
1654 tpSirKeepAliveReq pRequest);
Jeff Johnson295189b2012-06-20 16:38:30 -07001655
1656
1657/* ---------------------------------------------------------------------------
1658 \fn sme_AbortMacScan
1659 \brief API to cancel MAC scan.
1660 \param hHal - The handle returned by macOpen.
1661 \return VOS_STATUS
1662 VOS_STATUS_E_FAILURE - failure
1663 VOS_STATUS_SUCCESS success
1664 ---------------------------------------------------------------------------*/
1665eHalStatus sme_AbortMacScan(tHalHandle hHal);
1666
1667/* ----------------------------------------------------------------------------
1668 \fn sme_GetOperationChannel
1669 \brief API to get current channel on which STA is parked
1670 this function gives channel information only of infra station or IBSS station.
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001671 \param hHal, pointer to memory location and sessionId
Jeff Johnson295189b2012-06-20 16:38:30 -07001672 \returns eHAL_STATUS_SUCCESS
1673 eHAL_STATUS_FAILURE
1674-------------------------------------------------------------------------------*/
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001675eHalStatus sme_GetOperationChannel(tHalHandle hHal, tANI_U32 *pChannel, tANI_U8 sessionId);
Jeff Johnson295189b2012-06-20 16:38:30 -07001676
1677#ifdef WLAN_FEATURE_P2P
1678/* ---------------------------------------------------------------------------
1679
1680 \fn sme_RegisterMgtFrame
1681
1682 \brief To register managment frame of specified type and subtype.
1683 \param frameType - type of the frame that needs to be passed to HDD.
1684 \param matchData - data which needs to be matched before passing frame
1685 to HDD.
1686 \param matchDataLen - Length of matched data.
1687 \return eHalStatus
1688 -------------------------------------------------------------------------------*/
1689eHalStatus sme_RegisterMgmtFrame(tHalHandle hHal, tANI_U8 sessionId,
1690 tANI_U16 frameType, tANI_U8* matchData, tANI_U16 matchLen);
1691
1692/* ---------------------------------------------------------------------------
1693
1694 \fn sme_DeregisterMgtFrame
1695
1696 \brief To De-register managment frame of specified type and subtype.
1697 \param frameType - type of the frame that needs to be passed to HDD.
1698 \param matchData - data which needs to be matched before passing frame
1699 to HDD.
1700 \param matchDataLen - Length of matched data.
1701 \return eHalStatus
1702 -------------------------------------------------------------------------------*/
1703eHalStatus sme_DeregisterMgmtFrame(tHalHandle hHal, tANI_U8 sessionId,
1704 tANI_U16 frameType, tANI_U8* matchData, tANI_U16 matchLen);
1705#endif
1706
1707/* ---------------------------------------------------------------------------
1708
1709 \fn sme_ConfigureRxpFilter
1710
1711 \brief
1712 SME will pass this request to lower mac to set/reset the filter on RXP for
1713 multicast & broadcast traffic.
1714
1715 \param
1716
1717 hHal - The handle returned by macOpen.
1718
1719 filterMask- Currently the API takes a 1 or 0 (set or reset) as filter.
1720 Basically to enable/disable the filter (to filter "all" mcbc traffic) based
1721 on this param. In future we can use this as a mask to set various types of
1722 filters as suggested below:
1723 FILTER_ALL_MULTICAST:
1724 FILTER_ALL_BROADCAST:
1725 FILTER_ALL_MULTICAST_BROADCAST:
1726
1727
1728 \return eHalStatus
1729
1730
1731--------------------------------------------------------------------------- */
1732eHalStatus sme_ConfigureRxpFilter( tHalHandle hHal,
1733 tpSirWlanSetRxpFilters wlanRxpFilterParam);
1734
1735/* ---------------------------------------------------------------------------
1736
1737 \fn sme_ConfigureAppsCpuWakeupState
1738
1739 \brief
1740 SME will pass this request to lower mac to dynamically adjusts the listen
1741 interval based on the WLAN/MSM activity. This feature is named as
1742 Telescopic Beacon wakeup feature.
1743
1744 \param
1745
1746 hHal - The handle returned by macOpen.
1747
1748 isAppsAwake- Depicts the state of the Apps CPU
1749
1750
1751 \return eHalStatus
1752
1753
1754--------------------------------------------------------------------------- */
1755eHalStatus sme_ConfigureAppsCpuWakeupState( tHalHandle hHal, tANI_BOOLEAN isAppsAwake);
1756
1757#ifdef FEATURE_WLAN_INTEGRATED_SOC
1758/* ---------------------------------------------------------------------------
1759
1760 \fn sme_ConfigureSuspendInd
1761
1762 \brief
1763 SME will pass this request to lower mac to Indicate that the wlan needs to
1764 be suspended
1765
1766 \param
1767
1768 hHal - The handle returned by macOpen.
1769
1770 wlanSuspendParam- Depicts the wlan suspend params
1771
1772
1773 \return eHalStatus
1774
1775
1776--------------------------------------------------------------------------- */
1777eHalStatus sme_ConfigureSuspendInd( tHalHandle hHal,
1778 tpSirWlanSuspendParam wlanSuspendParam);
1779
1780/* ---------------------------------------------------------------------------
1781
1782 \fn sme_ConfigureResumeReq
1783
1784 \brief
1785 SME will pass this request to lower mac to Indicate that the wlan needs to
1786 be Resumed
1787
1788 \param
1789
1790 hHal - The handle returned by macOpen.
1791
1792 wlanResumeParam- Depicts the wlan resume params
1793
1794
1795 \return eHalStatus
1796
1797
1798--------------------------------------------------------------------------- */
1799eHalStatus sme_ConfigureResumeReq( tHalHandle hHal,
1800 tpSirWlanResumeParam wlanResumeParam);
1801
1802#endif
1803
1804/* ---------------------------------------------------------------------------
1805
1806 \fn sme_GetInfraSessionId
1807
1808 \brief To get the session ID for infra session, if connected
1809 This is a synchronous API.
1810
1811 \param hHal - The handle returned by macOpen.
1812
1813 \return sessionid, -1 if infra session is not connected
1814
1815 -------------------------------------------------------------------------------*/
1816tANI_S8 sme_GetInfraSessionId(tHalHandle hHal);
1817
1818/* ---------------------------------------------------------------------------
1819
1820 \fn sme_GetInfraOperationChannel
1821
1822 \brief To get the operating channel for infra session, if connected
1823 This is a synchronous API.
1824
1825 \param hHal - The handle returned by macOpen.
1826 \param sessionId - the sessionId returned by sme_OpenSession.
1827
1828 \return operating channel, 0 if infra session is not connected
1829
1830 -------------------------------------------------------------------------------*/
1831tANI_U8 sme_GetInfraOperationChannel( tHalHandle hHal, tANI_U8 sessionId);
1832/* ---------------------------------------------------------------------------
1833
1834 \fn sme_GetConcurrentOperationChannel
1835
1836 \brief To get the operating channel for other concurrent sessions, if connected
1837 This is a synchronous API.
1838
1839 \param hHal - The handle returned by macOpen.
1840 \param currentPersona - persona that is trying to come up.
1841
1842 \return operating channel, 0 if infra session is not connected
1843
1844 -------------------------------------------------------------------------------*/
1845tANI_U8 sme_GetConcurrentOperationChannel( tHalHandle hHal );
1846
1847/* ---------------------------------------------------------------------------
1848 \fn sme_AbortMacScan
1849 \brief API to cancel MAC scan.
1850 \param hHal - The handle returned by macOpen.
1851 \return VOS_STATUS
1852 VOS_STATUS_E_FAILURE - failure
1853 VOS_STATUS_SUCCESS success
1854 ---------------------------------------------------------------------------*/
1855eHalStatus sme_AbortMacScan(tHalHandle hHal);
1856
1857/* ---------------------------------------------------------------------------
1858 \fn sme_GetCfgValidChannels
1859 \brief API to get valid channel list
1860 \param hHal - The handle returned by macOpen.
1861 \param aValidChannels - Pointer to the valid channel list
1862 \param len - valid channel list length
1863 \return eHalStatus
1864 ---------------------------------------------------------------------------*/
1865eHalStatus sme_GetCfgValidChannels(tHalHandle hHal, tANI_U8 *aValidChannels, tANI_U32 *len);
1866
1867#ifdef FEATURE_WLAN_SCAN_PNO
1868
1869/* ---------------------------------------------------------------------------
1870 \fn sme_SetPreferredNetworkList
1871 \brief API to set the Preferred Network List Offload feature.
1872 \param hHal - The handle returned by macOpen.
1873 \param pRequest - Pointer to the offload request.
1874 \return eHalStatus
1875 ---------------------------------------------------------------------------*/
1876eHalStatus sme_SetPreferredNetworkList (tHalHandle hHal, tpSirPNOScanReq pRequest, tANI_U8 sessionId, preferredNetworkFoundIndCallback callbackRoutine, void *callbackContext );
1877
1878/* ---------------------------------------------------------------------------
1879 \fn sme_SetRSSIFilter
1880 \brief API to set RSSI Filter feature.
1881 \param hHal - The handle returned by macOpen.
1882 \param pRequest - Pointer to the offload request.
1883 \return eHalStatus
1884 ---------------------------------------------------------------------------*/
1885eHalStatus sme_SetRSSIFilter(tHalHandle hHal, v_U8_t rssiThreshold);
1886
1887/******************************************************************************
1888*
1889* Name: sme_PreferredNetworkFoundInd
1890*
1891* Description:
1892* Invoke Preferred Network Found Indication
1893*
1894* Parameters:
1895* hHal - HAL handle for device
1896* pMsg - found network description
1897*
1898* Returns: eHalStatus
1899*
1900******************************************************************************/
1901eHalStatus sme_PreferredNetworkFoundInd (tHalHandle hHal, void* pMsg);
1902#endif // FEATURE_WLAN_SCAN_PNO
1903
1904/* ---------------------------------------------------------------------------
1905 \fn sme_SetPowerParams
1906 \brief API to set Power Parameters
1907 \param hHal - The handle returned by macOpen.
1908 \param pwParams - Pointer to the power parameters requested.
1909 \return eHalStatus
1910 ---------------------------------------------------------------------------*/
1911eHalStatus sme_SetPowerParams(tHalHandle hHal, tSirSetPowerParamsReq* pwParams);
1912
1913/* ---------------------------------------------------------------------------
1914 \fn sme_SetTxPerTracking
1915 \brief Set Tx PER tracking configuration parameters
1916 \param hHal - The handle returned by macOpen.
1917 \param pTxPerTrackingParam - Tx PER configuration parameters
1918 \return eHalStatus
1919 ---------------------------------------------------------------------------*/
1920eHalStatus sme_SetTxPerTracking (
1921 tHalHandle hHal,
1922 void (*pCallbackfn) (void *pCallbackContext),
1923 void *pCallbackContext,
1924 tpSirTxPerTrackingParam pTxPerTrackingParam);
1925
1926#ifdef WLAN_FEATURE_PACKET_FILTERING
1927/* ---------------------------------------------------------------------------
1928 \fn sme_ReceiveFilterSetFilter
1929 \brief API to set 8023 Multicast Address List
1930 \param hHal - The handle returned by macOpen.
1931 \param pMulticastAddrs - Pointer to the Multicast Address List
1932 \return eHalStatus
1933 ---------------------------------------------------------------------------*/
1934eHalStatus sme_8023MulticastList(tHalHandle hHal, tpSirRcvFltMcAddrList pMulticastAddrs);
1935
1936/* ---------------------------------------------------------------------------
1937 \fn sme_ReceiveFilterSetFilter
1938 \brief API to set Receive Packet Filter
1939 \param hHal - The handle returned by macOpen.
1940 \param pRcvPktFilterCfg - Receive Packet Filter parameter
1941 \return eHalStatus
1942 ---------------------------------------------------------------------------*/
Jeff Johnsone7245742012-09-05 17:12:55 -07001943eHalStatus sme_ReceiveFilterSetFilter(tHalHandle hHal, tpSirRcvPktFilterCfgType pRcvPktFilterCfg,
1944 tANI_U8 sessionId);
Jeff Johnson295189b2012-06-20 16:38:30 -07001945
1946/* ---------------------------------------------------------------------------
1947 \fn sme_GetFilterMatchCount
1948 \brief API to get D0 PC Filter Match Count
1949 \param hHal - The handle returned by macOpen
1950 \param callbackRoutine - Callback routine invoked to receive Packet Coalescing Filter Match Count
1951 \param callbackContext - Cookie to be passed back during callback
1952 \return eHalStatus
1953 ---------------------------------------------------------------------------*/
1954eHalStatus sme_GetFilterMatchCount(tHalHandle hHal,
1955 FilterMatchCountCallback callbackRoutine,
1956 void *callbackContext );
1957
1958/* ---------------------------------------------------------------------------
1959 \fn sme_ReceiveFilterClearFilter
1960 \brief API to clear Receive Packet Filter
1961 \param hHal - The handle returned by macOpen.
1962 \param pRcvFltPktClearParam - Receive Packet Filter Clear parameter
1963 \return eHalStatus
1964 ---------------------------------------------------------------------------*/
1965eHalStatus sme_ReceiveFilterClearFilter(tHalHandle hHal,
Jeff Johnsone7245742012-09-05 17:12:55 -07001966 tpSirRcvFltPktClearParam pRcvFltPktClearParam,
1967 tANI_U8 sessionId);
Jeff Johnson295189b2012-06-20 16:38:30 -07001968#endif // WLAN_FEATURE_PACKET_FILTERING
1969/* ---------------------------------------------------------------------------
1970
1971 \fn sme_IsChannelValid
1972 \brief To check if the channel is valid for currently established domain
1973 This is a synchronous API.
1974
1975 \param hHal - The handle returned by macOpen.
1976 \param channel - channel to verify
1977
1978 \return TRUE/FALSE, TRUE if channel is valid
1979
1980 -------------------------------------------------------------------------------*/
1981tANI_BOOLEAN sme_IsChannelValid(tHalHandle hHal, tANI_U8 channel);
1982
1983/* ---------------------------------------------------------------------------
1984 \fn sme_SetFreqBand
1985 \brief Used to set frequency band.
1986 \param hHal
1987 \eBand band value to be configured
1988 \- return eHalStatus
1989 -------------------------------------------------------------------------*/
1990eHalStatus sme_SetFreqBand(tHalHandle hHal, eCsrBand eBand);
1991
1992/* ---------------------------------------------------------------------------
1993 \fn sme_GetFreqBand
1994 \brief Used to get the current band settings.
1995 \param hHal
1996 \pBand pointer to hold the current band value
1997 \- return eHalStatus
1998 -------------------------------------------------------------------------*/
1999eHalStatus sme_GetFreqBand(tHalHandle hHal, eCsrBand *pBand);
2000
2001/* ---------------------------------------------------------------------------
2002
2003 \fn sme_SetTxPerTracking
2004 \brief Set Tx PER tracking configuration parameters
2005 \param hHal - The handle returned by macOpen.
2006 \param pTxPerTrackingParam - Tx PER configuration parameters
2007 \return eHalStatus
2008 ---------------------------------------------------------------------------*/
2009eHalStatus sme_SetTxPerTracking (
2010 tHalHandle hHal,
2011 void (*pCallbackfn) (void *pCallbackContext),
2012 void *pCallbackContext,
2013 tpSirTxPerTrackingParam pTxPerTrackingParam);
2014
2015#ifdef WLAN_FEATURE_GTK_OFFLOAD
2016/* ---------------------------------------------------------------------------
2017 \fn sme_SetGTKOffload
2018 \brief API to set GTK offload feature.
2019 \param hHal - The handle returned by macOpen.
2020 \param pRequest - Pointer to the GTK offload request.
2021 \return eHalStatus
2022 ---------------------------------------------------------------------------*/
2023eHalStatus sme_SetGTKOffload (tHalHandle hHal, tpSirGtkOffloadParams pRequest);
2024
2025/* ---------------------------------------------------------------------------
2026 \fn sme_GetGTKOffload
2027 \brief API to get GTK offload information.
2028 \param hHal - The handle returned by macOpen.
2029 \param pRequest - Pointer to the GTK offload response.
2030 \return eHalStatus
2031 ---------------------------------------------------------------------------*/
2032eHalStatus sme_GetGTKOffload (tHalHandle hHal, GTKOffloadGetInfoCallback callbackRoutine, void *callbackContext );
2033#endif // WLAN_FEATURE_GTK_OFFLOAD
2034
2035#ifdef WLAN_WAKEUP_EVENTS
2036eHalStatus sme_WakeReasonIndCallback (tHalHandle hHal, void* pMsg);
2037#endif // WLAN_WAKEUP_EVENTS
2038
2039/* ---------------------------------------------------------------------------
2040 \fn sme_SetTxPerTracking
2041 \brief Set Tx PER tracking configuration parameters
2042 \param hHal - The handle returned by macOpen.
2043 \param pTxPerTrackingParam - Tx PER configuration parameters
2044 \return eHalStatus
2045 ---------------------------------------------------------------------------*/
2046eHalStatus sme_SetTxPerTracking (
2047 tHalHandle hHal,
2048 void (*pCallbackfn) (void *pCallbackContext),
2049 void *pCallbackContext,
2050 tpSirTxPerTrackingParam pTxPerTrackingParam);
2051
2052
2053//return frequency for a particular channel
2054tANI_U16 sme_ChnToFreq(tANI_U8 chanNum);
2055
2056tANI_BOOLEAN sme_IsChannelValid(tHalHandle hHal, tANI_U8 channel);
2057
2058#if defined WLAN_FEATURE_P2P_INTERNAL
2059
2060eHalStatus sme_p2pResetSession(tHalHandle hHal, tANI_U8 HDDSessionId);
2061
2062/* ---------------------------------------------------------------------------
2063 \fn sme_p2pFlushDeviceList
2064 \brief Remove cached P2P result from scan results
2065 \param hHal - The handle returned by macOpen.
2066 \param HDDSessionId - HDD's sessionId. Currently unused.
2067 \return eHalStatus
2068 ---------------------------------------------------------------------------*/
2069eHalStatus sme_p2pFlushDeviceList(tHalHandle hHal, tANI_U8 HDDSessionId);
2070
2071eHalStatus sme_p2pGetResultFilter(tHalHandle hHal, tANI_U8 HDDSessionId,
2072 tCsrScanResultFilter *pFilter);
2073
2074#endif //#if defined WLAN_FEATURE_P2P_INTERNAL
2075
2076/* ---------------------------------------------------------------------------
2077 \fn sme_SetMaxTxPower
2078 \brief Used to set the Maximum Transmit Power dynamically. Note: this
2079 setting will not persist over reboots
2080 \param hHal
2081 \param pBssid BSSID to set the power cap for
2082 \param pBssid pSelfMacAddress self MAC Address
2083 \param pBssid power to set in dB
2084 \- return eHalStatus
2085 -------------------------------------------------------------------------*/
2086eHalStatus sme_SetMaxTxPower(tHalHandle hHal, tSirMacAddr pBssid,
2087 tSirMacAddr pSelfMacAddress, v_S7_t dB);
2088
2089#ifdef WLAN_SOFTAP_FEATURE
2090/* ---------------------------------------------------------------------------
2091
2092 \fn sme_HideSSID
2093
2094 \brief Enable/Disables hidden SSID dynamically. Note: this setting will
2095 not persist over reboots.
2096
2097 \param hHal
2098 \param sessionId
2099 \param ssidHidden 0 - Broadcast SSID, 1 - Disable broadcast SSID
2100 \- return eHalStatus
2101
2102 -------------------------------------------------------------------------------*/
2103eHalStatus sme_HideSSID(tHalHandle hHal, v_U8_t sessionId, v_U8_t ssidHidden);
2104#endif
2105
2106/* ---------------------------------------------------------------------------
2107
2108 \fn sme_SetTmLevel
2109 \brief Set Thermal Mitigation Level to RIVA
2110 \param hHal - The handle returned by macOpen.
2111 \param newTMLevel - new Thermal Mitigation Level
2112 \param tmMode - Thermal Mitigation handle mode, default 0
2113 \return eHalStatus
2114 ---------------------------------------------------------------------------*/
2115eHalStatus sme_SetTmLevel(tHalHandle hHal, v_U16_t newTMLevel, v_U16_t tmMode);
2116
2117/*---------------------------------------------------------------------------
2118
2119 \brief sme_featureCapsExchange() - SME interface to exchange capabilities between
2120 Host and FW.
2121
2122 \param hHal - HAL handle for device
2123
2124 \return NONE
2125
2126---------------------------------------------------------------------------*/
2127void sme_featureCapsExchange(tHalHandle hHal);
2128
Jeff Johnsond13512a2012-07-17 11:42:19 -07002129/*---------------------------------------------------------------------------
2130
2131 \brief sme_GetDefaultCountryCodeFrmNv() - SME interface to get the default
2132 country code
2133 Host and FW.
2134
2135 \param hHal - HAL handle for device
2136 \param pCountry - pointer to country code
2137
2138 \return Sucess or failure
2139
2140 ---------------------------------------------------------------------------*/
2141eHalStatus sme_GetDefaultCountryCodeFrmNv(tHalHandle hHal, tANI_U8 *pCountry);
2142
2143/*---------------------------------------------------------------------------
2144
2145 \brief sme_GetCurrentCountryCode() - SME interface to get the current operating
2146 country code.
2147
2148 \param hHal - HAL handle for device
2149 \param pCountry - pointer to country code
2150
2151 \return Success or failure
2152
2153 ---------------------------------------------------------------------------*/
2154eHalStatus sme_GetCurrentCountryCode(tHalHandle hHal, tANI_U8 *pCountry);
2155
Madan Mohan Koyyalamudi8cb53982012-09-28 14:34:47 -07002156/* ---------------------------------------------------------------------------
2157 \fn sme_transportDebug
2158 \brief Dynamically monitoring Transport channels
2159 Private IOCTL will querry transport channel status if driver loaded
2160 \param displaySnapshot Dispaly transport cahnnel snapshot option
2161 \param toggleStallDetect Enable stall detect feature
2162 This feature will take effect to data performance
2163 Not integrate till fully verification
2164 \- return NONE
2165 -------------------------------------------------------------------------*/
2166void sme_transportDebug
2167(
2168 v_BOOL_t displaySnapshot,
2169 v_BOOL_t toggleStallDetect
2170);
Jeff Johnson295189b2012-06-20 16:38:30 -07002171#endif //#if !defined( __SME_API_H )