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