Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2014 Qualcomm Atheros, Inc. |
| 3 | * All Rights Reserved. |
| 4 | * Qualcomm Atheros Confidential and Proprietary. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 5 | * */ |
| 6 | #if !defined( __SMERRMINTERNAL_H ) |
| 7 | #define __SMERRMINTERNAL_H |
| 8 | |
| 9 | |
| 10 | /**========================================================================= |
| 11 | |
| 12 | \file smeRrmInternal.h |
| 13 | |
| 14 | \brief prototype for SME RRM APIs |
| 15 | |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 16 | Copyright 2008 (c) Qualcomm, Incorporated. All Rights Reserved. |
| 17 | |
| 18 | Qualcomm Confidential and Proprietary. |
| 19 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 20 | ========================================================================*/ |
| 21 | |
| 22 | /* $Header$ */ |
| 23 | |
| 24 | /*-------------------------------------------------------------------------- |
| 25 | Include Files |
| 26 | ------------------------------------------------------------------------*/ |
| 27 | #include "vos_lock.h" |
| 28 | #include "vos_trace.h" |
| 29 | #include "vos_memory.h" |
| 30 | #include "vos_types.h" |
| 31 | #include "palTimer.h" |
| 32 | #include "rrmGlobal.h" |
| 33 | |
| 34 | /*-------------------------------------------------------------------------- |
| 35 | Type declarations |
| 36 | ------------------------------------------------------------------------*/ |
| 37 | typedef struct sRrmConfigParam |
| 38 | { |
| 39 | tANI_U8 rrmEnabled; |
| 40 | tANI_U8 maxRandnInterval; |
| 41 | }tRrmConfigParam, *tpRrmConfigParam; |
| 42 | |
| 43 | typedef struct sRrmNeighborReportDesc |
| 44 | { |
| 45 | tListElem List; |
| 46 | tSirNeighborBssDescription *pNeighborBssDescription; |
| 47 | tANI_U32 roamScore; |
| 48 | } tRrmNeighborReportDesc, *tpRrmNeighborReportDesc; |
| 49 | |
| 50 | |
| 51 | typedef void (*NeighborReportRspCallback) (void *context, VOS_STATUS vosStatus); |
| 52 | |
| 53 | typedef struct sRrmNeighborRspCallbackInfo |
| 54 | { |
| 55 | tANI_U32 timeout; //in ms.. min value is 10 (10ms) |
| 56 | NeighborReportRspCallback neighborRspCallback; |
| 57 | void *neighborRspCallbackContext; |
| 58 | } tRrmNeighborRspCallbackInfo, *tpRrmNeighborRspCallbackInfo; |
| 59 | |
| 60 | typedef struct sRrmNeighborRequestControlInfo |
| 61 | { |
| 62 | tANI_BOOLEAN isNeighborRspPending; //To check whether a neighbor req is already sent and response pending |
| 63 | vos_timer_t neighborRspWaitTimer; |
| 64 | tRrmNeighborRspCallbackInfo neighborRspCallbackInfo; |
| 65 | } tRrmNeighborRequestControlInfo, *tpRrmNeighborRequestControlInfo; |
| 66 | |
| 67 | typedef struct sRrmSMEContext |
| 68 | { |
| 69 | tANI_U16 token; |
| 70 | tCsrBssid sessionBssId; |
| 71 | tANI_U8 regClass; |
| 72 | tCsrChannelInfo channelList; //list of all channels to be measured. |
| 73 | tANI_U8 currentIndex; |
| 74 | tAniSSID ssId; //SSID used in the measuring beacon report. |
| 75 | tSirMacAddr bssId; //bssid used for beacon report measurement. |
| 76 | tANI_U16 randnIntvl; //Randomization interval to be used in subsequent measurements. |
Srinivas Girigowda | 91ccbe8 | 2013-11-10 16:37:38 -0800 | [diff] [blame] | 77 | tANI_U16 duration[SIR_CCX_MAX_MEAS_IE_REQS]; |
| 78 | tANI_U8 measMode[SIR_CCX_MAX_MEAS_IE_REQS]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 79 | tRrmConfigParam rrmConfig; |
| 80 | vos_timer_t IterMeasTimer; |
| 81 | tDblLinkList neighborReportCache; |
| 82 | tRrmNeighborRequestControlInfo neighborReqControlInfo; |
Srinivas Girigowda | 91ccbe8 | 2013-11-10 16:37:38 -0800 | [diff] [blame] | 83 | |
| 84 | #if defined(FEATURE_WLAN_CCX) && defined(FEATURE_WLAN_CCX_UPLOAD) |
| 85 | tCsrCcxBeaconReq ccxBcnReqInfo; |
| 86 | #endif /* FEATURE_WLAN_CCX && FEATURE_WLAN_CCX_UPLOAD */ |
Srinivas Girigowda | 6d1f906 | 2014-02-03 18:15:54 -0800 | [diff] [blame] | 87 | tRrmMsgReqSource msgSource; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 88 | }tRrmSMEContext, *tpRrmSMEContext; |
| 89 | |
| 90 | typedef struct sRrmNeighborReq |
| 91 | { |
| 92 | tANI_U8 no_ssid; |
| 93 | tSirMacSSid ssid; |
| 94 | }tRrmNeighborReq, *tpRrmNeighborReq; |
| 95 | |
| 96 | #endif //#if !defined( __SMERRMINTERNAL_H ) |