1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2017 Realtek Corporation. 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 *****************************************************************************/ 15 /* 16 * Public General Configure 17 */ 18 #define AUTOCONF_INCLUDED 19 20 #define RTL871X_MODULE_NAME "8188FU" 21 #define DRV_NAME "rtl8188fu" 22 23 #ifndef CONFIG_RTL8188F 24 #define CONFIG_RTL8188F 25 #endif 26 #define CONFIG_USB_HCI 27 28 #define PLATFORM_LINUX 29 30 #define RTL8188F_USB_MAC_LOOPBACK 0 31 32 /* 33 * Wi-Fi Functions Configure 34 */ 35 #define CONFIG_80211N_HT 36 #define CONFIG_RECV_REORDERING_CTRL 37 38 /* #define CONFIG_IOCTL_CFG80211 */ /* Set from Makefile */ 39 #ifdef CONFIG_IOCTL_CFG80211 40 /* 41 * Indicate new sta asoc through cfg80211_new_sta 42 * If kernel version >= 3.2 or 43 * version < 3.2 but already apply cfg80211 patch, 44 * RTW_USE_CFG80211_STA_EVENT must be defined! 45 */ 46 /* #define RTW_USE_CFG80211_STA_EVENT */ /* Indicate new sta asoc through cfg80211_new_sta */ 47 #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER 48 49 /* #define CONFIG_DEBUG_CFG80211 */ 50 /* #define CONFIG_DRV_ISSUE_PROV_REQ */ /* IOT FOR S2 */ 51 52 #define CONFIG_SET_SCAN_DENY_TIMER 53 #endif 54 55 #ifdef CONFIG_AP_MODE 56 #define CONFIG_NATIVEAP_MLME 57 #ifndef CONFIG_NATIVEAP_MLME 58 #define CONFIG_HOSTAPD_MLME 59 #endif 60 /* #define CONFIG_FIND_BEST_CHANNEL */ 61 /* #define CONFIG_AUTO_AP_MODE */ 62 #endif 63 64 #ifdef CONFIG_P2P 65 /* 66 * Added by Albert 20110812 67 * The CONFIG_WFD is for supporting the Wi-Fi display 68 */ 69 #define CONFIG_WFD 70 71 #define CONFIG_P2P_REMOVE_GROUP_INFO 72 73 /* #define CONFIG_DBG_P2P */ 74 #define CONFIG_P2P_PS 75 #define CONFIG_P2P_OP_CHK_SOCIAL_CH 76 #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */ 77 /*#define CONFIG_P2P_INVITE_IOT*/ 78 #endif 79 80 /* 81 * Added by Kurt 20110511 82 */ 83 #ifdef CONFIG_TDLS 84 #define CONFIG_TDLS_DRIVER_SETUP 85 /* 86 #ifndef CONFIG_WFD 87 #define CONFIG_WFD 88 #endif 89 #define CONFIG_TDLS_AUTOSETUP 90 */ 91 #define CONFIG_TDLS_AUTOCHECKALIVE 92 #define CONFIG_TDLS_CH_SW /* Enable this flag only when we confirm that TDLS CH SW is supported in FW */ 93 #endif 94 95 /* #define CONFIG_CONCURRENT_MODE */ /* Set from Makefile */ 96 #ifdef CONFIG_CONCURRENT_MODE 97 #define CONFIG_TSF_RESET_OFFLOAD /* For 2 PORT TSF SYNC. */ 98 #define CONFIG_RUNTIME_PORT_SWITCH 99 100 /* #define DBG_RUNTIME_PORT_SWITCH */ 101 #endif /* CONFIG_CONCURRENT_MODE */ 102 103 #define CONFIG_LAYER2_ROAMING 104 #define CONFIG_LAYER2_ROAMING_RESUME 105 106 /* 107 * Hareware/Firmware Related Configure 108 */ 109 /* #define CONFIG_ANTENNA_DIVERSITY */ 110 /* #define SUPPORT_HW_RFOFF_DETECTED */ 111 112 #define CONFIG_RTW_LED 113 #ifdef CONFIG_RTW_LED 114 #define CONFIG_RTW_SW_LED 115 #ifdef CONFIG_RTW_SW_LED 116 /* define CONFIG_RTW_LED_HANDLED_BY_CMD_THREAD */ 117 #endif 118 #endif /* CONFIG_RTW_LED */ 119 120 #define CONFIG_XMIT_ACK 121 #ifdef CONFIG_XMIT_ACK 122 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK 123 #endif 124 125 #define CONFIG_RF_POWER_TRIM 126 127 #define DISABLE_BB_RF 0 128 129 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */ 130 131 #define CONFIG_RX_PACKET_APPEND_FCS 132 133 /* 134 * Interface Related Configure 135 */ 136 #define CONFIG_USB_TX_AGGREGATION 137 #define CONFIG_USB_RX_AGGREGATION 138 139 140 #define CONFIG_GLOBAL_UI_PID 141 142 #define CONFIG_OUT_EP_WIFI_MODE 143 144 #define ENABLE_USB_DROP_INCORRECT_OUT 145 146 /* #define CONFIG_SUPPORT_USB_INT */ 147 #ifdef CONFIG_SUPPORT_USB_INT 148 /* #define CONFIG_USB_INTERRUPT_IN_PIPE */ 149 #endif 150 151 /* #define CONFIG_REDUCE_USB_TX_INT */ /* Trade-off: Improve performance, but may cause TX URBs blocked by USB Host/Bus driver on few platforms. */ 152 153 /* 154 * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now! 155 */ 156 /* #define CONFIG_USE_USB_BUFFER_ALLOC_TX */ /* Trade-off: For TX path, improve stability on some platforms, but may cause performance degrade on other platforms. */ 157 /* #define CONFIG_USE_USB_BUFFER_ALLOC_RX */ /* For RX path */ 158 159 /* 160 * USB VENDOR REQ BUFFER ALLOCATION METHOD 161 * if not set we'll use function local variable (stack memory) 162 */ 163 /* #define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE */ 164 #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC 165 #define CONFIG_USB_VENDOR_REQ_MUTEX 166 #define CONFIG_VENDOR_REQ_RETRY 167 /* #define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ */ 168 169 170 /* 171 * Others 172 */ 173 #define CONFIG_SKB_COPY /* for amsdu */ 174 175 /* #define CONFIG_EASY_REPLACEMENT */ 176 177 /* #define CONFIG_ADAPTOR_INFO_CACHING_FILE */ /* now just applied on 8192cu only, should make it general... */ 178 179 /* #define CONFIG_RESUME_IN_WORKQUEUE */ 180 181 /* #define CONFIG_SET_SCAN_DENY_TIMER */ 182 183 #define CONFIG_NEW_SIGNAL_STAT_PROCESS 184 185 /* #define CONFIG_SIGNAL_DISPLAY_DBM */ /* display RX signal with dbm */ 186 #ifdef CONFIG_SIGNAL_DISPLAY_DBM 187 /* #define CONFIG_BACKGROUND_NOISE_MONITOR */ 188 #endif 189 190 #define CONFIG_EMBEDDED_FWIMG 191 192 #ifdef CONFIG_EMBEDDED_FWIMG 193 #define LOAD_FW_HEADER_FROM_DRIVER 194 #endif 195 /* #define CONFIG_FILE_FWIMG */ 196 197 #define CONFIG_LONG_DELAY_ISSUE 198 199 200 /* 201 * Auto Configure Section 202 */ 203 #ifdef CONFIG_MINIMAL_MEMORY_USAGE 204 #undef CONFIG_USB_TX_AGGREGATION 205 #undef CONFIG_USB_RX_AGGREGATION 206 #endif 207 208 #ifdef CONFIG_MP_INCLUDED 209 #define MP_DRIVER 1 210 #define CONFIG_MP_IWPRIV_SUPPORT 211 /* #undef CONFIG_USB_TX_AGGREGATION */ 212 /* #undef CONFIG_USB_RX_AGGREGATION */ 213 #else /* !CONFIG_MP_INCLUDED */ 214 #define MP_DRIVER 0 215 #endif /* !CONFIG_MP_INCLUDED */ 216 217 #ifdef CONFIG_POWER_SAVING 218 #define CONFIG_IPS 219 #define CONFIG_LPS 220 221 #ifdef CONFIG_IPS 222 /* #define CONFIG_IPS_LEVEL_2 1 */ /*enable this to set default IPS mode to IPS_LEVEL_2 */ 223 #endif 224 225 #if defined(CONFIG_LPS) 226 #define CONFIG_LPS_LCLK 227 #endif 228 229 #ifdef CONFIG_LPS_LCLK 230 /* #define CONFIG_XMIT_THREAD_MODE */ 231 #ifndef CONFIG_SUPPORT_USB_INT 232 #define LPS_RPWM_WAIT_MS 300 233 #define CONFIG_DETECT_CPWM_BY_POLLING 234 #endif 235 #endif 236 #endif /*CONFIG_POWER_SAVING*/ 237 238 #ifdef CONFIG_BT_COEXIST 239 /* for ODM and outsrc BT-Coex */ 240 #ifndef CONFIG_LPS 241 #define CONFIG_LPS /* download reserved page to FW */ 242 #endif 243 #endif /* CONFIG_BT_COEXIST */ 244 245 #ifdef CONFIG_WOWLAN 246 #define CONFIG_GTK_OL 247 #endif /* CONFIG_WOWLAN */ 248 249 #ifdef CONFIG_GPIO_WAKEUP 250 #ifndef WAKEUP_GPIO_IDX 251 #define WAKEUP_GPIO_IDX 0 /* WIFI Chip Side */ 252 #endif /* !WAKEUP_GPIO_IDX */ 253 #endif /* CONFIG_GPIO_WAKEUP */ 254 255 #ifdef CONFIG_AP_MODE 256 /* #define CONFIG_INTERRUPT_BASED_TXBCN */ /* Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs */ 257 #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN) 258 #undef CONFIG_INTERRUPT_BASED_TXBCN 259 #endif 260 #ifdef CONFIG_INTERRUPT_BASED_TXBCN 261 /* #define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT */ 262 #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR 263 #endif 264 #endif /* CONFIG_AP_MODE */ 265 266 #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX 267 268 #else 269 #define CONFIG_PREALLOC_RECV_SKB 270 #ifdef CONFIG_PREALLOC_RECV_SKB 271 /* #define CONFIG_FIX_NR_BULKIN_BUFFER */ /* only use PREALLOC_RECV_SKB buffer, don't alloc skb at runtime */ 272 #endif 273 #endif 274 275 #ifdef CONFIG_USB_TX_AGGREGATION 276 /* #define CONFIG_TX_EARLY_MODE */ 277 #endif 278 279 #ifdef CONFIG_TX_EARLY_MODE 280 #define RTL8188F_EARLY_MODE_PKT_NUM_10 0 281 #endif 282 283 284 285 286 /* 287 * Debug Related Configure 288 */ 289 #ifdef CONFIG_RTW_DEBUG 290 #define DBG 1 /* for ODM & BTCOEX debug */ 291 #define DBG_PHYDM_MORE 0 292 #else /* !CONFIG_RTW_DEBUG */ 293 #define DBG 0 /* for ODM & BTCOEX debug */ 294 #define DBG_PHYDM_MORE 0 295 #endif /* CONFIG_RTW_DEBUG */ 296 297 /* 298 #define DBG_CONFIG_ERROR_DETECT 299 #define DBG_CONFIG_ERROR_DETECT_INT 300 #define DBG_CONFIG_ERROR_RESET 301 302 #define DBG_IO 303 #define DBG_DELAY_OS 304 #define DBG_MEM_ALLOC 305 #define DBG_IOCTL 306 307 #define DBG_TX 308 #define DBG_XMIT_BUF 309 #define DBG_XMIT_BUF_EXT 310 #define DBG_TX_DROP_FRAME 311 312 #define DBG_RX_DROP_FRAME 313 #define DBG_RX_SEQ 314 #define DBG_RX_SIGNAL_DISPLAY_PROCESSING 315 #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "rtw-ap" 316 317 #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE 318 #define DBG_ROAMING_TEST 319 320 #define DBG_HAL_INIT_PROFILING 321 322 #define DBG_MEMORY_LEAK 323 */ 324 #define DBG_RX_DFRAME_RAW_DATA 325