1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 ******************************************************************************/
10 /* Antenna detection method, i.e., using single tone detection or RSSI reported from each antenna detected. */
11 /* Added by Roger, 2013.05.22. */
13 #define ANT_DETECT_BY_SINGLE_TONE BIT0
14 #define ANT_DETECT_BY_RSSI BIT1
15 #define IS_ANT_DETECT_SUPPORT_SINGLE_TONE(__Adapter) ((GET_HAL_DATA(__Adapter)->AntDetection) & ANT_DETECT_BY_SINGLE_TONE)
16 #define IS_ANT_DETECT_SUPPORT_RSSI(__Adapter) ((GET_HAL_DATA(__Adapter)->AntDetection) & ANT_DETECT_BY_RSSI)
19 /*--------------------------Define Parameters-------------------------------*/
21 RF_TYPE_MIN = 0, /* 0 */
22 RF_8225 = 1, /* 1 11b/g RF for verification only */
23 RF_8256 = 2, /* 2 11b/g/n */
24 RF_8258 = 3, /* 3 11a/b/g/n RF */
25 RF_6052 = 4, /* 4 11b/g/n RF */
26 RF_PSEUDO_11N = 5, /* 5, It is a temporality RF. */
41 #define RF_PATH_MAX_92C_88E 2
42 #define RF_PATH_MAX_90_8812 4 /* Max RF number 90 support */
45 WIRELESS_MODE_UNKNOWN = 0x00,
46 WIRELESS_MODE_B = 0x02,
47 WIRELESS_MODE_G = 0x04,
48 WIRELESS_MODE_AUTO = 0x08,
49 WIRELESS_MODE_N_24G = 0x10,
50 WIRELESS_MODE_AC_24G = 0x80,
51 WIRELESS_MODE_AC_ONLY = 0x100,
56 CmdID_SetTxPowerLevel,
59 CmdID_WritePortUshort,
65 enum SwChnlCmdID CmdID;
71 /*--------------------------Exported Function prototype---------------------*/
73 #endif /* __HAL_COMMON_H__ */