autoconf.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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. /***** temporarily flag *******/
  24. /*
  25. * Public General Config
  26. */
  27. #define AUTOCONF_INCLUDED
  28. #define DRV_NAME "rtl8821ce"
  29. #define CONFIG_PCI_HCI
  30. #define CONFIG_PCIE_HCI
  31. #define PLATFORM_LINUX
  32. /*
  33. * Wi-Fi Functions Config
  34. */
  35. #define CONFIG_80211N_HT
  36. #define CONFIG_RECV_REORDERING_CTRL
  37. #define CONFIG_80211AC_VHT
  38. #define CONFIG_IEEE80211_BAND_5GHZ
  39. /*#define CONFIG_IOCTL_CFG80211*/
  40. #ifdef CONFIG_IOCTL_CFG80211
  41. /*#define RTW_USE_CFG80211_STA_EVENT*/ /* Indecate new sta asoc through cfg80211_new_sta */
  42. #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
  43. /*#define CONFIG_DEBUG_CFG80211*/
  44. /*#define CONFIG_DRV_ISSUE_PROV_REQ*/ /* IOT FOR S2 */
  45. #define CONFIG_SET_SCAN_DENY_TIMER
  46. #endif
  47. /*
  48. * Internal General Config
  49. */
  50. /*#define CONFIG_PWRCTRL*/
  51. /*#define CONFIG_H2CLBK*/
  52. #define CONFIG_TRX_BD_ARCH /* PCI only */
  53. #define USING_RX_TAG
  54. #define CONFIG_EMBEDDED_FWIMG
  55. #ifdef CONFIG_EMBEDDED_FWIMG
  56. #define LOAD_FW_HEADER_FROM_DRIVER
  57. #endif
  58. /*#define CONFIG_FILE_FWIMG*/
  59. #define CONFIG_XMIT_ACK
  60. #ifdef CONFIG_XMIT_ACK
  61. #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK
  62. #endif
  63. /*#define CONFIG_TCP_CSUM_OFFLOAD_RX*/
  64. /*#define CONFIG_DRVEXT_MODULE*/
  65. /*#define CONFIG_DISABLE_MCS13TO15 1*/ /* Disable MSC13-15 rates for more stable TX throughput with some 5G APs */
  66. #define BUF_DESC_ARCH /* if defined, hardware follows Rx buffer descriptor architecture */
  67. #define CONFIG_IPS
  68. #ifdef CONFIG_IPS
  69. /*#define CONFIG_IPS_LEVEL_2*/ /* enable this to set default IPS mode to IPS_LEVEL_2 */
  70. #endif
  71. /*#define SUPPORT_HW_RFOFF_DETECTED*/
  72. #define CONFIG_HIGH_CHAN_SUPER_CALIBRATION
  73. /*#define CONFIG_LPS*/
  74. #if defined(CONFIG_LPS)
  75. /*#define CONFIG_LPS_LCLK*/ /* 32K */
  76. #endif
  77. #ifdef CONFIG_LPS_LCLK
  78. #define CONFIG_XMIT_THREAD_MODE
  79. #endif
  80. /*#define CONFIG_PCI_ASPM*/
  81. /*#define CONFIG_ANTENNA_DIVERSITY*/
  82. /*#define CONFIG_CONCURRENT_MODE*/
  83. #ifdef CONFIG_CONCURRENT_MODE
  84. /*#define CONFIG_HWPORT_SWAP*/ /* Port0->Sec, Port1->Pri */
  85. /*#define CONFIG_RUNTIME_PORT_SWITCH*/
  86. /*#define DBG_RUNTIME_PORT_SWITCH*/
  87. #define CONFIG_SCAN_BACKOP
  88. /*#define CONFIG_ATMEL_RC_PATCH*/
  89. /*#define CONFIG_TSF_RESET_OFFLOAD*/ /* For 2 PORT TSF SYNC. */
  90. #endif
  91. #define CONFIG_AP_MODE
  92. #ifdef CONFIG_AP_MODE
  93. /*#define CONFIG_INTERRUPT_BASED_TXBCN*/ /* Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs */
  94. #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN)
  95. #undef CONFIG_INTERRUPT_BASED_TXBCN
  96. #endif
  97. #ifdef CONFIG_INTERRUPT_BASED_TXBCN
  98. /*#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT*/
  99. #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
  100. #endif
  101. #define CONFIG_NATIVEAP_MLME
  102. #ifndef CONFIG_NATIVEAP_MLME
  103. #define CONFIG_HOSTAPD_MLME
  104. #endif
  105. #define CONFIG_FIND_BEST_CHANNEL
  106. /*#define CONFIG_AUTO_AP_MODE*/
  107. #endif
  108. #define CONFIG_P2P
  109. #ifdef CONFIG_P2P
  110. /* The CONFIG_WFD is for supporting the Wi-Fi display */
  111. #define CONFIG_WFD
  112. #define CONFIG_P2P_REMOVE_GROUP_INFO
  113. /*#define CONFIG_DBG_P2P*/
  114. #define CONFIG_P2P_PS
  115. /*#define CONFIG_P2P_IPS*/
  116. #define CONFIG_P2P_OP_CHK_SOCIAL_CH
  117. #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT /* replace CONFIG_P2P_CHK_INVITE_CH_LIST flag */
  118. #define CONFIG_P2P_INVITE_IOT
  119. #endif
  120. /* Added by Kurt 20110511 */
  121. #ifdef CONFIG_TDLS
  122. #define CONFIG_TDLS_DRIVER_SETUP
  123. #if 0
  124. #ifndef CONFIG_WFD
  125. #define CONFIG_WFD
  126. #endif
  127. #define CONFIG_TDLS_AUTOSETUP
  128. #endif
  129. #define CONFIG_TDLS_AUTOCHECKALIVE
  130. #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 */
  131. #endif
  132. #define CONFIG_SKB_COPY /* for amsdu */
  133. /*#define CONFIG_LED*/
  134. #ifdef CONFIG_LED
  135. /*#define CONFIG_SW_LED*/
  136. #ifdef CONFIG_SW_LED
  137. /*#define CONFIG_LED_HANDLED_BY_CMD_THREAD*/
  138. #endif
  139. #endif /* CONFIG_LED */
  140. #define CONFIG_GLOBAL_UI_PID
  141. #define CONFIG_LAYER2_ROAMING
  142. #define CONFIG_LAYER2_ROAMING_RESUME
  143. /*#define CONFIG_ADAPTOR_INFO_CACHING_FILE*/ /* now just applied on 8192cu only, should make it general...*/
  144. /*#define CONFIG_RESUME_IN_WORKQUEUE*/
  145. /*#define CONFIG_SET_SCAN_DENY_TIMER*/
  146. #define CONFIG_LONG_DELAY_ISSUE
  147. #define CONFIG_NEW_SIGNAL_STAT_PROCESS
  148. /*#define CONFIG_SIGNAL_DISPLAY_DBM*/ /* display RX signal with dbm */
  149. #ifdef CONFIG_SIGNAL_DISPLAY_DBM
  150. /*#define CONFIG_BACKGROUND_NOISE_MONITOR*/
  151. #endif
  152. #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
  153. #define CONFIG_TX_MCAST2UNI /* Support IP multicast->unicast*/
  154. /*#define CONFIG_CHECK_AC_LIFETIME 1*/ /* Check packet lifetime of 4 ACs. */
  155. /*#define CONFIG_BEAMFORMING*/
  156. /*
  157. * Software feature Related Config
  158. */
  159. #define RTW_HALMAC /* Use HALMAC architecture, necessary for 8822B */
  160. /* #define CONFIG_TX_AMSDU */
  161. /*
  162. * Interface Related Config
  163. */
  164. /*
  165. * HAL Related Config
  166. */
  167. #define RTL8192E_RX_PACKET_INCLUDE_CRC 0
  168. #define CONFIG_RX_PACKET_APPEND_FCS
  169. #define SUPPORTED_BLOCK_IO
  170. #define RTL8188E_FW_DOWNLOAD_ENABLE
  171. /*#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0*/
  172. #define CONFIG_OUT_EP_WIFI_MODE 0
  173. #define ENABLE_USB_DROP_INCORRECT_OUT
  174. #define DISABLE_BB_RF 0
  175. #ifdef CONFIG_WOWLAN
  176. #define CONFIG_GTK_OL
  177. #define CONFIG_ARP_KEEP_ALIVE
  178. #ifndef CONFIG_DEFAULT_PATTERNS_EN
  179. #define CONFIG_DEFAULT_PATTERNS_EN
  180. #endif
  181. #endif /* CONFIG_WOWLAN */
  182. #ifdef CONFIG_GPIO_WAKEUP
  183. #ifndef WAKEUP_GPIO_IDX
  184. #define WAKEUP_GPIO_IDX 10
  185. #endif
  186. #endif
  187. /*#define RTL8191C_FPGA_NETWORKTYPE_ADHOC 0*/
  188. #ifdef CONFIG_MP_INCLUDED
  189. #define MP_DRIVER 1
  190. #define CONFIG_MP_IWPRIV_SUPPORT 1
  191. #else
  192. #define MP_DRIVER 0
  193. #endif
  194. /* Use cmd frame to issue beacon. Use a fixed buffer for beacon. */
  195. #define CONFIG_BCN_ICF
  196. /*
  197. * Platform Related Config
  198. */
  199. #ifdef CONFIG_BT_COEXIST
  200. /* for ODM and outsrc BT-Coex */
  201. #ifndef CONFIG_LPS
  202. #define CONFIG_LPS /* download reserved page to FW */
  203. #endif
  204. #endif /* !CONFIG_BT_COEXIST */
  205. #ifdef CONFIG_USB_TX_AGGREGATION
  206. /*#define CONFIG_TX_EARLY_MODE*/
  207. #endif
  208. #ifdef CONFIG_TX_EARLY_MODE
  209. #define RTL8192E_EARLY_MODE_PKT_NUM_10 0
  210. #endif
  211. /* Try to handle the Beacon error found in some types of TP-LINK APs */
  212. #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
  213. #define CONFIG_80211D
  214. /* #define CONFIG_LAMODE */
  215. /*
  216. * Debug Related Config
  217. */
  218. #define DBG 1
  219. #define CONFIG_PROC_DEBUG
  220. #define DBG_CONFIG_ERROR_DETECT
  221. /*
  222. #define DBG_CONFIG_ERROR_DETECT_INT
  223. #define DBG_CONFIG_ERROR_RESET
  224. #define DBG_IO
  225. #define DBG_DELAY_OS
  226. #define DBG_MEM_ALLOC
  227. #define DBG_IOCTL
  228. #define DBG_TX
  229. #define DBG_XMIT_BUF
  230. #define DBG_XMIT_BUF_EXT
  231. #define DBG_TX_DROP_FRAME
  232. #define DBG_RX_DROP_FRAME
  233. #define DBG_RX_SEQ
  234. #define DBG_RX_SIGNAL_DISPLAY_PROCESSING
  235. #define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap"
  236. */
  237. #define DBG_RX_SIGNAL_DISPLAY_RAW_DATA
  238. #if 0
  239. #define DBG_NOISE_MONITOR
  240. #define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
  241. #define DBG_ROAMING_TEST
  242. #define DBG_HAL_INIT_PROFILING
  243. #define DBG_MEMORY_LEAK 1
  244. /* TX use 1 urb */
  245. #define CONFIG_SINGLE_XMIT_BUF
  246. /* RX use 1 urb */
  247. #define CONFIG_SINGLE_RECV_BUF
  248. #endif