autoconf.h 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 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. #define CONFIG_ODM_REFRESH_RAMASK
  24. #define CONFIG_PHY_SETTING_WITH_ODM
  25. //for FPGA VERIFICATION config
  26. #define RTL8188E_FPGA_TRUE_PHY_VERIFICATION 0
  27. //***** temporarily flag *******
  28. /*
  29. * Public General Config
  30. */
  31. #define AUTOCONF_INCLUDED
  32. #define RTL871X_MODULE_NAME "8812AU"
  33. #define DRV_NAME "rtl8812au"
  34. #define CONFIG_USB_HCI 1
  35. #define PLATFORM_LINUX 1
  36. //#define CONFIG_IOCTL_CFG80211 1
  37. #ifdef CONFIG_PLATFORM_ARM_SUNxI
  38. #ifndef CONFIG_IOCTL_CFG80211
  39. #define CONFIG_IOCTL_CFG80211 1
  40. #endif
  41. #endif
  42. #ifdef CONFIG_IOCTL_CFG80211
  43. //#define RTW_USE_CFG80211_STA_EVENT /* Indecate new sta asoc through cfg80211_new_sta */
  44. #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER
  45. //#define CONFIG_DEBUG_CFG80211
  46. //#define CONFIG_DRV_ISSUE_PROV_REQ // IOT FOR S2
  47. #define CONFIG_SET_SCAN_DENY_TIMER
  48. #endif
  49. /*
  50. * Internal General Config
  51. */
  52. //#define CONFIG_PWRCTRL
  53. //#define CONFIG_H2CLBK
  54. #define CONFIG_EMBEDDED_FWIMG 1
  55. //#define CONFIG_FILE_FWIMG
  56. #define CONFIG_80211N_HT 1
  57. #ifdef CONFIG_80211N_HT
  58. #define CONFIG_80211AC_VHT 1
  59. #endif
  60. #define CONFIG_RECV_REORDERING_CTRL 1
  61. //#define CONFIG_TCP_CSUM_OFFLOAD_RX 1
  62. //#define CONFIG_DRVEXT_MODULE 1
  63. #define CONFIG_DFS 1
  64. //#define CONFIG_SUPPORT_USB_INT
  65. #ifdef CONFIG_SUPPORT_USB_INT
  66. //#define CONFIG_USB_INTERRUPT_IN_PIPE 1
  67. #endif
  68. //#ifndef CONFIG_MP_INCLUDED
  69. #define CONFIG_IPS 1
  70. #ifdef CONFIG_IPS
  71. //#define CONFIG_IPS_LEVEL_2 1 //enable this to set default IPS mode to IPS_LEVEL_2
  72. #endif
  73. //#define SUPPORT_HW_RFOFF_DETECTED 1
  74. #define CONFIG_LPS 1
  75. #if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
  76. //#define CONFIG_LPS_LCLK 1
  77. #endif
  78. #ifdef CONFIG_LPS_LCLK
  79. #define CONFIG_XMIT_THREAD_MODE
  80. #endif
  81. //befor link
  82. //#define CONFIG_ANTENNA_DIVERSITY
  83. //after link
  84. #ifdef CONFIG_ANTENNA_DIVERSITY
  85. #define CONFIG_HW_ANTENNA_DIVERSITY
  86. #endif
  87. //#define CONFIG_CONCURRENT_MODE 1
  88. #ifdef CONFIG_CONCURRENT_MODE
  89. //#define CONFIG_HWPORT_SWAP //Port0->Sec , Port1 -> Pri
  90. #ifdef CONFIG_RTL8812A
  91. #define CONFIG_TSF_RESET_OFFLOAD 1 // For 2 PORT TSF SYNC.
  92. #endif
  93. //#define CONFIG_MULTI_VIR_IFACES //besides primary&secondary interfaces, extend to support more interfaces
  94. #endif
  95. //#define CONFIG_IOL
  96. //#else //#ifndef CONFIG_MP_INCLUDED
  97. //#endif //#ifndef CONFIG_MP_INCLUDED
  98. #define CONFIG_AP_MODE 1
  99. #ifdef CONFIG_AP_MODE
  100. //#define CONFIG_INTERRUPT_BASED_TXBCN // Tx Beacon when driver BCN_OK ,BCN_ERR interrupt occurs
  101. #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN)
  102. #undef CONFIG_INTERRUPT_BASED_TXBCN
  103. #endif
  104. #ifdef CONFIG_INTERRUPT_BASED_TXBCN
  105. //#define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
  106. #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
  107. #endif
  108. #define CONFIG_NATIVEAP_MLME
  109. #ifndef CONFIG_NATIVEAP_MLME
  110. #define CONFIG_HOSTAPD_MLME 1
  111. #endif
  112. #define CONFIG_FIND_BEST_CHANNEL 1
  113. //#define CONFIG_NO_WIRELESS_HANDLERS 1
  114. //#define CONFIG_AUTO_AP_MODE
  115. #endif
  116. #define CONFIG_P2P 1
  117. #ifdef CONFIG_P2P
  118. //The CONFIG_WFD is for supporting the Wi-Fi display
  119. #define CONFIG_WFD
  120. #ifndef CONFIG_WIFI_TEST
  121. #define CONFIG_P2P_REMOVE_GROUP_INFO
  122. #endif
  123. //#define CONFIG_DBG_P2P
  124. #define CONFIG_P2P_PS
  125. //#define CONFIG_P2P_IPS
  126. #endif
  127. // Added by Kurt 20110511
  128. //#define CONFIG_TDLS 1
  129. #ifdef CONFIG_TDLS
  130. // #ifndef CONFIG_WFD
  131. // #define CONFIG_WFD 1
  132. // #endif
  133. // #define CONFIG_TDLS_AUTOSETUP 1
  134. // #define CONFIG_TDLS_AUTOCHECKALIVE 1
  135. #endif
  136. #define CONFIG_SKB_COPY 1//for amsdu
  137. #define CONFIG_LED
  138. #ifdef CONFIG_LED
  139. #define CONFIG_SW_LED
  140. #ifdef CONFIG_SW_LED
  141. //#define CONFIG_LED_HANDLED_BY_CMD_THREAD
  142. #endif
  143. #endif // CONFIG_LED
  144. #ifdef CONFIG_IOL
  145. #define CONFIG_IOL_READ_EFUSE_MAP
  146. //#define DBG_IOL_READ_EFUSE_MAP
  147. #define CONFIG_IOL_LLT
  148. #endif
  149. #define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
  150. #define CONFIG_GLOBAL_UI_PID
  151. #define CONFIG_LAYER2_ROAMING
  152. #define CONFIG_LAYER2_ROAMING_RESUME
  153. //#define CONFIG_ADAPTOR_INFO_CACHING_FILE // now just applied on 8192cu only, should make it general...
  154. //#define CONFIG_RESUME_IN_WORKQUEUE
  155. //#define CONFIG_SET_SCAN_DENY_TIMER
  156. #define CONFIG_LONG_DELAY_ISSUE
  157. #define CONFIG_NEW_SIGNAL_STAT_PROCESS
  158. //#define CONFIG_SIGNAL_DISPLAY_DBM //display RX signal with dbm
  159. #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
  160. #define CONFIG_BR_EXT 1 // Enable NAT2.5 support for STA mode interface with a L2 Bridge
  161. #ifdef CONFIG_BR_EXT
  162. #define CONFIG_BR_EXT_BRNAME "br0"
  163. #endif // CONFIG_BR_EXT
  164. #define CONFIG_TX_MCAST2UNI 1 // Support IP multicast->unicast
  165. //#define CONFIG_CHECK_AC_LIFETIME 1 // Check packet lifetime of 4 ACs.
  166. /*
  167. * Interface Related Config
  168. */
  169. #ifndef CONFIG_MINIMAL_MEMORY_USAGE
  170. #define CONFIG_USB_TX_AGGREGATION 1
  171. #define CONFIG_USB_RX_AGGREGATION 1
  172. #endif
  173. #define CONFIG_PREALLOC_RECV_SKB 1
  174. //#define CONFIG_REDUCE_USB_TX_INT 1 // Trade-off: Improve performance, but may cause TX URBs blocked by USB Host/Bus driver on few platforms.
  175. //#define CONFIG_EASY_REPLACEMENT 1
  176. /*
  177. * CONFIG_USE_USB_BUFFER_ALLOC_XX uses Linux USB Buffer alloc API and is for Linux platform only now!
  178. */
  179. //#define CONFIG_USE_USB_BUFFER_ALLOC_TX 1 // Trade-off: For TX path, improve stability on some platforms, but may cause performance degrade on other platforms.
  180. //#define CONFIG_USE_USB_BUFFER_ALLOC_RX 1 // For RX path
  181. #ifdef CONFIG_PLATFORM_ARM_SUNxI
  182. #ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
  183. #define CONFIG_USE_USB_BUFFER_ALLOC_TX
  184. #endif
  185. #endif
  186. #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
  187. #undef CONFIG_PREALLOC_RECV_SKB
  188. #endif
  189. /*
  190. * USB VENDOR REQ BUFFER ALLOCATION METHOD
  191. * if not set we'll use function local variable (stack memory)
  192. */
  193. //#define CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
  194. #define CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
  195. #define CONFIG_USB_VENDOR_REQ_MUTEX
  196. #define CONFIG_VENDOR_REQ_RETRY
  197. //#define CONFIG_USB_SUPPORT_ASYNC_VDN_REQ 1
  198. /*
  199. * HAL Related Config
  200. */
  201. #define RTL8812A_RX_PACKET_INCLUDE_CRC 0
  202. //#define CONFIG_ONLY_ONE_OUT_EP_TO_LOW 0
  203. #define CONFIG_OUT_EP_WIFI_MODE 0
  204. #define ENABLE_USB_DROP_INCORRECT_OUT 0
  205. #define RTL8192CU_ADHOC_WORKAROUND_SETTING 1
  206. #define ENABLE_NEW_RFE_TYPE 0
  207. #define DISABLE_BB_RF 0
  208. #ifdef CONFIG_MP_INCLUDED
  209. #define MP_DRIVER 1
  210. #define CONFIG_MP_IWPRIV_SUPPORT 1
  211. //#undef CONFIG_USB_TX_AGGREGATION
  212. //#undef CONFIG_USB_RX_AGGREGATION
  213. #else
  214. #define MP_DRIVER 0
  215. #endif
  216. /*
  217. * Platform Related Config
  218. */
  219. #ifdef CONFIG_PLATFORM_MN10300
  220. #define CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
  221. #define CONFIG_USE_USB_BUFFER_ALLOC_RX
  222. #if defined (CONFIG_SW_ANTENNA_DIVERSITY)
  223. #undef CONFIG_SW_ANTENNA_DIVERSITY
  224. #define CONFIG_HW_ANTENNA_DIVERSITY
  225. #endif
  226. #if defined (CONFIG_POWER_SAVING)
  227. #undef CONFIG_POWER_SAVING
  228. #endif
  229. #endif//CONFIG_PLATFORM_MN10300
  230. #ifdef CONFIG_PLATFORM_TI_DM365
  231. #define CONFIG_USE_USB_BUFFER_ALLOC_RX
  232. #endif
  233. #if defined(CONFIG_PLATFORM_ACTIONS_ATM702X)
  234. #ifdef CONFIG_USB_TX_AGGREGATION
  235. #undef CONFIG_USB_TX_AGGREGATION
  236. #endif
  237. #ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
  238. #define CONFIG_USE_USB_BUFFER_ALLOC_TX
  239. #endif
  240. #ifndef CONFIG_USE_USB_BUFFER_ALLOC_RX
  241. #define CONFIG_USE_USB_BUFFER_ALLOC_RX
  242. #endif
  243. #endif
  244. /*
  245. * Outsource Related Config
  246. */
  247. #define TEST_CHIP_SUPPORT 0
  248. #define RTL8192CE_SUPPORT 0
  249. #define RTL8192CU_SUPPORT 0
  250. #define RTL8192C_SUPPORT (RTL8192CE_SUPPORT|RTL8192CU_SUPPORT)
  251. #define RTL8192DE_SUPPORT 0
  252. #define RTL8192DU_SUPPORT 0
  253. #define RTL8192D_SUPPORT (RTL8192DE_SUPPORT|RTL8192DU_SUPPORT)
  254. #define RTL8723AU_SUPPORT 0
  255. #define RTL8723AS_SUPPORT 0
  256. #define RTL8723AE_SUPPORT 0
  257. #define RTL8723A_SUPPORT (RTL8723AU_SUPPORT|RTL8723AS_SUPPORT|RTL8723AE_SUPPORT)
  258. #define RTL8723_FPGA_VERIFICATION 0
  259. #define RTL8188EE_SUPPORT 0
  260. #define RTL8188EU_SUPPORT 0
  261. #define RTL8188ES_SUPPORT 0
  262. #define RTL8188E_SUPPORT (RTL8188EE_SUPPORT|RTL8188EU_SUPPORT|RTL8188ES_SUPPORT)
  263. #define RTL8812E_SUPPORT 0
  264. #ifdef CONFIG_RTL8812A
  265. #define RTL8812AU_SUPPORT 1
  266. #else
  267. #define RTL8812AU_SUPPORT 0
  268. #endif
  269. #define RTL8812A_SUPPORT (RTL8812E_SUPPORT|RTL8812AU_SUPPORT)
  270. #ifdef CONFIG_RTL8821A
  271. #define RTL8821A_SUPPORT 1
  272. #else
  273. #define RTL8821A_SUPPORT 0
  274. #endif
  275. #define RTL8723B_SUPPORT 0
  276. #define RTL8192E_SUPPORT 0
  277. #define RATE_ADAPTIVE_SUPPORT 0
  278. #define POWER_TRAINING_ACTIVE 0
  279. #ifdef CONFIG_USB_TX_AGGREGATION
  280. //#define CONFIG_TX_EARLY_MODE
  281. #endif
  282. #define RTL8188E_EARLY_MODE_PKT_NUM_10 0
  283. #define CONFIG_80211D
  284. #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR
  285. /*
  286. * Debug Related Config
  287. */
  288. #define DBG 0
  289. //#define CONFIG_DEBUG /* DBG_871X, etc... */
  290. //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */
  291. //#define CONFIG_PROC_DEBUG
  292. //#define DBG_CONFIG_ERROR_DETECT
  293. //#define DBG_CONFIG_ERROR_DETECT_INT
  294. //#define DBG_CONFIG_ERROR_RESET
  295. //#define DBG_IO
  296. //#define DBG_DELAY_OS
  297. //#define DBG_MEM_ALLOC
  298. //#define DBG_IOCTL
  299. //#define DBG_TX
  300. //#define DBG_XMIT_BUF
  301. //#define DBG_XMIT_BUF_EXT
  302. //#define DBG_TX_DROP_FRAME
  303. //#define DBG_RX_DROP_FRAME
  304. //#define DBG_RX_SEQ
  305. //#define DBG_RX_SIGNAL_DISPLAY_PROCESSING
  306. //#define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap"
  307. //#define DBG_SHOW_MCUFWDL_BEFORE_51_ENABLE
  308. //#define DBG_ROAMING_TEST
  309. //#define DBG_HAL_INIT_PROFILING
  310. //#define DBG_MEMORY_LEAK 1