1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
\r
5 * This program is free software; you can redistribute it and/or modify it
\r
6 * under the terms of version 2 of the GNU General Public License as
\r
7 * published by the Free Software Foundation.
\r
9 * This program is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
14 * You should have received a copy of the GNU General Public License along with
\r
15 * this program; if not, write to the Free Software Foundation, Inc.,
\r
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
\r
19 ******************************************************************************/
\r
21 #ifndef __PHYDMANTDECT_H__
\r
22 #define __PHYDMANTDECT_H__
\r
24 #define ANTDECT_VERSION "2.0" //2014.11.04
\r
26 #if(defined(CONFIG_ANT_DETECTION))
\r
27 //#if( DM_ODM_SUPPORT_TYPE & (ODM_WIN |ODM_CE))
\r
29 #define ANTTESTALL 0x00 /*Ant A or B will be Testing*/
\r
30 #define ANTTESTA 0x01 /*Ant A will be Testing*/
\r
31 #define ANTTESTB 0x02 /*Ant B will be testing*/
\r
33 #define MAX_ANTENNA_DETECTION_CNT 10
\r
36 typedef struct _ANT_DETECTED_INFO{
\r
37 BOOLEAN bAntDetected;
\r
41 }ANT_DETECTED_INFO, *PANT_DETECTED_INFO;
\r
44 typedef enum tag_SW_Antenna_Switch_Definition
\r
53 //1 [1. Single Tone Method] ===================================================
\r
58 ODM_SingleDualAntennaDefaultSetting(
\r
63 ODM_SingleDualAntennaDetection(
\r
68 //1 [2. Scan AP RSSI Method] ==================================================
\r
70 #define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink
\r
73 ODM_SwAntDivCheckBeforeLink(
\r
80 //1 [3. PSD Method] ==========================================================
\r
84 ODM_SingleDualAntennaDetection_PSD(
\r
91 odm_SwAntDetectInit(
\r