1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
6 * Modifications for inclusion into the Linux staging tree are
7 * Copyright(c) 2010 Larry Finger. All rights reserved.
13 ******************************************************************************/
14 #ifndef __RTL871X_RF_H_
15 #define __RTL871X_RF_H_
17 #include "rtl871x_cmd.h"
18 #include "rtl871x_mp_phy_regdef.h"
24 #define RTL8711_RF_MAX_SENS 6
25 #define RTL8711_RF_DEF_SENS 4
26 #define NUM_CHANNELS 15
28 struct regulatory_class {
29 u32 starting_freq; /*MHz, */
30 u8 channel_set[NUM_CHANNELS];
31 u8 channel_cck_power[NUM_CHANNELS]; /*dbm*/
32 u8 channel_ofdm_power[NUM_CHANNELS];/*dbm*/
33 u8 txpower_limit; /*dbm*/
34 u8 channel_spacing; /*MHz*/
38 enum _REG_PREAMBLE_MODE {
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
55 #endif /*__RTL871X_RF_H_*/