blob: 0b75ee8aedab6772b5d281635787d41632d4db29 [file] [log] [blame]
/*
* Copyright (c) 2012-2014 Qualcomm Atheros, Inc.
* All Rights Reserved.
* Qualcomm Atheros Confidential and Proprietary.
*/
/*
* */
/**=========================================================================
\file rrmApi.h
\brief RRM APIs
========================================================================*/
/* $Header$ */
#ifndef __RRM_API_H__
#define __RRM_API_H__
#define RRM_MIN_TX_PWR_CAP 13
#define RRM_MAX_TX_PWR_CAP 19
#define RRM_BCN_RPT_NO_BSS_INFO 0
#define RRM_BCN_RPT_MIN_RPT 1
tANI_U8 rrmGetMinOfMaxTxPower(tpAniSirGlobal pMac, tPowerdBm regMax, tPowerdBm apTxPower);
extern tSirRetStatus rrmInitialize(tpAniSirGlobal pMac);
extern tSirRetStatus rrmCleanup(tpAniSirGlobal pMac);
extern tSirRetStatus rrmProcessLinkMeasurementRequest( tpAniSirGlobal pMac,
tANI_U8 *pRxPacketInfo,
tDot11fLinkMeasurementRequest *pLinkReq,
tpPESession pSessionEntry );
extern tSirRetStatus rrmProcessRadioMeasurementRequest( tpAniSirGlobal pMac,
tSirMacAddr peer,
tDot11fRadioMeasurementRequest *pRRMReq,
tpPESession pSessionEntry );
extern tSirRetStatus rrmProcessNeighborReportResponse( tpAniSirGlobal pMac,
tDot11fNeighborReportResponse *pNeighborRep,
tpPESession pSessionEntry );
extern void rrmProcessMessage(tpAniSirGlobal pMac,
tpSirMsgQ pMsg);
extern tSirRetStatus rrmSendSetMaxTxPowerReq ( tpAniSirGlobal pMac,
tPowerdBm txPower,
tpPESession pSessionEntry );
extern tPowerdBm rrmGetMgmtTxPower ( tpAniSirGlobal pMac,
tpPESession pSessionEntry );
extern void rrmCacheMgmtTxPower ( tpAniSirGlobal pMac,
tPowerdBm txPower,
tpPESession pSessionEntry );
extern tpRRMCaps rrmGetCapabilities ( tpAniSirGlobal pMac,
tpPESession pSessionEntry );
extern void rrmUpdateConfig ( tpAniSirGlobal pMac,
tpPESession pSessionEntry );
extern void rrmGetStartTSF ( tpAniSirGlobal pMac,
tANI_U32 *pStartTSF );
extern void rrmUpdateStartTSF ( tpAniSirGlobal pMac,
tANI_U32 startTSF[2] );
extern tSirRetStatus rrmSetMaxTxPowerRsp ( tpAniSirGlobal pMac,
tpSirMsgQ limMsgQ );
extern tSirRetStatus
rrmProcessNeighborReportReq( tpAniSirGlobal pMac,
tpSirNeighborReportReqInd pNeighborReq );
extern tSirRetStatus
rrmProcessBeaconReportXmit( tpAniSirGlobal pMac,
tpSirBeaconReportXmitInd pBcnReport);
#endif