/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * ******************************************************************************/ #ifndef __RTW_RF_H_ #define __RTW_RF_H_ #define OFDM_PHY … #define MIXED_PHY … #define CCK_PHY … #define NumRates … /* slot time for 11g */ #define SHORT_SLOT_TIME … #define NON_SHORT_SLOT_TIME … #define RTL8711_RF_MAX_SENS … #define RTL8711_RF_DEF_SENS … /* * We now define the following channels as the max channels in each channel plan. * 2G, total 14 chnls * {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14} */ #define MAX_CHANNEL_NUM_2G … #define MAX_CHANNEL_NUM … #define NUM_REGULATORYS … /* Country codes */ #define USA … #define EUROPE … #define JAPAN … struct regulatory_class { … }; enum { … }; enum { … }; /* Bandwidth Offset */ #define HAL_PRIME_CHNL_OFFSET_DONT_CARE … #define HAL_PRIME_CHNL_OFFSET_LOWER … #define HAL_PRIME_CHNL_OFFSET_UPPER … /* Represent Channel Width in HT Capabilities */ enum channel_width { … }; /* Represent Extension Channel Offset in HT Capabilities */ /* This is available only in 40Mhz mode. */ enum extchnl_offset { … }; enum { … }; u32 rtw_ch2freq(u32 ch); #endif /* _RTL8711_RF_H_ */