1 /****************************************************************************** 2 * 3 * Copyright(c) 2015 - 2016 Realtek Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * You should have received a copy of the GNU General Public License along with 15 * this program; if not, write to the Free Software Foundation, Inc., 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 * 18 * 19 ******************************************************************************/ 20 /***** temporarily flag *******/ 21 #define CONFIG_SINGLE_IMG 22 /* #define CONFIG_DISABLE_ODM */ 23 24 /***** temporarily flag *******/ 25 /* 26 * Public General Config 27 */ 28 #define AUTOCONF_INCLUDED 29 #define DRV_NAME "rtl8822be" 30 31 #define CONFIG_PCI_HCI 32 #define CONFIG_PCIE_HCI 33 #define PLATFORM_LINUX 34 35 /* 36 * Wi-Fi Functions Config 37 */ 38 #define CONFIG_80211N_HT 39 #define CONFIG_RECV_REORDERING_CTRL 40 #define CONFIG_80211AC_VHT 41 #define CONFIG_IEEE80211_BAND_5GHZ 42 43 /*#define CONFIG_IOCTL_CFG80211*/ 44 #ifdef CONFIG_IOCTL_CFG80211 45 /*#define RTW_USE_CFG80211_STA_EVENT*/ /* Indecate new sta asoc through cfg80211_new_sta */ 46 #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER 47 /*#define CONFIG_DEBUG_CFG80211*/ 48 /*#define CONFIG_DRV_ISSUE_PROV_REQ*/ /* IOT FOR S2 */ 49 #define CONFIG_SET_SCAN_DENY_TIMER 50 #endif 51 52 #define TX_AMSDU 53 54 /* 55 * Internal General Config 56 */ 57 /*#define CONFIG_PWRCTRL*/ 58 /*#define CONFIG_H2CLBK*/ 59 #define CONFIG_TRX_BD_ARCH /* PCI only */ 60 #define USING_RX_TAG 61 /*#define CONFIG_NAPI*/ 62 /*#define CONFIG_GRO*/ 63 #define CONFIG_C2H_PACKET_EN /* necessary for 8822B */ 64 #define CONFIG_EMBEDDED_FWIMG 65 /*#define CONFIG_FILE_FWIMG*/ 66 67 /*#define CONFIG_XMIT_ACK*/ 68 #ifdef CONFIG_XMIT_ACK 69 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK 70 #endif 71 72 /*#define CONFIG_TCP_CSUM_OFFLOAD_RX*/ 73 74 /*#define CONFIG_DRVEXT_MODULE*/ 75 76 77 /*#define CONFIG_DISABLE_MCS13TO15 1*/ /* Disable MSC13-15 rates for more stable TX throughput with some 5G APs */ 78 79 #define BUF_DESC_ARCH /* if defined, hardware follows Rx buffer descriptor architecture */ 80 81 #define CONFIG_DFS 1 82 83 /*#define CONFIG_IPS*/ 84 #ifdef CONFIG_IPS 85 /*#define CONFIG_IPS_LEVEL_2*/ /* enable this to set default IPS mode to IPS_LEVEL_2 */ 86 #endif 87 /*#define SUPPORT_HW_RFOFF_DETECTED*/ 88 89 #define CONFIG_HIGH_CHAN_SUPER_CALIBRATION 90 #define CONFIG_LPS 91 92 #if defined(CONFIG_LPS) 93 /*#define CONFIG_LPS_LCLK*/ /* 32K */ 94 #endif 95 96 97 #ifdef CONFIG_LPS_LCLK 98 #define CONFIG_XMIT_THREAD_MODE 99 #endif 100 101 /*#define CONFIG_ANTENNA_DIVERSITY*/ 102 103 /*#define CONFIG_CONCURRENT_MODE*/ 104 #ifdef CONFIG_CONCURRENT_MODE 105 /*#define CONFIG_HWPORT_SWAP*/ /* Port0->Sec, Port1->Pri */ 106 #define CONFIG_RUNTIME_PORT_SWITCH 107 /*#define DBG_RUNTIME_PORT_SWITCH*/ 108 #define CONFIG_SCAN_BACKOP 109 /*#define CONFIG_ATMEL_RC_PATCH*/ 110 /*#define CONFIG_TSF_RESET_OFFLOAD*/ /* For 2 PORT TSF SYNC. */ 111 #else /* NAPI doesn't support CONCURRENT mode currently*/ 112 #define CONFIG_NAPI 113 #define CONFIG_GRO 114 #endif 115 116 #define CONFIG_AP_MODE 117 #ifdef CONFIG_AP_MODE 118 /*#define CONFIG_INTERRUPT_BASED_TXBCN*/ /* Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs */ 119 #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN) 120 #undef CONFIG_INTERRUPT_BASED_TXBCN 121 #endif 122 #ifdef CONFIG_INTERRUPT_BASED_TXBCN 123 /*#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT*/ 124 #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR 125 #endif 126 127 #define CONFIG_NATIVEAP_MLME 128 #ifndef CONFIG_NATIVEAP_MLME 129 #define CONFIG_HOSTAPD_MLME 130 #endif 131 #define CONFIG_FIND_BEST_CHANNEL 132 /*#define CONFIG_AUTO_AP_MODE*/ 133 #endif 134 135 #define CONFIG_P2P 136 #ifdef CONFIG_P2P 137 /* The CONFIG_WFD is for supporting the Wi-Fi display */ 138 #define CONFIG_WFD 139 140 #define CONFIG_P2P_REMOVE_GROUP_INFO 141 142 /*#define CONFIG_DBG_P2P*/ 143 144 #define CONFIG_P2P_PS 145 /*#define CONFIG_P2P_IPS*/ 146 #define CONFIG_P2P_OP_CHK_SOCIAL_CH 147 #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */ 148 #define CONFIG_P2P_INVITE_IOT 149 #endif 150 151 /* Added by Kurt 20110511 */ 152 #ifdef CONFIG_TDLS 153 #define CONFIG_TDLS_DRIVER_SETUP 154 #if 0 155 #ifndef CONFIG_WFD 156 #define CONFIG_WFD 157 #endif 158 #define CONFIG_TDLS_AUTOSETUP 159 #endif 160 #define CONFIG_TDLS_AUTOCHECKALIVE 161 #define CONFIG_TDLS_CH_SW /* Enable "CONFIG_TDLS_CH_SW" by default, however limit it to only work in wifi logo test mode but not in normal mode currently */ 162 #endif 163 164 #define CONFIG_SKB_COPY /* for amsdu */ 165 166 /*#define CONFIG_LED*/ 167 #ifdef CONFIG_LED 168 /*#define CONFIG_SW_LED*/ 169 #ifdef CONFIG_SW_LED 170 /*#define CONFIG_LED_HANDLED_BY_CMD_THREAD*/ 171 #endif 172 #endif /* CONFIG_LED */ 173 174 #define CONFIG_GLOBAL_UI_PID 175 176 #define CONFIG_LAYER2_ROAMING 177 #define CONFIG_LAYER2_ROAMING_RESUME 178 /*#define CONFIG_ADAPTOR_INFO_CACHING_FILE*/ /* now just applied on 8192cu only, should make it general...*/ 179 /*#define CONFIG_RESUME_IN_WORKQUEUE*/ 180 /*#define CONFIG_SET_SCAN_DENY_TIMER*/ 181 #define CONFIG_LONG_DELAY_ISSUE 182 #define CONFIG_NEW_SIGNAL_STAT_PROCESS 183 /*#define CONFIG_SIGNAL_DISPLAY_DBM*/ /* display RX signal with dbm */ 184 #ifdef CONFIG_SIGNAL_DISPLAY_DBM 185 /*#define CONFIG_BACKGROUND_NOISE_MONITOR*/ 186 #endif 187 188 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */ 189 190 #define CONFIG_TX_MCAST2UNI /* Support IP multicast->unicast*/ 191 /*#define CONFIG_CHECK_AC_LIFETIME 1*/ /* Check packet lifetime of 4 ACs. */ 192 193 /* 194 * Software feature Related Config 195 */ 196 #define RTW_HALMAC /* Use HALMAC architecture, necessary for 8822B */ 197 /* #define CONFIG_RF4CE_COEXIST */ /* ZigBee coexist support */ 198 199 /* 200 * Interface Related Config 201 */ 202 203 /* 204 * HAL Related Config 205 */ 206 207 #define RTL8192E_RX_PACKET_INCLUDE_CRC 0 208 #define CONFIG_RX_PACKET_APPEND_FCS 209 #define SUPPORTED_BLOCK_IO 210 #define RTL8188E_FW_DOWNLOAD_ENABLE 211 212 /*#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0*/ 213 214 #define CONFIG_OUT_EP_WIFI_MODE 0 215 216 #define ENABLE_USB_DROP_INCORRECT_OUT 217 218 219 #define DISABLE_BB_RF 0 220 221 #ifdef CONFIG_GPIO_WAKEUP 222 #ifndef WAKEUP_GPIO_IDX 223 #define WAKEUP_GPIO_IDX 14 224 #endif 225 #endif 226 227 /*#define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0*/ 228 229 #ifdef CONFIG_MP_INCLUDED 230 #define MP_DRIVER 1 231 #define CONFIG_MP_IWPRIV_SUPPORT 1 232 #else 233 #define MP_DRIVER 0 234 #endif 235 236 /* Use cmd frame to issue beacon. Use a fixed buffer for beacon. */ 237 #define CONFIG_BCN_ICF 238 239 /* 240 * Platform Related Config 241 */ 242 243 244 #ifdef CONFIG_BT_COEXIST 245 /* for ODM and outsrc BT-Coex */ 246 #ifndef CONFIG_LPS 247 #define CONFIG_LPS /* download reserved page to FW */ 248 #endif 249 #endif /* !CONFIG_BT_COEXIST */ 250 251 252 #ifdef CONFIG_USB_TX_AGGREGATION 253 /*#define CONFIG_TX_EARLY_MODE*/ 254 #endif 255 256 #ifdef CONFIG_TX_EARLY_MODE 257 #define RTL8192E_EARLY_MODE_PKT_NUM_10 0 258 #endif 259 260 /* Try to handle the Beacon error found in some types of TP-LINK APs */ 261 #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR 262 263 #define CONFIG_80211D 264 265 #define CONFIG_BEAMFORMING 266 #ifdef CONFIG_BEAMFORMING 267 #define BEAMFORMING_SUPPORT 0 /* Use driver self mechanism, not phydm */ 268 #define RTW_BEAMFORMING_VERSION_2 269 #endif /* CONFIG_BEAMFORMING */ 270 271 /* 272 * Debug Related Config 273 */ 274 #define DBG 1 275 /*#define CONFIG_DEBUG_RTL871X*/ /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */ 276 277 #define CONFIG_PROC_DEBUG 278 279 #define CONFIG_DBG_COUNTER 280 281 #define DBG_CONFIG_ERROR_DETECT 282 /* 283 #define DBG_CONFIG_ERROR_DETECT_INT 284 #define DBG_CONFIG_ERROR_RESET 285 #define DBG_IO 286 #define DBG_DELAY_OS 287 #define DBG_MEM_ALLOC 288 #define DBG_IOCTL 289 290 #define DBG_TX 291 #define DBG_XMIT_BUF 292 #define DBG_XMIT_BUF_EXT 293 #define DBG_TX_DROP_FRAME 294 295 #define DBG_RX_DROP_FRAME 296 #define DBG_RX_SEQ 297 #define DBG_RX_SIGNAL_DISPLAY_PROCESSING 298 #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap" 299 */ 300 #define DBG_RX_SIGNAL_DISPLAY_RAW_DATA 301 #if 0 302 #define DBG_NOISE_MONITOR 303 304 #define DBG_TX_POWER_IDX 305 306 #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE 307 #define DBG_ROAMING_TEST 308 309 #define DBG_HAL_INIT_PROFILING 310 311 #define DBG_MEMORY_LEAK 1 312 313 /* TX use 1 urb */ 314 #define CONFIG_SINGLE_XMIT_BUF 315 /* RX use 1 urb */ 316 #define CONFIG_SINGLE_RECV_BUF 317 #endif 318