Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/phydm_antdect.h
1307 views
1
/******************************************************************************
2
*
3
* Copyright(c) 2007 - 2017 Realtek Corporation.
4
*
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.
8
*
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
12
* more details.
13
*
14
* The full GNU General Public License is included in this distribution in the
15
* file called LICENSE.
16
*
17
* Contact Information:
18
* wlanfae <[email protected]>
19
* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20
* Hsinchu 300, Taiwan.
21
*
22
* Larry Finger <[email protected]>
23
*
24
*****************************************************************************/
25
26
#ifndef __PHYDMANTDECT_H__
27
#define __PHYDMANTDECT_H__
28
29
#define ANTDECT_VERSION "2.1"
30
31
#if (defined(CONFIG_ANT_DETECTION))
32
/* @#if( DM_ODM_SUPPORT_TYPE & (ODM_WIN |ODM_CE)) */
33
/* @ANT Test */
34
#define ANTTESTALL 0x00 /*@ant A or B will be Testing*/
35
#define ANTTESTA 0x01 /*@ant A will be Testing*/
36
#define ANTTESTB 0x02 /*@ant B will be testing*/
37
38
#define MAX_ANTENNA_DETECTION_CNT 10
39
40
struct _ANT_DETECTED_INFO {
41
boolean is_ant_detected;
42
u32 db_for_ant_a;
43
u32 db_for_ant_b;
44
u32 db_for_ant_o;
45
};
46
47
enum dm_swas {
48
antenna_a = 1,
49
antenna_b = 2,
50
antenna_max = 3,
51
};
52
53
/* @1 [1. Single Tone method] =================================================== */
54
55
void odm_single_dual_antenna_default_setting(
56
void *dm_void);
57
58
boolean
59
odm_single_dual_antenna_detection(
60
void *dm_void,
61
u8 mode);
62
63
/* @1 [2. Scan AP RSSI method] ================================================== */
64
65
#define sw_ant_div_check_before_link odm_sw_ant_div_check_before_link
66
67
boolean
68
odm_sw_ant_div_check_before_link(
69
void *dm_void);
70
71
/* @1 [3. PSD method] ========================================================== */
72
73
void odm_single_dual_antenna_detection_psd(
74
void *dm_void);
75
76
void odm_sw_ant_detect_init(void *dm_void);
77
#endif
78
#endif
79
80