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 struct _ANT_DETECTED_INFO {
37 boolean is_ant_detected;
52 /* 1 [1. Single Tone method] =================================================== */
57 odm_single_dual_antenna_default_setting(
62 odm_single_dual_antenna_detection(
67 /* 1 [2. Scan AP RSSI method] ================================================== */
69 #define sw_ant_div_check_before_link odm_sw_ant_div_check_before_link
72 odm_sw_ant_div_check_before_link(
79 /* 1 [3. PSD method] ========================================================== */
83 odm_single_dual_antenna_detection_psd(
90 odm_sw_ant_detect_init(