hostapd.config 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. # Example hostapd build time configuration
  2. #
  3. # This file lists the configuration options that are used when building the
  4. # hostapd binary. All lines starting with # are ignored. Configuration option
  5. # lines must be commented out complete, if they are not to be included, i.e.,
  6. # just setting VARIABLE=n is not disabling that variable.
  7. #
  8. # This file is included in Makefile, so variables like CFLAGS and LIBS can also
  9. # be modified from here. In most cass, these lines should use += in order not
  10. # to override previous values of the variables.
  11. # Driver interface for Host AP driver
  12. CONFIG_DRIVER_HOSTAP=y
  13. # Driver interface for wired authenticator
  14. #CONFIG_DRIVER_WIRED=y
  15. # Driver interface for madwifi driver
  16. #CONFIG_DRIVER_MADWIFI=y
  17. #CFLAGS += -I../../madwifi # change to the madwifi source directory
  18. # Driver interface for drivers using the nl80211 kernel interface
  19. CONFIG_DRIVER_NL80211=y
  20. CONFIG_LIBNL32=y
  21. # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
  22. #CONFIG_DRIVER_BSD=y
  23. #CFLAGS += -I/usr/local/include
  24. #LIBS += -L/usr/local/lib
  25. #LIBS_p += -L/usr/local/lib
  26. #LIBS_c += -L/usr/local/lib
  27. # Driver interface for no driver (e.g., RADIUS server only)
  28. #CONFIG_DRIVER_NONE=y
  29. # IEEE 802.11F/IAPP
  30. CONFIG_IAPP=y
  31. # WPA2/IEEE 802.11i RSN pre-authentication
  32. CONFIG_RSN_PREAUTH=y
  33. # PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
  34. CONFIG_PEERKEY=y
  35. # IEEE 802.11w (management frame protection)
  36. # This version is an experimental implementation based on IEEE 802.11w/D1.0
  37. # draft and is subject to change since the standard has not yet been finalized.
  38. # Driver support is also needed for IEEE 802.11w.
  39. #CONFIG_IEEE80211W=y
  40. # Integrated EAP server
  41. #CONFIG_EAP=y
  42. # EAP-MD5 for the integrated EAP server
  43. #CONFIG_EAP_MD5=y
  44. # EAP-TLS for the integrated EAP server
  45. #CONFIG_EAP_TLS=y
  46. # EAP-MSCHAPv2 for the integrated EAP server
  47. #CONFIG_EAP_MSCHAPV2=y
  48. # EAP-PEAP for the integrated EAP server
  49. #CONFIG_EAP_PEAP=y
  50. # EAP-GTC for the integrated EAP server
  51. #CONFIG_EAP_GTC=y
  52. # EAP-TTLS for the integrated EAP server
  53. #CONFIG_EAP_TTLS=y
  54. # EAP-SIM for the integrated EAP server
  55. #CONFIG_EAP_SIM=y
  56. # EAP-AKA for the integrated EAP server
  57. #CONFIG_EAP_AKA=y
  58. # EAP-AKA' for the integrated EAP server
  59. # This requires CONFIG_EAP_AKA to be enabled, too.
  60. #CONFIG_EAP_AKA_PRIME=y
  61. # EAP-PAX for the integrated EAP server
  62. #CONFIG_EAP_PAX=y
  63. # EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
  64. #CONFIG_EAP_PSK=y
  65. # EAP-pwd for the integrated EAP server (secure authentication with a password)
  66. #CONFIG_EAP_PWD=y
  67. # EAP-SAKE for the integrated EAP server
  68. #CONFIG_EAP_SAKE=y
  69. # EAP-GPSK for the integrated EAP server
  70. #CONFIG_EAP_GPSK=y
  71. # Include support for optional SHA256 cipher suite in EAP-GPSK
  72. #CONFIG_EAP_GPSK_SHA256=y
  73. # EAP-FAST for the integrated EAP server
  74. # Note: Default OpenSSL package does not include support for all the
  75. # functionality needed for EAP-FAST. If EAP-FAST is enabled with OpenSSL,
  76. # the OpenSSL library must be patched (openssl-0.9.9-session-ticket.patch)
  77. # to add the needed functions.
  78. #CONFIG_EAP_FAST=y
  79. # Wi-Fi Protected Setup (WPS)
  80. #CONFIG_WPS=y
  81. # Enable WSC 2.0 support
  82. #CONFIG_WPS2=y
  83. # Enable UPnP support for external WPS Registrars
  84. #CONFIG_WPS_UPNP=y
  85. # EAP-IKEv2
  86. #CONFIG_EAP_IKEV2=y
  87. # Trusted Network Connect (EAP-TNC)
  88. #CONFIG_EAP_TNC=y
  89. # PKCS#12 (PFX) support (used to read private key and certificate file from
  90. # a file that usually has extension .p12 or .pfx)
  91. CONFIG_PKCS12=y
  92. # RADIUS authentication server. This provides access to the integrated EAP
  93. # server from external hosts using RADIUS.
  94. #CONFIG_RADIUS_SERVER=y
  95. # Build IPv6 support for RADIUS operations
  96. CONFIG_IPV6=y
  97. # IEEE Std 802.11r-2008 (Fast BSS Transition)
  98. #CONFIG_IEEE80211R=y
  99. # Use the hostapd's IEEE 802.11 authentication (ACL), but without
  100. # the IEEE 802.11 Management capability (e.g., madwifi or FreeBSD/net80211)
  101. #CONFIG_DRIVER_RADIUS_ACL=y
  102. # IEEE 802.11n (High Throughput) support
  103. #CONFIG_IEEE80211N=y
  104. # Remove debugging code that is printing out debug messages to stdout.
  105. # This can be used to reduce the size of the hostapd considerably if debugging
  106. # code is not needed.
  107. #CONFIG_NO_STDOUT_DEBUG=y
  108. # Add support for writing debug log to a file: -f /tmp/hostapd.log
  109. # Disabled by default.
  110. #CONFIG_DEBUG_FILE=y
  111. # Remove support for RADIUS accounting
  112. #CONFIG_NO_ACCOUNTING=y
  113. # Remove support for RADIUS
  114. #CONFIG_NO_RADIUS=y
  115. # Remove support for VLANs
  116. #CONFIG_NO_VLAN=y
  117. # Enable support for fully dynamic VLANs. This enables hostapd to
  118. # automatically create bridge and VLAN interfaces if necessary.
  119. #CONFIG_FULL_DYNAMIC_VLAN=y
  120. # Remove support for dumping state into a file on SIGUSR1 signal
  121. # This can be used to reduce binary size at the cost of disabling a debugging
  122. # option.
  123. #CONFIG_NO_DUMP_STATE=y
  124. # Enable tracing code for developer debugging
  125. # This tracks use of memory allocations and other registrations and reports
  126. # incorrect use with a backtrace of call (or allocation) location.
  127. #CONFIG_WPA_TRACE=y
  128. # For BSD, comment out these.
  129. #LIBS += -lexecinfo
  130. #LIBS_p += -lexecinfo
  131. #LIBS_c += -lexecinfo
  132. # Use libbfd to get more details for developer debugging
  133. # This enables use of libbfd to get more detailed symbols for the backtraces
  134. # generated by CONFIG_WPA_TRACE=y.
  135. #CONFIG_WPA_TRACE_BFD=y
  136. # For BSD, comment out these.
  137. #LIBS += -lbfd -liberty -lz
  138. #LIBS_p += -lbfd -liberty -lz
  139. #LIBS_c += -lbfd -liberty -lz
  140. # hostapd depends on strong random number generation being available from the
  141. # operating system. os_get_random() function is used to fetch random data when
  142. # needed, e.g., for key generation. On Linux and BSD systems, this works by
  143. # reading /dev/urandom. It should be noted that the OS entropy pool needs to be
  144. # properly initialized before hostapd is started. This is important especially
  145. # on embedded devices that do not have a hardware random number generator and
  146. # may by default start up with minimal entropy available for random number
  147. # generation.
  148. #
  149. # As a safety net, hostapd is by default trying to internally collect
  150. # additional entropy for generating random data to mix in with the data
  151. # fetched from the OS. This by itself is not considered to be very strong, but
  152. # it may help in cases where the system pool is not initialized properly.
  153. # However, it is very strongly recommended that the system pool is initialized
  154. # with enough entropy either by using hardware assisted random number
  155. # generator or by storing state over device reboots.
  156. #
  157. # hostapd can be configured to maintain its own entropy store over restarts to
  158. # enhance random number generation. This is not perfect, but it is much more
  159. # secure than using the same sequence of random numbers after every reboot.
  160. # This can be enabled with -e<entropy file> command line option. The specified
  161. # file needs to be readable and writable by hostapd.
  162. #
  163. # If the os_get_random() is known to provide strong random data (e.g., on
  164. # Linux/BSD, the board in question is known to have reliable source of random
  165. # data from /dev/urandom), the internal hostapd random pool can be disabled.
  166. # This will save some in binary size and CPU use. However, this should only be
  167. # considered for builds that are known to be used on devices that meet the
  168. # requirements described above.
  169. #CONFIG_NO_RANDOM_POOL=y
  170. # Select TLS implementation
  171. # openssl = OpenSSL (default)
  172. # gnutls = GnuTLS
  173. # internal = Internal TLSv1 implementation (experimental)
  174. # none = Empty template
  175. CONFIG_TLS=openssl
  176. # TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
  177. # can be enabled to get a stronger construction of messages when block ciphers
  178. # are used.
  179. #CONFIG_TLSV11=y
  180. # TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2)
  181. # can be enabled to enable use of stronger crypto algorithms.
  182. #CONFIG_TLSV12=y
  183. # If CONFIG_TLS=internal is used, additional library and include paths are
  184. # needed for LibTomMath. Alternatively, an integrated, minimal version of
  185. # LibTomMath can be used. See beginning of libtommath.c for details on benefits
  186. # and drawbacks of this option.
  187. #CONFIG_INTERNAL_LIBTOMMATH=y
  188. #ifndef CONFIG_INTERNAL_LIBTOMMATH
  189. #LTM_PATH=/usr/src/libtommath-0.39
  190. #CFLAGS += -I$(LTM_PATH)
  191. #LIBS += -L$(LTM_PATH)
  192. #LIBS_p += -L$(LTM_PATH)
  193. #endif
  194. # At the cost of about 4 kB of additional binary size, the internal LibTomMath
  195. # can be configured to include faster routines for exptmod, sqr, and div to
  196. # speed up DH and RSA calculation considerably
  197. #CONFIG_INTERNAL_LIBTOMMATH_FAST=y
  198. # Interworking (IEEE 802.11u)
  199. # This can be used to enable functionality to improve interworking with
  200. # external networks.
  201. #CONFIG_INTERWORKING=y