1/** \file spectrumMngmntMgr.h
2 *  \brief dot11h spectrum Management Meneger module interface header file
3 *
4 *  \see spectrumMngmntMgr.c
5 */
6/****************************************************************************
7**+-----------------------------------------------------------------------+**
8**|                                                                       |**
9**| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved.      |**
10**| All rights reserved.                                                  |**
11**|                                                                       |**
12**| Redistribution and use in source and binary forms, with or without    |**
13**| modification, are permitted provided that the following conditions    |**
14**| are met:                                                              |**
15**|                                                                       |**
16**|  * Redistributions of source code must retain the above copyright     |**
17**|    notice, this list of conditions and the following disclaimer.      |**
18**|  * Redistributions in binary form must reproduce the above copyright  |**
19**|    notice, this list of conditions and the following disclaimer in    |**
20**|    the documentation and/or other materials provided with the         |**
21**|    distribution.                                                      |**
22**|  * Neither the name Texas Instruments nor the names of its            |**
23**|    contributors may be used to endorse or promote products derived    |**
24**|    from this software without specific prior written permission.      |**
25**|                                                                       |**
26**| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   |**
27**| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     |**
28**| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
29**| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  |**
30**| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
31**| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      |**
32**| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
33**| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
34**| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   |**
35**| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
36**| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  |**
37**|                                                                       |**
38**+-----------------------------------------------------------------------+**
39****************************************************************************/
40
41/***************************************************************************/
42/*																			*/
43/*	  MODULE:	spectrumMngmntMgr.h											*/
44/*    PURPOSE:	dot11h spectrum Management Meneger module interface         */
45/*              header file                                        			*/
46/*																			*/
47/***************************************************************************/
48#ifndef __SPECTRUMMNGMNTMGR_H__
49#define __SPECTRUMMNGMNTMGR_H__
50
51#include "paramOut.h"
52#include "measurementMgr.h"
53#include "requestHandler.h"
54
55
56
57TI_STATUS measurementMgr_receiveQuietIE(TI_HANDLE hMeasurementMgr,
58								  UINT8		quietCount,
59								  UINT8		quietPeriod,
60								  UINT16	quietDuration,
61								  UINT16	quietOffset);
62
63
64TI_STATUS measurementMgr_receiveTPCRequest(TI_HANDLE hMeasurementMgr,
65										UINT8		dataLen,
66										UINT8		*pData);
67
68TI_STATUS measurementMgr_dot11hParseFrameReq(TI_HANDLE hMeasurementMgr,
69                                           UINT8 *pData, INT32 dataLen,
70                                           measurement_frameRequest_t *frameReq);
71
72TI_STATUS measurementMgr_dot11hParseRequestIEHdr(UINT8 *pData, UINT16 *reqestHdrLen,
73                                               UINT16 *measurementToken);
74
75BOOL      measurementMgr_dot11hIsTypeValid(TI_HANDLE hMeasurementMgr,
76                                         measurement_type_e type,
77                                         measurement_scanMode_e scanMode);
78
79TI_STATUS measurementMgr_dot11hBuildReport(TI_HANDLE hMeasurementMgr, MeasurementRequest_t request, measurement_typeReply_t * reply);
80
81TI_STATUS measurementMgr_dot11hSendReportAndCleanObject(TI_HANDLE hMeasurementMgr);
82
83TI_STATUS measurementMgr_dot11hBuildRejectReport(TI_HANDLE hMeasurementMgr,
84											 MeasurementRequest_t *pRequestArr[],
85											 UINT8		numOfRequestsInParallel,
86											 measurement_rejectReason_e	rejectReason);
87
88
89/* The following function uses features from the old Measurement module. */
90/* It will have to be adapted to using the new Measurement Manager. */
91#if 0
92
93TI_STATUS measurementMgr_getBasicMeasurementParam(TI_HANDLE hMeasurementMgr,
94										  acxStatisitcs_t*	pAcxStatisitics,
95										  mediumOccupancy_t* pMediumOccupancy);
96#endif /* 0 */
97
98
99
100#endif /* __SPECTRUMMNGMNTMGR_H__ */
101