1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2017 Realtek Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of version 2 of the GNU General Public License as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 *****************************************************************************/ 16 /* 17 * Public General Config 18 */ 19 #define AUTOCONF_INCLUDED 20 21 #define RTL871X_MODULE_NAME "8189FS" 22 #define DRV_NAME "rtl8189fs" 23 24 #ifndef CONFIG_RTL8188F 25 #define CONFIG_RTL8188F 26 #endif 27 #define CONFIG_SDIO_HCI 28 29 #define PLATFORM_LINUX 30 31 32 /* 33 * Wi-Fi Functions Config 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 * Indecate 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 defiend! 45 */ 46 /* #define RTW_USE_CFG80211_STA_EVENT */ /* Indecate new sta asoc through cfg80211_new_sta */ 47 #ifndef CONFIG_PLATFORM_INTEL_BYT 48 #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER 49 #endif /* !CONFIG_PLATFORM_INTEL_BYT */ 50 /* #define CONFIG_DEBUG_CFG80211 */ 51 #define CONFIG_SET_SCAN_DENY_TIMER 52 #endif 53 54 #define CONFIG_AP_MODE 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 #endif 62 63 #define CONFIG_P2P 64 #ifdef CONFIG_P2P 65 /* Added by Albert 20110812 */ 66 /* The CONFIG_WFD is for supporting the Wi-Fi display */ 67 #define CONFIG_WFD 68 69 #define CONFIG_P2P_REMOVE_GROUP_INFO 70 71 /* #define CONFIG_DBG_P2P */ 72 #define CONFIG_P2P_PS 73 #define CONFIG_P2P_OP_CHK_SOCIAL_CH 74 #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */ 75 /*#define CONFIG_P2P_INVITE_IOT*/ 76 #endif 77 78 /* Added by Kurt 20110511 */ 79 #ifdef CONFIG_TDLS 80 #define CONFIG_TDLS_DRIVER_SETUP 81 /* #ifndef CONFIG_WFD */ 82 /* #define CONFIG_WFD */ 83 /* #endif */ 84 /* #define CONFIG_TDLS_AUTOSETUP */ 85 #define CONFIG_TDLS_AUTOCHECKALIVE 86 /* #define CONFIG_TDLS_CH_SW */ /* Enable this flag only when we confirm that TDLS CH SW is supported in FW */ 87 #endif 88 89 /* #define CONFIG_CONCURRENT_MODE */ /* Set from Makefile */ 90 #ifdef CONFIG_CONCURRENT_MODE 91 #define CONFIG_RUNTIME_PORT_SWITCH 92 /* #define DBG_RUNTIME_PORT_SWITCH */ 93 94 95 #ifndef CONFIG_RUNTIME_PORT_SWITCH 96 #define CONFIG_TSF_RESET_OFFLOAD /* For 2 PORT TSF SYNC. */ 97 #endif 98 #endif /* CONFIG_CONCURRENT_MODE */ 99 100 #define CONFIG_LAYER2_ROAMING 101 #define CONFIG_LAYER2_ROAMING_RESUME 102 103 /* 104 * Hareware/Firmware Related Config 105 */ 106 /* #define CONFIG_BT_COEXIST */ /* Set from Makefile */ 107 /* #define CONFIG_ANTENNA_DIVERSITY */ 108 /* #define SUPPORT_HW_RFOFF_DETECTED */ 109 110 /*#define CONFIG_RTW_LED*/ 111 #ifdef CONFIG_RTW_LED 112 /*#define CONFIG_RTW_SW_LED*/ 113 #endif /* CONFIG_RTW_LED */ 114 115 #define CONFIG_XMIT_ACK 116 #ifdef CONFIG_XMIT_ACK 117 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK 118 #endif 119 120 #define CONFIG_RF_POWER_TRIM 121 122 #define DISABLE_BB_RF 0 123 124 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */ 125 126 /* 127 * Interface Related Config 128 */ 129 #define CONFIG_SDIO_CHK_HCI_RESUME 130 #define CONFIG_TX_AGGREGATION 131 #define SDIO_FREE_XMIT_BUF_SEMA 132 #define CONFIG_SDIO_RX_COPY 133 #define CONFIG_XMIT_THREAD_MODE 134 #define CONFIG_SDIO_TX_ENABLE_AVAL_INT 135 136 /* #define CONFIG_RECV_THREAD_MODE */ 137 #ifdef CONFIG_RECV_THREAD_MODE 138 #define RTW_RECV_THREAD_HIGH_PRIORITY 139 #endif/*CONFIG_RECV_THREAD_MODE*/ 140 /* 141 * Others 142 */ 143 /* #define CONFIG_MAC_LOOPBACK_DRIVER */ 144 145 #define CONFIG_SKB_COPY /* for amsdu */ 146 147 #define CONFIG_NEW_SIGNAL_STAT_PROCESS 148 149 #define CONFIG_EMBEDDED_FWIMG 150 #ifdef CONFIG_EMBEDDED_FWIMG 151 #define LOAD_FW_HEADER_FROM_DRIVER 152 #endif 153 /* #define CONFIG_FILE_FWIMG */ 154 155 #define CONFIG_LONG_DELAY_ISSUE 156 /* #define CONFIG_PATCH_JOIN_WRONG_CHANNEL */ 157 158 159 /* 160 * Auto Config Section 161 */ 162 #ifdef CONFIG_MAC_LOOPBACK_DRIVER 163 #undef CONFIG_IOCTL_CFG80211 164 #undef CONFIG_AP_MODE 165 #undef CONFIG_NATIVEAP_MLME 166 #undef CONFIG_POWER_SAVING 167 #undef CONFIG_BT_COEXIST 168 #undef CONFIG_ANTENNA_DIVERSITY 169 #undef SUPPORT_HW_RFOFF_DETECTED 170 #endif 171 172 #ifdef CONFIG_MP_INCLUDED 173 #define MP_DRIVER 1 174 #define CONFIG_MP_IWPRIV_SUPPORT 175 #else /* !CONFIG_MP_INCLUDED */ 176 #define MP_DRIVER 0 177 #endif /* !CONFIG_MP_INCLUDED */ 178 179 #ifdef CONFIG_POWER_SAVING 180 #define CONFIG_IPS 181 #define CONFIG_LPS 182 183 #if defined(CONFIG_LPS) && (defined(CONFIG_GSPI_HCI) || defined(CONFIG_SDIO_HCI)) 184 #define CONFIG_LPS_LCLK 185 #endif 186 187 #ifdef CONFIG_LPS 188 #define CONFIG_CHECK_LEAVE_LPS 189 /* #define CONFIG_LPS_SLOW_TRANSITION */ 190 #endif 191 192 #ifdef CONFIG_LPS_LCLK 193 #define CONFIG_DETECT_CPWM_BY_POLLING 194 #define CONFIG_LPS_RPWM_TIMER 195 #if defined(CONFIG_LPS_RPWM_TIMER) || defined(CONFIG_DETECT_CPWM_BY_POLLING) 196 #define LPS_RPWM_WAIT_MS 300 197 #endif 198 #define CONFIG_LPS_LCLK_WD_TIMER /* Watch Dog timer in LPS LCLK */ 199 #endif 200 201 #ifdef CONFIG_IPS 202 #define CONFIG_IPS_CHECK_IN_WD /* Do IPS Check in WatchDog */ 203 /* #define CONFIG_SWLPS_IN_IPS */ /* Do SW LPS flow when entering and leaving IPS */ 204 /* #define CONFIG_FWLPS_IN_IPS */ /* issue H2C command to let FW do LPS when entering IPS */ 205 #endif 206 #endif /* CONFIG_POWER_SAVING */ 207 208 #ifdef CONFIG_WOWLAN 209 /* #define CONFIG_GTK_OL */ 210 /* #define CONFIG_ARP_KEEP_ALIVE */ 211 #endif /* CONFIG_WOWLAN */ 212 213 #ifdef CONFIG_GPIO_WAKEUP 214 #ifndef WAKEUP_GPIO_IDX 215 #define WAKEUP_GPIO_IDX 0 216 #endif 217 #endif 218 219 /* 220 * Debug Related Config 221 */ 222 #ifdef CONFIG_RTW_DEBUG 223 #define DBG 1 /* for ODM & BTCOEX debug */ 224 #else /* !CONFIG_RTW_DEBUG */ 225 #define DBG 0 /* for ODM & BTCOEX debug */ 226 #endif /* CONFIG_RTW_DEBUG */ 227 228 #define DBG_CONFIG_ERROR_DETECT 229 /* #define DBG_XMIT_BUF */ 230 /* #define DBG_XMIT_BUF_EXT */ 231 /* #define DBG_CHECK_FW_PS_STATE */ 232 /* #define DBG_CHECK_FW_PS_STATE_H2C */ 233 /* #define CONFIG_FW_C2H_DEBUG */ 234 #define DBG_RX_DFRAME_RAW_DATA 235