Home | History | Annotate | Download | only in inc
      1 /** \file smeMgr.h
      2  *  \brief SME interface
      3  *
      4  *
      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:		smeApi.h												*/
     44 /*		PURPOSE:	SME interface to Other core modules						*/
     45 /*																			*/
     46 /****************************************************************************/
     47 #ifndef __SME_API_H__
     48 #define __SME_API_H__
     49 
     50 #include "osTIType.h"
     51 #include "paramOut.h"
     52 #include "paramIn.h"
     53 #include "mlmeApi.h"
     54 
     55 /* Typedefs */
     56 typedef enum
     57 {
     58 	NO_MATCH = 0,
     59 	MATCH =		1,
     60 } match_e;
     61 
     62 
     63 /* Prototypes */
     64 
     65 TI_STATUS conn_reportMlmeStatus(TI_HANDLE			hConn,
     66 							mgmtStatus_e			status,
     67 							UINT16					uStatusCode);
     68 
     69 TI_STATUS conn_reportRsnStatus(TI_HANDLE			hConn,
     70 							mgmtStatus_e		status);
     71 
     72 TI_STATUS siteMgr_updateSite(TI_HANDLE			hSiteMgr,
     73 						  macAddress_t		*bssid,
     74 						  mlmeFrameInfo_t	*pFrameInfo,
     75 						  UINT8				rxChannel,
     76                           radioBand_e       band,
     77 						  BOOL				measuring);
     78 
     79 TI_STATUS siteMgr_CheckRxSignalValidity(TI_HANDLE  hSiteMgr,
     80                          INT8              	rxLevel,
     81 						 UINT8				channel,
     82                          macAddress_t       *bssid);
     83 
     84 TI_STATUS siteMgr_updateRxSignal(TI_HANDLE		hSiteMgr,
     85 						 UINT8				snr,
     86 						 INT8				rxLevel,
     87                          rate_e             rate,
     88 						 macAddress_t		*bssid,
     89  						 BOOL				dataMsdu);
     90 
     91 TI_STATUS siteMgr_saveProbeRespBuffer(TI_HANDLE hSiteMgr, macAddress_t	*bssid, UINT8 *pProbeRespBuffer, UINT32 length);
     92 
     93 TI_STATUS siteMgr_saveBeaconBuffer(TI_HANDLE hSiteMgr, macAddress_t *bssid, UINT8 *pBeaconBuffer, UINT32 length);
     94 
     95 
     96 #endif /* __SME_API_H__ */
     97