1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef __RTL871X_RF_H_
15 #define __RTL871X_RF_H_
16
17 #include "rtl871x_cmd.h"
18 #include "rtl871x_mp_phy_regdef.h"
19
20 #define OFDM_PHY 1
21 #define MIXED_PHY 2
22 #define CCK_PHY 3
23 #define NumRates (13)
24 #define RTL8711_RF_MAX_SENS 6
25 #define RTL8711_RF_DEF_SENS 4
26 #define NUM_CHANNELS 15
27
28 struct regulatory_class {
29 u32 starting_freq;
30 u8 channel_set[NUM_CHANNELS];
31 u8 channel_cck_power[NUM_CHANNELS];
32 u8 channel_ofdm_power[NUM_CHANNELS];
33 u8 txpower_limit;
34 u8 channel_spacing;
35 u8 modem;
36 };
37
38 enum _REG_PREAMBLE_MODE {
39 PREAMBLE_LONG = 1,
40 PREAMBLE_AUTO = 2,
41 PREAMBLE_SHORT = 3,
42 };
43
44 enum {
45 RTL8712_RFC_1T = 0x10,
46 RTL8712_RFC_2T = 0x20,
47 RTL8712_RFC_1R = 0x01,
48 RTL8712_RFC_2R = 0x02,
49 RTL8712_RFC_1T1R = 0x11,
50 RTL8712_RFC_1T2R = 0x12,
51 RTL8712_RFC_TURBO = 0x92,
52 RTL8712_RFC_2T2R = 0x22
53 };
54
55 #endif