autoconf.h 7.2 KB

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