xref: /freebsd/contrib/wpa/hostapd/defconfig (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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
12# Driver interface for Host AP driver
13CONFIG_DRIVER_HOSTAP=y
14
15# Driver interface for wired authenticator
16#CONFIG_DRIVER_WIRED=y
17
18# Driver interface for drivers using the nl80211 kernel interface
19CONFIG_DRIVER_NL80211=y
20
21# QCA vendor extensions to nl80211
22#CONFIG_DRIVER_NL80211_QCA=y
23
24# driver_nl80211.c requires libnl. If you are compiling it yourself
25# you may need to point hostapd to your version of libnl.
26#
27#CFLAGS += -I$<path to libnl include files>
28#LIBS += -L$<path to libnl library files>
29
30# Use libnl v2.0 (or 3.0) libraries.
31#CONFIG_LIBNL20=y
32
33# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
34CONFIG_LIBNL32=y
35
36
37# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
38#CONFIG_DRIVER_BSD=y
39#CFLAGS += -I/usr/local/include
40#LIBS += -L/usr/local/lib
41#LIBS_p += -L/usr/local/lib
42#LIBS_c += -L/usr/local/lib
43
44# Driver interface for no driver (e.g., RADIUS server only)
45#CONFIG_DRIVER_NONE=y
46
47# WPA2/IEEE 802.11i RSN pre-authentication
48CONFIG_RSN_PREAUTH=y
49
50# Support Operating Channel Validation
51#CONFIG_OCV=y
52
53# Integrated EAP server
54CONFIG_EAP=y
55
56# EAP Re-authentication Protocol (ERP) in integrated EAP server
57CONFIG_ERP=y
58
59# EAP-MD5 for the integrated EAP server
60CONFIG_EAP_MD5=y
61
62# EAP-TLS for the integrated EAP server
63CONFIG_EAP_TLS=y
64
65# EAP-MSCHAPv2 for the integrated EAP server
66CONFIG_EAP_MSCHAPV2=y
67
68# EAP-PEAP for the integrated EAP server
69CONFIG_EAP_PEAP=y
70
71# EAP-GTC for the integrated EAP server
72CONFIG_EAP_GTC=y
73
74# EAP-TTLS for the integrated EAP server
75CONFIG_EAP_TTLS=y
76
77# EAP-SIM for the integrated EAP server
78#CONFIG_EAP_SIM=y
79
80# EAP-AKA for the integrated EAP server
81#CONFIG_EAP_AKA=y
82
83# EAP-AKA' for the integrated EAP server
84# This requires CONFIG_EAP_AKA to be enabled, too.
85#CONFIG_EAP_AKA_PRIME=y
86
87# EAP-PAX for the integrated EAP server
88#CONFIG_EAP_PAX=y
89
90# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
91#CONFIG_EAP_PSK=y
92
93# EAP-pwd for the integrated EAP server (secure authentication with a password)
94#CONFIG_EAP_PWD=y
95
96# EAP-SAKE for the integrated EAP server
97#CONFIG_EAP_SAKE=y
98
99# EAP-GPSK for the integrated EAP server
100#CONFIG_EAP_GPSK=y
101# Include support for optional SHA256 cipher suite in EAP-GPSK
102#CONFIG_EAP_GPSK_SHA256=y
103
104# EAP-FAST for the integrated EAP server
105#CONFIG_EAP_FAST=y
106
107# EAP-TEAP for the integrated EAP server
108# Note: The current EAP-TEAP implementation is experimental and should not be
109# enabled for production use. The IETF RFC 7170 that defines EAP-TEAP has number
110# of conflicting statements and missing details and the implementation has
111# vendor specific workarounds for those and as such, may not interoperate with
112# any other implementation. This should not be used for anything else than
113# experimentation and interoperability testing until those issues has been
114# resolved.
115#CONFIG_EAP_TEAP=y
116
117# Wi-Fi Protected Setup (WPS)
118#CONFIG_WPS=y
119# Enable UPnP support for external WPS Registrars
120#CONFIG_WPS_UPNP=y
121# Enable WPS support with NFC config method
122#CONFIG_WPS_NFC=y
123
124# EAP-IKEv2
125#CONFIG_EAP_IKEV2=y
126
127# Trusted Network Connect (EAP-TNC)
128#CONFIG_EAP_TNC=y
129
130# EAP-EKE for the integrated EAP server
131#CONFIG_EAP_EKE=y
132
133# PKCS#12 (PFX) support (used to read private key and certificate file from
134# a file that usually has extension .p12 or .pfx)
135CONFIG_PKCS12=y
136
137# RADIUS authentication server. This provides access to the integrated EAP
138# server from external hosts using RADIUS.
139#CONFIG_RADIUS_SERVER=y
140
141# Build IPv6 support for RADIUS operations
142CONFIG_IPV6=y
143
144# Include support fo RADIUS/TLS into the RADIUS client
145#CONFIG_RADIUS_TLS=y
146
147# IEEE Std 802.11r-2008 (Fast BSS Transition)
148#CONFIG_IEEE80211R=y
149
150# Use the hostapd's IEEE 802.11 authentication (ACL), but without
151# the IEEE 802.11 Management capability (e.g., FreeBSD/net80211)
152#CONFIG_DRIVER_RADIUS_ACL=y
153
154# Wireless Network Management (IEEE Std 802.11v-2011)
155# Note: This is experimental and not complete implementation.
156#CONFIG_WNM=y
157
158# IEEE 802.11ac (Very High Throughput) support
159#CONFIG_IEEE80211AC=y
160
161# IEEE 802.11ax HE support
162#CONFIG_IEEE80211AX=y
163
164# IEEE 802.11be EHT support
165# CONFIG_IEEE80211AX is mandatory for setting CONFIG_IEEE80211BE.
166# Note: This is experimental and work in progress. The definitions are still
167# subject to change and this should not be expected to interoperate with the
168# final IEEE 802.11be version.
169#CONFIG_IEEE80211BE=y
170
171# Simultaneous Authentication of Equals (SAE), WPA3-Personal
172#CONFIG_SAE=y
173
174# SAE Public Key, WPA3-Personal
175#CONFIG_SAE_PK=y
176
177# Remove debugging code that is printing out debug messages to stdout.
178# This can be used to reduce the size of the hostapd considerably if debugging
179# code is not needed.
180#CONFIG_NO_STDOUT_DEBUG=y
181
182# Add support for writing debug log to a file: -f /tmp/hostapd.log
183# Disabled by default.
184#CONFIG_DEBUG_FILE=y
185
186# Send debug messages to syslog instead of stdout
187#CONFIG_DEBUG_SYSLOG=y
188
189# Add support for sending all debug messages (regardless of debug verbosity)
190# to the Linux kernel tracing facility. This helps debug the entire stack by
191# making it easy to record everything happening from the driver up into the
192# same file, e.g., using trace-cmd.
193#CONFIG_DEBUG_LINUX_TRACING=y
194
195# Remove support for RADIUS accounting
196#CONFIG_NO_ACCOUNTING=y
197
198# Remove support for RADIUS
199#CONFIG_NO_RADIUS=y
200
201# Remove support for VLANs
202#CONFIG_NO_VLAN=y
203
204# Enable support for fully dynamic VLANs. This enables hostapd to
205# automatically create bridge and VLAN interfaces if necessary.
206#CONFIG_FULL_DYNAMIC_VLAN=y
207
208# Use netlink-based kernel API for VLAN operations instead of ioctl()
209# Note: This requires libnl 3.1 or newer.
210#CONFIG_VLAN_NETLINK=y
211
212# Remove support for dumping internal state through control interface commands
213# This can be used to reduce binary size at the cost of disabling a debugging
214# option.
215#CONFIG_NO_DUMP_STATE=y
216
217# Enable tracing code for developer debugging
218# This tracks use of memory allocations and other registrations and reports
219# incorrect use with a backtrace of call (or allocation) location.
220#CONFIG_WPA_TRACE=y
221# For BSD, comment out these.
222#LIBS += -lexecinfo
223#LIBS_p += -lexecinfo
224#LIBS_c += -lexecinfo
225
226# Use libbfd to get more details for developer debugging
227# This enables use of libbfd to get more detailed symbols for the backtraces
228# generated by CONFIG_WPA_TRACE=y.
229#CONFIG_WPA_TRACE_BFD=y
230# For BSD, comment out these.
231#LIBS += -lbfd -liberty -lz
232#LIBS_p += -lbfd -liberty -lz
233#LIBS_c += -lbfd -liberty -lz
234
235# hostapd depends on strong random number generation being available from the
236# operating system. os_get_random() function is used to fetch random data when
237# needed, e.g., for key generation. On Linux and BSD systems, this works by
238# reading /dev/urandom. It should be noted that the OS entropy pool needs to be
239# properly initialized before hostapd is started. This is important especially
240# on embedded devices that do not have a hardware random number generator and
241# may by default start up with minimal entropy available for random number
242# generation.
243#
244# As a safety net, hostapd is by default trying to internally collect
245# additional entropy for generating random data to mix in with the data
246# fetched from the OS. This by itself is not considered to be very strong, but
247# it may help in cases where the system pool is not initialized properly.
248# However, it is very strongly recommended that the system pool is initialized
249# with enough entropy either by using hardware assisted random number
250# generator or by storing state over device reboots.
251#
252# hostapd can be configured to maintain its own entropy store over restarts to
253# enhance random number generation. This is not perfect, but it is much more
254# secure than using the same sequence of random numbers after every reboot.
255# This can be enabled with -e<entropy file> command line option. The specified
256# file needs to be readable and writable by hostapd.
257#
258# If the os_get_random() is known to provide strong random data (e.g., on
259# Linux/BSD, the board in question is known to have reliable source of random
260# data from /dev/urandom), the internal hostapd random pool can be disabled.
261# This will save some in binary size and CPU use. However, this should only be
262# considered for builds that are known to be used on devices that meet the
263# requirements described above.
264#CONFIG_NO_RANDOM_POOL=y
265
266# Should we attempt to use the getrandom(2) call that provides more reliable
267# yet secure randomness source than /dev/random on Linux 3.17 and newer.
268# Requires glibc 2.25 to build, falls back to /dev/random if unavailable.
269#CONFIG_GETRANDOM=y
270
271# Should we use poll instead of select? Select is used by default.
272#CONFIG_ELOOP_POLL=y
273
274# Should we use epoll instead of select? Select is used by default.
275#CONFIG_ELOOP_EPOLL=y
276
277# Should we use kqueue instead of select? Select is used by default.
278#CONFIG_ELOOP_KQUEUE=y
279
280# Select TLS implementation
281# openssl = OpenSSL (default)
282# gnutls = GnuTLS
283# internal = Internal TLSv1 implementation (experimental)
284# linux = Linux kernel AF_ALG and internal TLSv1 implementation (experimental)
285# none = Empty template
286#CONFIG_TLS=openssl
287
288# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
289# can be enabled to get a stronger construction of messages when block ciphers
290# are used.
291#CONFIG_TLSV11=y
292
293# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2)
294# can be enabled to enable use of stronger crypto algorithms.
295#CONFIG_TLSV12=y
296
297# Select which ciphers to use by default with OpenSSL if the user does not
298# specify them.
299#CONFIG_TLS_DEFAULT_CIPHERS="DEFAULT:!EXP:!LOW"
300
301# If CONFIG_TLS=internal is used, additional library and include paths are
302# needed for LibTomMath. Alternatively, an integrated, minimal version of
303# LibTomMath can be used. See beginning of libtommath.c for details on benefits
304# and drawbacks of this option.
305#CONFIG_INTERNAL_LIBTOMMATH=y
306#ifndef CONFIG_INTERNAL_LIBTOMMATH
307#LTM_PATH=/usr/src/libtommath-0.39
308#CFLAGS += -I$(LTM_PATH)
309#LIBS += -L$(LTM_PATH)
310#LIBS_p += -L$(LTM_PATH)
311#endif
312# At the cost of about 4 kB of additional binary size, the internal LibTomMath
313# can be configured to include faster routines for exptmod, sqr, and div to
314# speed up DH and RSA calculation considerably
315#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
316
317# Interworking (IEEE 802.11u)
318# This can be used to enable functionality to improve interworking with
319# external networks.
320#CONFIG_INTERWORKING=y
321
322# Hotspot 2.0
323#CONFIG_HS20=y
324
325# Enable SQLite database support in hlr_auc_gw, EAP-SIM DB, and eap_user_file
326#CONFIG_SQLITE=y
327
328# Enable Fast Session Transfer (FST)
329#CONFIG_FST=y
330
331# Enable CLI commands for FST testing
332#CONFIG_FST_TEST=y
333
334# Testing options
335# This can be used to enable some testing options (see also the example
336# configuration file) that are really useful only for testing clients that
337# connect to this hostapd. These options allow, for example, to drop a
338# certain percentage of probe requests or auth/(re)assoc frames.
339#
340#CONFIG_TESTING_OPTIONS=y
341
342# Automatic Channel Selection
343# This will allow hostapd to pick the channel automatically when channel is set
344# to "acs_survey" or "0". Eventually, other ACS algorithms can be added in
345# similar way.
346#
347# Automatic selection is currently only done through initialization, later on
348# we hope to do background checks to keep us moving to more ideal channels as
349# time goes by. ACS is currently only supported through the nl80211 driver and
350# your driver must have survey dump capability that is filled by the driver
351# during scanning.
352#
353# You can customize the ACS survey algorithm with the hostapd.conf variable
354# acs_num_scans.
355#
356# Supported ACS drivers:
357# * ath9k
358# * ath5k
359# * ath10k
360#
361# For more details refer to:
362# https://wireless.wiki.kernel.org/en/users/documentation/acs
363#
364#CONFIG_ACS=y
365
366# Multiband Operation support
367# These extensions facilitate efficient use of multiple frequency bands
368# available to the AP and the devices that may associate with it.
369#CONFIG_MBO=y
370
371# Client Taxonomy
372# Has the AP retain the Probe Request and (Re)Association Request frames from
373# a client, from which a signature can be produced which can identify the model
374# of client device like "Nexus 6P" or "iPhone 5s".
375#CONFIG_TAXONOMY=y
376
377# Fast Initial Link Setup (FILS) (IEEE 802.11ai)
378#CONFIG_FILS=y
379# FILS shared key authentication with PFS
380#CONFIG_FILS_SK_PFS=y
381
382# Include internal line edit mode in hostapd_cli. This can be used to provide
383# limited command line editing and history support.
384#CONFIG_WPA_CLI_EDIT=y
385
386# Opportunistic Wireless Encryption (OWE)
387# Experimental implementation of draft-harkins-owe-07.txt
388#CONFIG_OWE=y
389
390# Airtime policy support
391#CONFIG_AIRTIME_POLICY=y
392
393# Override default value for the wpa_disable_eapol_key_retries configuration
394# parameter. See that parameter in hostapd.conf for more details.
395#CFLAGS += -DDEFAULT_WPA_DISABLE_EAPOL_KEY_RETRIES=1
396
397# Wired equivalent privacy (WEP)
398# WEP is an obsolete cryptographic data confidentiality algorithm that is not
399# considered secure. It should not be used for anything anymore. The
400# functionality needed to use WEP is available in the current hostapd
401# release under this optional build parameter. This functionality is subject to
402# be completely removed in a future release.
403#CONFIG_WEP=y
404
405# Remove all TKIP functionality
406# TKIP is an old cryptographic data confidentiality algorithm that is not
407# considered secure. It should not be used anymore. For now, the default hostapd
408# build includes this to allow mixed mode WPA+WPA2 networks to be enabled, but
409# that functionality is subject to be removed in the future.
410#CONFIG_NO_TKIP=y
411
412# Pre-Association Security Negotiation (PASN)
413# Experimental implementation based on IEEE P802.11z/D2.6 and the protocol
414# design is still subject to change. As such, this should not yet be enabled in
415# production use.
416#CONFIG_PASN=y
417
418# Device Provisioning Protocol (DPP) (also known as Wi-Fi Easy Connect)
419CONFIG_DPP=y
420# DPP version 2 support
421CONFIG_DPP2=y
422# DPP version 3 support (experimental and still changing; do not enable for
423# production use)
424#CONFIG_DPP3=y
425
426# Wi-Fi Aware unsynchronized service discovery (NAN USD)
427#CONFIG_NAN_USD=y
428