1 #ifndef __RTL871X_RF_H_
2 #define __RTL871X_RF_H_
4 #include "rtl871x_cmd.h"
5 #include "rtl871x_mp_phy_regdef.h"
11 #define RTL8711_RF_MAX_SENS 6
12 #define RTL8711_RF_DEF_SENS 4
13 #define NUM_CHANNELS 15
15 struct regulatory_class
{
16 u32 starting_freq
; /*MHz, */
17 u8 channel_set
[NUM_CHANNELS
];
18 u8 channel_cck_power
[NUM_CHANNELS
]; /*dbm*/
19 u8 channel_ofdm_power
[NUM_CHANNELS
];/*dbm*/
20 u8 txpower_limit
; /*dbm*/
21 u8 channel_spacing
; /*MHz*/
25 enum _REG_PREAMBLE_MODE
{
32 RTL8712_RFC_1T
= 0x10,
33 RTL8712_RFC_2T
= 0x20,
34 RTL8712_RFC_1R
= 0x01,
35 RTL8712_RFC_2R
= 0x02,
36 RTL8712_RFC_1T1R
= 0x11,
37 RTL8712_RFC_1T2R
= 0x12,
38 RTL8712_RFC_TURBO
= 0x92,
39 RTL8712_RFC_2T2R
= 0x22
42 #endif /*_RTL8711_RF_H_*/