Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/phydm_antdect.h
1307 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13* The full GNU General Public License is included in this distribution in the14* file called LICENSE.15*16* Contact Information:17* wlanfae <[email protected]>18* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,19* Hsinchu 300, Taiwan.20*21* Larry Finger <[email protected]>22*23*****************************************************************************/2425#ifndef __PHYDMANTDECT_H__26#define __PHYDMANTDECT_H__2728#define ANTDECT_VERSION "2.1"2930#if (defined(CONFIG_ANT_DETECTION))31/* @#if( DM_ODM_SUPPORT_TYPE & (ODM_WIN |ODM_CE)) */32/* @ANT Test */33#define ANTTESTALL 0x00 /*@ant A or B will be Testing*/34#define ANTTESTA 0x01 /*@ant A will be Testing*/35#define ANTTESTB 0x02 /*@ant B will be testing*/3637#define MAX_ANTENNA_DETECTION_CNT 103839struct _ANT_DETECTED_INFO {40boolean is_ant_detected;41u32 db_for_ant_a;42u32 db_for_ant_b;43u32 db_for_ant_o;44};4546enum dm_swas {47antenna_a = 1,48antenna_b = 2,49antenna_max = 3,50};5152/* @1 [1. Single Tone method] =================================================== */5354void odm_single_dual_antenna_default_setting(55void *dm_void);5657boolean58odm_single_dual_antenna_detection(59void *dm_void,60u8 mode);6162/* @1 [2. Scan AP RSSI method] ================================================== */6364#define sw_ant_div_check_before_link odm_sw_ant_div_check_before_link6566boolean67odm_sw_ant_div_check_before_link(68void *dm_void);6970/* @1 [3. PSD method] ========================================================== */7172void odm_single_dual_antenna_detection_psd(73void *dm_void);7475void odm_sw_ant_detect_init(void *dm_void);76#endif77#endif787980