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 Config 17 */ 18 #define AUTOCONF_INCLUDED 19 20 #define RTL871X_MODULE_NAME "8189FS" 21 #define DRV_NAME "rtl8189fs" 22 23 #ifndef CONFIG_RTL8188F 24 #define CONFIG_RTL8188F 25 #endif 26 #define CONFIG_SDIO_HCI 27 28 #define PLATFORM_LINUX 29 30 31 /* 32 * Wi-Fi Functions Config 33 */ 34 #define CONFIG_80211N_HT 35 #define CONFIG_RECV_REORDERING_CTRL 36 37 /* #define CONFIG_IOCTL_CFG80211 */ /* Set from Makefile */ 38 #ifdef CONFIG_IOCTL_CFG80211 39 /* 40 * Indecate new sta asoc through cfg80211_new_sta 41 * If kernel version >= 3.2 or 42 * version < 3.2 but already apply cfg80211 patch, 43 * RTW_USE_CFG80211_STA_EVENT must be defiend! 44 */ 45 /* #define RTW_USE_CFG80211_STA_EVENT */ /* Indecate new sta asoc through cfg80211_new_sta */ 46 #ifndef CONFIG_PLATFORM_INTEL_BYT 47 #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER 48 #endif /* !CONFIG_PLATFORM_INTEL_BYT */ 49 /* #define CONFIG_DEBUG_CFG80211 */ 50 #define CONFIG_SET_SCAN_DENY_TIMER 51 #endif 52 53 #ifdef CONFIG_AP_MODE 54 #define CONFIG_NATIVEAP_MLME 55 #ifndef CONFIG_NATIVEAP_MLME 56 #define CONFIG_HOSTAPD_MLME 57 #endif 58 /* #define CONFIG_FIND_BEST_CHANNEL */ 59 #endif 60 61 #ifdef CONFIG_P2P 62 /* Added by Albert 20110812 */ 63 /* The CONFIG_WFD is for supporting the Wi-Fi display */ 64 #define CONFIG_WFD 65 66 #define CONFIG_P2P_REMOVE_GROUP_INFO 67 68 /* #define CONFIG_DBG_P2P */ 69 #define CONFIG_P2P_PS 70 #define CONFIG_P2P_OP_CHK_SOCIAL_CH 71 #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */ 72 /*#define CONFIG_P2P_INVITE_IOT*/ 73 #endif 74 75 /* Added by Kurt 20110511 */ 76 #ifdef CONFIG_TDLS 77 #define CONFIG_TDLS_DRIVER_SETUP 78 /* #ifndef CONFIG_WFD */ 79 /* #define CONFIG_WFD */ 80 /* #endif */ 81 /* #define CONFIG_TDLS_AUTOSETUP */ 82 #define CONFIG_TDLS_AUTOCHECKALIVE 83 /* #define CONFIG_TDLS_CH_SW */ /* Enable this flag only when we confirm that TDLS CH SW is supported in FW */ 84 #endif 85 86 /* #define CONFIG_CONCURRENT_MODE */ /* Set from Makefile */ 87 #ifdef CONFIG_CONCURRENT_MODE 88 #define CONFIG_RUNTIME_PORT_SWITCH 89 /* #define DBG_RUNTIME_PORT_SWITCH */ 90 91 92 #ifndef CONFIG_RUNTIME_PORT_SWITCH 93 #define CONFIG_TSF_RESET_OFFLOAD /* For 2 PORT TSF SYNC. */ 94 #endif 95 #endif /* CONFIG_CONCURRENT_MODE */ 96 97 #define CONFIG_LAYER2_ROAMING 98 #define CONFIG_LAYER2_ROAMING_RESUME 99 100 /* 101 * Hareware/Firmware Related Config 102 */ 103 /* #define CONFIG_BT_COEXIST */ /* Set from Makefile */ 104 /* #define CONFIG_ANTENNA_DIVERSITY */ 105 /* #define SUPPORT_HW_RFOFF_DETECTED */ 106 107 /*#define CONFIG_RTW_LED*/ 108 #ifdef CONFIG_RTW_LED 109 /*#define CONFIG_RTW_SW_LED*/ 110 #endif /* CONFIG_RTW_LED */ 111 112 #define CONFIG_XMIT_ACK 113 #ifdef CONFIG_XMIT_ACK 114 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK 115 #endif 116 117 #define CONFIG_RX_PACKET_APPEND_FCS 118 119 #define CONFIG_RF_POWER_TRIM 120 121 #define DISABLE_BB_RF 0 122 123 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */ 124 125 /* 126 * Interface Related Config 127 */ 128 #define CONFIG_SDIO_CHK_HCI_RESUME 129 130 #define CONFIG_SDIO_RX_COPY 131 /* #define CONFIG_RECV_THREAD_MODE */ 132 #ifdef CONFIG_RECV_THREAD_MODE 133 #define RTW_RECV_THREAD_HIGH_PRIORITY 134 #endif/*CONFIG_RECV_THREAD_MODE*/ 135 #define CONFIG_SDIO_RECVBUF_AGGREGATION 136 #define CONFIG_SDIO_RECVBUF_PWAIT 137 #ifdef CONFIG_SDIO_RECVBUF_PWAIT 138 #define CONFIG_SDIO_RECVBUF_PWAIT_RUNTIME_ADJUST 139 #endif 140 141 #define CONFIG_TX_AGGREGATION 142 #define SDIO_FREE_XMIT_BUF_SEMA 143 #define CONFIG_XMIT_THREAD_MODE 144 #define CONFIG_SDIO_TX_ENABLE_AVAL_INT 145 146 /* 147 * Others 148 */ 149 /* #define CONFIG_MAC_LOOPBACK_DRIVER */ 150 151 #define CONFIG_SKB_COPY /* for amsdu */ 152 153 #define CONFIG_NEW_SIGNAL_STAT_PROCESS 154 155 #define CONFIG_EMBEDDED_FWIMG 156 #ifdef CONFIG_EMBEDDED_FWIMG 157 #define LOAD_FW_HEADER_FROM_DRIVER 158 #endif 159 /* #define CONFIG_FILE_FWIMG */ 160 161 #define CONFIG_LONG_DELAY_ISSUE 162 /* #define CONFIG_PATCH_JOIN_WRONG_CHANNEL */ 163 164 165 /* 166 * Auto Config Section 167 */ 168 #ifdef CONFIG_MAC_LOOPBACK_DRIVER 169 #undef CONFIG_IOCTL_CFG80211 170 #undef CONFIG_AP_MODE 171 #undef CONFIG_NATIVEAP_MLME 172 #undef CONFIG_POWER_SAVING 173 #undef CONFIG_BT_COEXIST 174 #undef CONFIG_ANTENNA_DIVERSITY 175 #undef SUPPORT_HW_RFOFF_DETECTED 176 #endif 177 178 #ifdef CONFIG_MP_INCLUDED 179 #define MP_DRIVER 1 180 #define CONFIG_MP_IWPRIV_SUPPORT 181 #else /* !CONFIG_MP_INCLUDED */ 182 #define MP_DRIVER 0 183 #endif /* !CONFIG_MP_INCLUDED */ 184 185 #ifdef CONFIG_POWER_SAVING 186 #define CONFIG_IPS 187 #define CONFIG_LPS 188 189 #if defined(CONFIG_LPS) && (defined(CONFIG_GSPI_HCI) || defined(CONFIG_SDIO_HCI)) 190 #define CONFIG_LPS_LCLK 191 #endif 192 193 #ifdef CONFIG_LPS 194 #define CONFIG_CHECK_LEAVE_LPS 195 /* #define CONFIG_LPS_SLOW_TRANSITION */ 196 #endif 197 198 #ifdef CONFIG_LPS_LCLK 199 #define CONFIG_DETECT_CPWM_BY_POLLING 200 #define CONFIG_LPS_RPWM_TIMER 201 #if defined(CONFIG_LPS_RPWM_TIMER) || defined(CONFIG_DETECT_CPWM_BY_POLLING) 202 #define LPS_RPWM_WAIT_MS 300 203 #endif 204 #define CONFIG_LPS_LCLK_WD_TIMER /* Watch Dog timer in LPS LCLK */ 205 #endif 206 207 #ifdef CONFIG_IPS 208 #define CONFIG_IPS_CHECK_IN_WD /* Do IPS Check in WatchDog */ 209 /* #define CONFIG_SWLPS_IN_IPS */ /* Do SW LPS flow when entering and leaving IPS */ 210 /* #define CONFIG_FWLPS_IN_IPS */ /* issue H2C command to let FW do LPS when entering IPS */ 211 #endif 212 #endif /* CONFIG_POWER_SAVING */ 213 214 #ifdef CONFIG_WOWLAN 215 #define CONFIG_GTK_OL 216 /* #define CONFIG_ARP_KEEP_ALIVE */ 217 #endif /* CONFIG_WOWLAN */ 218 219 #ifdef CONFIG_GPIO_WAKEUP 220 #ifndef WAKEUP_GPIO_IDX 221 #define WAKEUP_GPIO_IDX 0 222 #endif 223 #endif 224 225 /* 226 * Debug Related Config 227 */ 228 #ifdef CONFIG_RTW_DEBUG 229 #define DBG 1 /* for ODM & BTCOEX debug */ 230 #else /* !CONFIG_RTW_DEBUG */ 231 #define DBG 0 /* for ODM & BTCOEX debug */ 232 #endif /* CONFIG_RTW_DEBUG */ 233 234 #define DBG_CONFIG_ERROR_DETECT 235 /* #define DBG_XMIT_BUF */ 236 /* #define DBG_XMIT_BUF_EXT */ 237 /* #define DBG_CHECK_FW_PS_STATE */ 238 /* #define DBG_CHECK_FW_PS_STATE_H2C */ 239 /* #define CONFIG_FW_C2H_DEBUG */ 240 #define DBG_RX_DFRAME_RAW_DATA 241