1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 ******************************************************************************/
17 /* slot time for 11g */
18 #define SHORT_SLOT_TIME 9
19 #define NON_SHORT_SLOT_TIME 20
21 #define RTL8711_RF_MAX_SENS 6
22 #define RTL8711_RF_DEF_SENS 4
25 * We now define the following channels as the max channels in each channel plan.
27 * {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
29 #define MAX_CHANNEL_NUM_2G 14
30 #define MAX_CHANNEL_NUM 14
32 #define NUM_REGULATORYS 1
36 #define EUROPE 0x1 /* temp, should be provided later */
37 #define JAPAN 0x2 /* temp, should be provided later */
39 struct regulatory_class {
40 u32 starting_freq; /* MHz, */
41 u8 channel_set[MAX_CHANNEL_NUM];
42 u8 channel_cck_power[MAX_CHANNEL_NUM];/* dbm */
43 u8 channel_ofdm_power[MAX_CHANNEL_NUM];/* dbm */
44 u8 txpower_limit; /* dbm */
45 u8 channel_spacing; /* MHz */
55 cShortPreamble = 0x0020,
57 cChannelAgility = 0x0080,
58 cSpectrumMgnt = 0x0100,
59 cQos = 0x0200, /* For HCCA, use with CF-Pollable and CF-PollReq */
60 cShortSlotTime = 0x0400,
62 cRM = 0x1000, /* RRM (Radio Request Measurement) */
65 cImmediateBA = 0x8000,
74 /* Bandwidth Offset */
75 #define HAL_PRIME_CHNL_OFFSET_DONT_CARE 0
76 #define HAL_PRIME_CHNL_OFFSET_LOWER 1
77 #define HAL_PRIME_CHNL_OFFSET_UPPER 2
79 /* Represent Channel Width in HT Capabilities */
85 /* Represent Extension Channel Offset in HT Capabilities */
86 /* This is available only in 40Mhz mode. */
88 EXTCHNL_OFFSET_NO_EXT = 0,
89 EXTCHNL_OFFSET_UPPER = 1,
90 EXTCHNL_OFFSET_NO_DEF = 2,
91 EXTCHNL_OFFSET_LOWER = 3,
95 HT_DATA_SC_DONOT_CARE = 0,
96 HT_DATA_SC_20_UPPER_OF_40MHZ = 1,
97 HT_DATA_SC_20_LOWER_OF_40MHZ = 2,
100 u32 rtw_ch2freq(u32 ch);
102 #endif /* _RTL8711_RF_H_ */