139beb93cSSam Leffler# Example wpa_supplicant build time configuration 239beb93cSSam Leffler# 339beb93cSSam Leffler# This file lists the configuration options that are used when building the 485732ac8SCy Schubert# wpa_supplicant binary. All lines starting with # are ignored. Configuration 585732ac8SCy Schubert# option lines must be commented out complete, if they are not to be included, 685732ac8SCy Schubert# i.e., just setting VARIABLE=n is not disabling that variable. 739beb93cSSam Leffler# 839beb93cSSam Leffler# This file is included in Makefile, so variables like CFLAGS and LIBS can also 939beb93cSSam Leffler# be modified from here. In most cases, these lines should use += in order not 1039beb93cSSam Leffler# to override previous values of the variables. 1139beb93cSSam Leffler 1239beb93cSSam Leffler 1339beb93cSSam Leffler# Uncomment following two lines and fix the paths if you have installed OpenSSL 1439beb93cSSam Leffler# or GnuTLS in non-default location 1539beb93cSSam Leffler#CFLAGS += -I/usr/local/openssl/include 1639beb93cSSam Leffler#LIBS += -L/usr/local/openssl/lib 1739beb93cSSam Leffler 1839beb93cSSam Leffler# Some Red Hat versions seem to include kerberos header files from OpenSSL, but 1939beb93cSSam Leffler# the kerberos files are not in the default include path. Following line can be 2039beb93cSSam Leffler# used to fix build issues on such systems (krb5.h not found). 2139beb93cSSam Leffler#CFLAGS += -I/usr/include/kerberos 2239beb93cSSam Leffler 2339beb93cSSam Leffler# Driver interface for generic Linux wireless extensions 24f05cddf9SRui Paulo# Note: WEXT is deprecated in the current Linux kernel version and no new 25f05cddf9SRui Paulo# functionality is added to it. nl80211-based interface is the new 26f05cddf9SRui Paulo# replacement for WEXT and its use allows wpa_supplicant to properly control 27f05cddf9SRui Paulo# the driver to improve existing functionality like roaming and to support new 28f05cddf9SRui Paulo# functionality. 2939beb93cSSam LefflerCONFIG_DRIVER_WEXT=y 3039beb93cSSam Leffler 3139beb93cSSam Leffler# Driver interface for Linux drivers using the nl80211 kernel interface 32f05cddf9SRui PauloCONFIG_DRIVER_NL80211=y 3339beb93cSSam Leffler 34780fb4a2SCy Schubert# QCA vendor extensions to nl80211 35780fb4a2SCy Schubert#CONFIG_DRIVER_NL80211_QCA=y 36780fb4a2SCy Schubert 375b9c547cSRui Paulo# driver_nl80211.c requires libnl. If you are compiling it yourself 385b9c547cSRui Paulo# you may need to point hostapd to your version of libnl. 395b9c547cSRui Paulo# 405b9c547cSRui Paulo#CFLAGS += -I$<path to libnl include files> 415b9c547cSRui Paulo#LIBS += -L$<path to libnl library files> 425b9c547cSRui Paulo 435b9c547cSRui Paulo# Use libnl v2.0 (or 3.0) libraries. 445b9c547cSRui Paulo#CONFIG_LIBNL20=y 455b9c547cSRui Paulo 465b9c547cSRui Paulo# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored) 4785732ac8SCy SchubertCONFIG_LIBNL32=y 485b9c547cSRui Paulo 495b9c547cSRui Paulo 5039beb93cSSam Leffler# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver) 5139beb93cSSam Leffler#CONFIG_DRIVER_BSD=y 5239beb93cSSam Leffler#CFLAGS += -I/usr/local/include 5339beb93cSSam Leffler#LIBS += -L/usr/local/lib 54e28a4053SRui Paulo#LIBS_p += -L/usr/local/lib 55e28a4053SRui Paulo#LIBS_c += -L/usr/local/lib 5639beb93cSSam Leffler 5739beb93cSSam Leffler# Driver interface for Windows NDIS 5839beb93cSSam Leffler#CONFIG_DRIVER_NDIS=y 5939beb93cSSam Leffler#CFLAGS += -I/usr/include/w32api/ddk 6039beb93cSSam Leffler#LIBS += -L/usr/local/lib 6139beb93cSSam Leffler# For native build using mingw 6239beb93cSSam Leffler#CONFIG_NATIVE_WINDOWS=y 6339beb93cSSam Leffler# Additional directories for cross-compilation on Linux host for mingw target 6439beb93cSSam Leffler#CFLAGS += -I/opt/mingw/mingw32/include/ddk 6539beb93cSSam Leffler#LIBS += -L/opt/mingw/mingw32/lib 6639beb93cSSam Leffler#CC=mingw32-gcc 6739beb93cSSam Leffler# By default, driver_ndis uses WinPcap for low-level operations. This can be 6839beb93cSSam Leffler# replaced with the following option which replaces WinPcap calls with NDISUIO. 6939beb93cSSam Leffler# However, this requires that WZC is disabled (net stop wzcsvc) before starting 7039beb93cSSam Leffler# wpa_supplicant. 7139beb93cSSam Leffler# CONFIG_USE_NDISUIO=y 7239beb93cSSam Leffler 7339beb93cSSam Leffler# Driver interface for wired Ethernet drivers 7439beb93cSSam LefflerCONFIG_DRIVER_WIRED=y 7539beb93cSSam Leffler 7685732ac8SCy Schubert# Driver interface for MACsec capable Qualcomm Atheros drivers 7785732ac8SCy Schubert#CONFIG_DRIVER_MACSEC_QCA=y 7885732ac8SCy Schubert 7985732ac8SCy Schubert# Driver interface for Linux MACsec drivers 80c1d255d3SCy SchubertCONFIG_DRIVER_MACSEC_LINUX=y 8185732ac8SCy Schubert 8239beb93cSSam Leffler# Driver interface for the Broadcom RoboSwitch family 8339beb93cSSam Leffler#CONFIG_DRIVER_ROBOSWITCH=y 8439beb93cSSam Leffler 85e28a4053SRui Paulo# Driver interface for no driver (e.g., WPS ER only) 86e28a4053SRui Paulo#CONFIG_DRIVER_NONE=y 87e28a4053SRui Paulo 88f05cddf9SRui Paulo# Solaris libraries 89f05cddf9SRui Paulo#LIBS += -lsocket -ldlpi -lnsl 90f05cddf9SRui Paulo#LIBS_c += -lsocket 91f05cddf9SRui Paulo 9285732ac8SCy Schubert# Enable IEEE 802.1X Supplicant (automatically included if any EAP method or 9385732ac8SCy Schubert# MACsec is included) 9439beb93cSSam LefflerCONFIG_IEEE8021X_EAPOL=y 9539beb93cSSam Leffler 9639beb93cSSam Leffler# EAP-MD5 9739beb93cSSam LefflerCONFIG_EAP_MD5=y 9839beb93cSSam Leffler 9939beb93cSSam Leffler# EAP-MSCHAPv2 10039beb93cSSam LefflerCONFIG_EAP_MSCHAPV2=y 10139beb93cSSam Leffler 10239beb93cSSam Leffler# EAP-TLS 10339beb93cSSam LefflerCONFIG_EAP_TLS=y 104*a90b9d01SCy Schubert# Enable EAP-TLSv1.3 support by default (currently disabled unless explicitly 105*a90b9d01SCy Schubert# enabled in network configuration) 106*a90b9d01SCy Schubert#CONFIG_EAP_TLSV1_3=y 10739beb93cSSam Leffler 10839beb93cSSam Leffler# EAL-PEAP 10939beb93cSSam LefflerCONFIG_EAP_PEAP=y 11039beb93cSSam Leffler 11139beb93cSSam Leffler# EAP-TTLS 11239beb93cSSam LefflerCONFIG_EAP_TTLS=y 11339beb93cSSam Leffler 11439beb93cSSam Leffler# EAP-FAST 1154bc52338SCy SchubertCONFIG_EAP_FAST=y 11639beb93cSSam Leffler 117206b73d0SCy Schubert# EAP-TEAP 118206b73d0SCy Schubert# Note: The current EAP-TEAP implementation is experimental and should not be 119206b73d0SCy Schubert# enabled for production use. The IETF RFC 7170 that defines EAP-TEAP has number 120206b73d0SCy Schubert# of conflicting statements and missing details and the implementation has 121206b73d0SCy Schubert# vendor specific workarounds for those and as such, may not interoperate with 122206b73d0SCy Schubert# any other implementation. This should not be used for anything else than 123206b73d0SCy Schubert# experimentation and interoperability testing until those issues has been 124206b73d0SCy Schubert# resolved. 125206b73d0SCy Schubert#CONFIG_EAP_TEAP=y 126206b73d0SCy Schubert 12739beb93cSSam Leffler# EAP-GTC 12839beb93cSSam LefflerCONFIG_EAP_GTC=y 12939beb93cSSam Leffler 13039beb93cSSam Leffler# EAP-OTP 13139beb93cSSam LefflerCONFIG_EAP_OTP=y 13239beb93cSSam Leffler 13339beb93cSSam Leffler# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used) 13439beb93cSSam Leffler#CONFIG_EAP_SIM=y 13539beb93cSSam Leffler 136206b73d0SCy Schubert# Enable SIM simulator (Milenage) for EAP-SIM 137206b73d0SCy Schubert#CONFIG_SIM_SIMULATOR=y 138206b73d0SCy Schubert 13939beb93cSSam Leffler# EAP-PSK (experimental; this is _not_ needed for WPA-PSK) 14039beb93cSSam Leffler#CONFIG_EAP_PSK=y 14139beb93cSSam Leffler 142f05cddf9SRui Paulo# EAP-pwd (secure authentication using only a password) 1434bc52338SCy SchubertCONFIG_EAP_PWD=y 144f05cddf9SRui Paulo 14539beb93cSSam Leffler# EAP-PAX 1464bc52338SCy SchubertCONFIG_EAP_PAX=y 14739beb93cSSam Leffler 14839beb93cSSam Leffler# LEAP 14939beb93cSSam LefflerCONFIG_EAP_LEAP=y 15039beb93cSSam Leffler 15139beb93cSSam Leffler# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used) 15239beb93cSSam Leffler#CONFIG_EAP_AKA=y 15339beb93cSSam Leffler 15439beb93cSSam Leffler# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used). 15539beb93cSSam Leffler# This requires CONFIG_EAP_AKA to be enabled, too. 15639beb93cSSam Leffler#CONFIG_EAP_AKA_PRIME=y 15739beb93cSSam Leffler 15839beb93cSSam Leffler# Enable USIM simulator (Milenage) for EAP-AKA 15939beb93cSSam Leffler#CONFIG_USIM_SIMULATOR=y 16039beb93cSSam Leffler 16139beb93cSSam Leffler# EAP-SAKE 1624bc52338SCy SchubertCONFIG_EAP_SAKE=y 16339beb93cSSam Leffler 16439beb93cSSam Leffler# EAP-GPSK 1654bc52338SCy SchubertCONFIG_EAP_GPSK=y 16639beb93cSSam Leffler# Include support for optional SHA256 cipher suite in EAP-GPSK 1674bc52338SCy SchubertCONFIG_EAP_GPSK_SHA256=y 16839beb93cSSam Leffler 16939beb93cSSam Leffler# EAP-TNC and related Trusted Network Connect support (experimental) 1704bc52338SCy SchubertCONFIG_EAP_TNC=y 17139beb93cSSam Leffler 17239beb93cSSam Leffler# Wi-Fi Protected Setup (WPS) 1734bc52338SCy SchubertCONFIG_WPS=y 174f05cddf9SRui Paulo# Enable WPS external registrar functionality 175f05cddf9SRui Paulo#CONFIG_WPS_ER=y 176f05cddf9SRui Paulo# Disable credentials for an open network by default when acting as a WPS 177f05cddf9SRui Paulo# registrar. 178f05cddf9SRui Paulo#CONFIG_WPS_REG_DISABLE_OPEN=y 179f05cddf9SRui Paulo# Enable WPS support with NFC config method 180f05cddf9SRui Paulo#CONFIG_WPS_NFC=y 18139beb93cSSam Leffler 18239beb93cSSam Leffler# EAP-IKEv2 1834bc52338SCy SchubertCONFIG_EAP_IKEV2=y 18439beb93cSSam Leffler 1855b9c547cSRui Paulo# EAP-EKE 1865b9c547cSRui Paulo#CONFIG_EAP_EKE=y 1875b9c547cSRui Paulo 18885732ac8SCy Schubert# MACsec 189c1d255d3SCy SchubertCONFIG_MACSEC=y 19085732ac8SCy Schubert 19139beb93cSSam Leffler# PKCS#12 (PFX) support (used to read private key and certificate file from 19239beb93cSSam Leffler# a file that usually has extension .p12 or .pfx) 19339beb93cSSam LefflerCONFIG_PKCS12=y 19439beb93cSSam Leffler 19539beb93cSSam Leffler# Smartcard support (i.e., private key on a smartcard), e.g., with openssl 19639beb93cSSam Leffler# engine. 19739beb93cSSam LefflerCONFIG_SMARTCARD=y 19839beb93cSSam Leffler 19939beb93cSSam Leffler# PC/SC interface for smartcards (USIM, GSM SIM) 20039beb93cSSam Leffler# Enable this if EAP-SIM or EAP-AKA is included 20139beb93cSSam Leffler#CONFIG_PCSC=y 20239beb93cSSam Leffler 203f05cddf9SRui Paulo# Support HT overrides (disable HT/HT40, mask MCS rates, etc.) 204f05cddf9SRui Paulo#CONFIG_HT_OVERRIDES=y 205f05cddf9SRui Paulo 2065b9c547cSRui Paulo# Support VHT overrides (disable VHT, mask MCS rates, etc.) 2075b9c547cSRui Paulo#CONFIG_VHT_OVERRIDES=y 2085b9c547cSRui Paulo 209*a90b9d01SCy Schubert# Support HE overrides 210*a90b9d01SCy Schubert#CONFIG_HE_OVERRIDES=y 211*a90b9d01SCy Schubert 21239beb93cSSam Leffler# Development testing 21339beb93cSSam Leffler#CONFIG_EAPOL_TEST=y 21439beb93cSSam Leffler 215*a90b9d01SCy Schubert# Support IPv6 216*a90b9d01SCy SchubertCONFIG_IPV6=y 217*a90b9d01SCy Schubert 21839beb93cSSam Leffler# Select control interface backend for external programs, e.g, wpa_cli: 21939beb93cSSam Leffler# unix = UNIX domain sockets (default for Linux/*BSD) 22039beb93cSSam Leffler# udp = UDP sockets using localhost (127.0.0.1) 2215b9c547cSRui Paulo# udp6 = UDP IPv6 sockets using localhost (::1) 22239beb93cSSam Leffler# named_pipe = Windows Named Pipe (default for Windows) 223f05cddf9SRui Paulo# udp-remote = UDP sockets with remote access (only for tests systems/purpose) 2245b9c547cSRui Paulo# udp6-remote = UDP IPv6 sockets with remote access (only for tests purpose) 22539beb93cSSam Leffler# y = use default (backwards compatibility) 22639beb93cSSam Leffler# If this option is commented out, control interface is not included in the 22739beb93cSSam Leffler# build. 22839beb93cSSam LefflerCONFIG_CTRL_IFACE=y 22939beb93cSSam Leffler 23039beb93cSSam Leffler# Include support for GNU Readline and History Libraries in wpa_cli. 23139beb93cSSam Leffler# When building a wpa_cli binary for distribution, please note that these 23239beb93cSSam Leffler# libraries are licensed under GPL and as such, BSD license may not apply for 23339beb93cSSam Leffler# the resulting binary. 23439beb93cSSam Leffler#CONFIG_READLINE=y 23539beb93cSSam Leffler 236f05cddf9SRui Paulo# Include internal line edit mode in wpa_cli. This can be used as a replacement 237f05cddf9SRui Paulo# for GNU Readline to provide limited command line editing and history support. 238f05cddf9SRui Paulo#CONFIG_WPA_CLI_EDIT=y 239f05cddf9SRui Paulo 24039beb93cSSam Leffler# Remove debugging code that is printing out debug message to stdout. 24139beb93cSSam Leffler# This can be used to reduce the size of the wpa_supplicant considerably 24239beb93cSSam Leffler# if debugging code is not needed. The size reduction can be around 35% 24339beb93cSSam Leffler# (e.g., 90 kB). 24439beb93cSSam Leffler#CONFIG_NO_STDOUT_DEBUG=y 24539beb93cSSam Leffler 24639beb93cSSam Leffler# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save 24739beb93cSSam Leffler# 35-50 kB in code size. 24839beb93cSSam Leffler#CONFIG_NO_WPA=y 24939beb93cSSam Leffler 25039beb93cSSam Leffler# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support 25139beb93cSSam Leffler# This option can be used to reduce code size by removing support for 25239beb93cSSam Leffler# converting ASCII passphrases into PSK. If this functionality is removed, the 25339beb93cSSam Leffler# PSK can only be configured as the 64-octet hexstring (e.g., from 25439beb93cSSam Leffler# wpa_passphrase). This saves about 0.5 kB in code size. 25539beb93cSSam Leffler#CONFIG_NO_WPA_PASSPHRASE=y 25639beb93cSSam Leffler 2574bc52338SCy Schubert# Simultaneous Authentication of Equals (SAE), WPA3-Personal 2584bc52338SCy SchubertCONFIG_SAE=y 2594bc52338SCy Schubert 260*a90b9d01SCy Schubert# SAE Public Key, WPA3-Personal 261*a90b9d01SCy Schubert#CONFIG_SAE_PK=y 262*a90b9d01SCy Schubert 263c1d255d3SCy Schubert# Disable scan result processing (ap_scan=1) to save code size by about 1 kB. 26439beb93cSSam Leffler# This can be used if ap_scan=1 mode is never enabled. 26539beb93cSSam Leffler#CONFIG_NO_SCAN_PROCESSING=y 26639beb93cSSam Leffler 26739beb93cSSam Leffler# Select configuration backend: 26839beb93cSSam Leffler# file = text file (e.g., wpa_supplicant.conf; note: the configuration file 26939beb93cSSam Leffler# path is given on command line, not here; this option is just used to 27039beb93cSSam Leffler# select the backend that allows configuration files to be used) 27139beb93cSSam Leffler# winreg = Windows registry (see win_example.reg for an example) 27239beb93cSSam LefflerCONFIG_BACKEND=file 27339beb93cSSam Leffler 27439beb93cSSam Leffler# Remove configuration write functionality (i.e., to allow the configuration 27539beb93cSSam Leffler# file to be updated based on runtime configuration changes). The runtime 27639beb93cSSam Leffler# configuration can still be changed, the changes are just not going to be 27739beb93cSSam Leffler# persistent over restarts. This option can be used to reduce code size by 27839beb93cSSam Leffler# about 3.5 kB. 27939beb93cSSam Leffler#CONFIG_NO_CONFIG_WRITE=y 28039beb93cSSam Leffler 28139beb93cSSam Leffler# Remove support for configuration blobs to reduce code size by about 1.5 kB. 28239beb93cSSam Leffler#CONFIG_NO_CONFIG_BLOBS=y 28339beb93cSSam Leffler 28439beb93cSSam Leffler# Select program entry point implementation: 28539beb93cSSam Leffler# main = UNIX/POSIX like main() function (default) 28639beb93cSSam Leffler# main_winsvc = Windows service (read parameters from registry) 28739beb93cSSam Leffler# main_none = Very basic example (development use only) 28839beb93cSSam Leffler#CONFIG_MAIN=main 28939beb93cSSam Leffler 2905b9c547cSRui Paulo# Select wrapper for operating system and C library specific functions 29139beb93cSSam Leffler# unix = UNIX/POSIX like systems (default) 29239beb93cSSam Leffler# win32 = Windows systems 29339beb93cSSam Leffler# none = Empty template 29439beb93cSSam Leffler#CONFIG_OS=unix 29539beb93cSSam Leffler 29639beb93cSSam Leffler# Select event loop implementation 29739beb93cSSam Leffler# eloop = select() loop (default) 29839beb93cSSam Leffler# eloop_win = Windows events and WaitForMultipleObject() loop 29939beb93cSSam Leffler#CONFIG_ELOOP=eloop 30039beb93cSSam Leffler 301f05cddf9SRui Paulo# Should we use poll instead of select? Select is used by default. 302f05cddf9SRui Paulo#CONFIG_ELOOP_POLL=y 303f05cddf9SRui Paulo 3045b9c547cSRui Paulo# Should we use epoll instead of select? Select is used by default. 3055b9c547cSRui Paulo#CONFIG_ELOOP_EPOLL=y 3065b9c547cSRui Paulo 307780fb4a2SCy Schubert# Should we use kqueue instead of select? Select is used by default. 308780fb4a2SCy Schubert#CONFIG_ELOOP_KQUEUE=y 309780fb4a2SCy Schubert 31039beb93cSSam Leffler# Select layer 2 packet implementation 31139beb93cSSam Leffler# linux = Linux packet socket (default) 31239beb93cSSam Leffler# pcap = libpcap/libdnet/WinPcap 31339beb93cSSam Leffler# freebsd = FreeBSD libpcap 31439beb93cSSam Leffler# winpcap = WinPcap with receive thread 31539beb93cSSam Leffler# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y) 31639beb93cSSam Leffler# none = Empty template 31739beb93cSSam Leffler#CONFIG_L2_PACKET=linux 31839beb93cSSam Leffler 319780fb4a2SCy Schubert# Disable Linux packet socket workaround applicable for station interface 320780fb4a2SCy Schubert# in a bridge for EAPOL frames. This should be uncommented only if the kernel 321780fb4a2SCy Schubert# is known to not have the regression issue in packet socket behavior with 322780fb4a2SCy Schubert# bridge interfaces (commit 'bridge: respect RFC2863 operational state')'). 323780fb4a2SCy Schubert#CONFIG_NO_LINUX_PACKET_SOCKET_WAR=y 324780fb4a2SCy Schubert 3254bc52338SCy Schubert# Support Operating Channel Validation 3264bc52338SCy Schubert#CONFIG_OCV=y 32739beb93cSSam Leffler 32839beb93cSSam Leffler# Select TLS implementation 32939beb93cSSam Leffler# openssl = OpenSSL (default) 330f05cddf9SRui Paulo# gnutls = GnuTLS 33139beb93cSSam Leffler# internal = Internal TLSv1 implementation (experimental) 33285732ac8SCy Schubert# linux = Linux kernel AF_ALG and internal TLSv1 implementation (experimental) 33339beb93cSSam Leffler# none = Empty template 33439beb93cSSam Leffler#CONFIG_TLS=openssl 33539beb93cSSam Leffler 336f05cddf9SRui Paulo# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1) 337f05cddf9SRui Paulo# can be enabled to get a stronger construction of messages when block ciphers 338f05cddf9SRui Paulo# are used. It should be noted that some existing TLS v1.0 -based 339f05cddf9SRui Paulo# implementation may not be compatible with TLS v1.1 message (ClientHello is 340f05cddf9SRui Paulo# sent prior to negotiating which version will be used) 341f05cddf9SRui Paulo#CONFIG_TLSV11=y 342f05cddf9SRui Paulo 343f05cddf9SRui Paulo# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2) 344f05cddf9SRui Paulo# can be enabled to enable use of stronger crypto algorithms. It should be 345f05cddf9SRui Paulo# noted that some existing TLS v1.0 -based implementation may not be compatible 346f05cddf9SRui Paulo# with TLS v1.2 message (ClientHello is sent prior to negotiating which version 347f05cddf9SRui Paulo# will be used) 348f05cddf9SRui Paulo#CONFIG_TLSV12=y 34939beb93cSSam Leffler 35085732ac8SCy Schubert# Select which ciphers to use by default with OpenSSL if the user does not 35185732ac8SCy Schubert# specify them. 35285732ac8SCy Schubert#CONFIG_TLS_DEFAULT_CIPHERS="DEFAULT:!EXP:!LOW" 35385732ac8SCy Schubert 35439beb93cSSam Leffler# If CONFIG_TLS=internal is used, additional library and include paths are 35539beb93cSSam Leffler# needed for LibTomMath. Alternatively, an integrated, minimal version of 35639beb93cSSam Leffler# LibTomMath can be used. See beginning of libtommath.c for details on benefits 35739beb93cSSam Leffler# and drawbacks of this option. 35839beb93cSSam Leffler#CONFIG_INTERNAL_LIBTOMMATH=y 35939beb93cSSam Leffler#ifndef CONFIG_INTERNAL_LIBTOMMATH 36039beb93cSSam Leffler#LTM_PATH=/usr/src/libtommath-0.39 36139beb93cSSam Leffler#CFLAGS += -I$(LTM_PATH) 36239beb93cSSam Leffler#LIBS += -L$(LTM_PATH) 36339beb93cSSam Leffler#LIBS_p += -L$(LTM_PATH) 36439beb93cSSam Leffler#endif 36539beb93cSSam Leffler# At the cost of about 4 kB of additional binary size, the internal LibTomMath 36639beb93cSSam Leffler# can be configured to include faster routines for exptmod, sqr, and div to 36739beb93cSSam Leffler# speed up DH and RSA calculation considerably 36839beb93cSSam Leffler#CONFIG_INTERNAL_LIBTOMMATH_FAST=y 36939beb93cSSam Leffler 37039beb93cSSam Leffler# Include NDIS event processing through WMI into wpa_supplicant/wpasvc. 37139beb93cSSam Leffler# This is only for Windows builds and requires WMI-related header files and 37239beb93cSSam Leffler# WbemUuid.Lib from Platform SDK even when building with MinGW. 37339beb93cSSam Leffler#CONFIG_NDIS_EVENTS_INTEGRATED=y 37439beb93cSSam Leffler#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib" 37539beb93cSSam Leffler 376e28a4053SRui Paulo# Add support for new DBus control interface 377c1d255d3SCy Schubert# (fi.w1.wpa_supplicant1) 3784bc52338SCy SchubertCONFIG_CTRL_IFACE_DBUS_NEW=y 379e28a4053SRui Paulo 380e28a4053SRui Paulo# Add introspection support for new DBus control interface 3814bc52338SCy SchubertCONFIG_CTRL_IFACE_DBUS_INTRO=y 382e28a4053SRui Paulo 38339beb93cSSam Leffler# Add support for loading EAP methods dynamically as shared libraries. 38439beb93cSSam Leffler# When this option is enabled, each EAP method can be either included 38539beb93cSSam Leffler# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn). 38639beb93cSSam Leffler# Dynamic EAP methods are build as shared objects (eap_*.so) and they need to 38739beb93cSSam Leffler# be loaded in the beginning of the wpa_supplicant configuration file 38839beb93cSSam Leffler# (see load_dynamic_eap parameter in the example file) before being used in 38939beb93cSSam Leffler# the network blocks. 39039beb93cSSam Leffler# 39139beb93cSSam Leffler# Note that some shared parts of EAP methods are included in the main program 39239beb93cSSam Leffler# and in order to be able to use dynamic EAP methods using these parts, the 39339beb93cSSam Leffler# main program must have been build with the EAP method enabled (=y or =dyn). 39439beb93cSSam Leffler# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries 39539beb93cSSam Leffler# unless at least one of them was included in the main build to force inclusion 39639beb93cSSam Leffler# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included 39739beb93cSSam Leffler# in the main build to be able to load these methods dynamically. 39839beb93cSSam Leffler# 39939beb93cSSam Leffler# Please also note that using dynamic libraries will increase the total binary 40039beb93cSSam Leffler# size. Thus, it may not be the best option for targets that have limited 40139beb93cSSam Leffler# amount of memory/flash. 40239beb93cSSam Leffler#CONFIG_DYNAMIC_EAP_METHODS=y 40339beb93cSSam Leffler 404*a90b9d01SCy Schubert# Dynamic library loading 405*a90b9d01SCy Schubert 406*a90b9d01SCy Schubert# Add the ability to configure libraries to load at compile time. 407*a90b9d01SCy Schubert# If set, these disable dynamic configuration. 408*a90b9d01SCy Schubert#CONFIG_PKCS11_ENGINE_PATH - pkcs11_engine library location. 409*a90b9d01SCy Schubert#CONFIG_PKCS11_MODULE_PATH - pkcs11_module library location. 410*a90b9d01SCy Schubert#CONFIG_OPENSC_ENGINE_PATH - opensc_engine library location. 411*a90b9d01SCy Schubert# 412*a90b9d01SCy Schubert# Prevent library loading at runtime 413*a90b9d01SCy Schubert#CONFIG_NO_PKCS11_ENGINE_PATH=y # prevents loading pkcs11_engine library. 414*a90b9d01SCy Schubert#CONFIG_NO_PKCS11_MODULE_PATH=y # prevents loading pkcs11_module library. 415*a90b9d01SCy Schubert# CONFIG_NO_OPENSC_ENGINE_PATH=y # prevents loading opensc_engine library. 416*a90b9d01SCy Schubert 417*a90b9d01SCy Schubert# Prevents loading EAP libraries at runtime 418*a90b9d01SCy Schubert#CONFIG_NO_LOAD_DYNAMIC_EAP=y 419*a90b9d01SCy Schubert 42085732ac8SCy Schubert# IEEE Std 802.11r-2008 (Fast BSS Transition) for station mode 4214bc52338SCy SchubertCONFIG_IEEE80211R=y 42239beb93cSSam Leffler 42339beb93cSSam Leffler# Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt) 4244bc52338SCy SchubertCONFIG_DEBUG_FILE=y 42539beb93cSSam Leffler 426f05cddf9SRui Paulo# Send debug messages to syslog instead of stdout 4274bc52338SCy SchubertCONFIG_DEBUG_SYSLOG=y 428f05cddf9SRui Paulo# Set syslog facility for debug messages 429f05cddf9SRui Paulo#CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON 430f05cddf9SRui Paulo 431f05cddf9SRui Paulo# Add support for sending all debug messages (regardless of debug verbosity) 432f05cddf9SRui Paulo# to the Linux kernel tracing facility. This helps debug the entire stack by 433f05cddf9SRui Paulo# making it easy to record everything happening from the driver up into the 434f05cddf9SRui Paulo# same file, e.g., using trace-cmd. 435f05cddf9SRui Paulo#CONFIG_DEBUG_LINUX_TRACING=y 436f05cddf9SRui Paulo 4375b9c547cSRui Paulo# Add support for writing debug log to Android logcat instead of standard 4385b9c547cSRui Paulo# output 4395b9c547cSRui Paulo#CONFIG_ANDROID_LOG=y 4405b9c547cSRui Paulo 44139beb93cSSam Leffler# Enable privilege separation (see README 'Privilege separation' for details) 44239beb93cSSam Leffler#CONFIG_PRIVSEP=y 44339beb93cSSam Leffler 44439beb93cSSam Leffler# Enable mitigation against certain attacks against TKIP by delaying Michael 44539beb93cSSam Leffler# MIC error reports by a random amount of time between 0 and 60 seconds 44639beb93cSSam Leffler#CONFIG_DELAYED_MIC_ERROR_REPORT=y 447e28a4053SRui Paulo 448e28a4053SRui Paulo# Enable tracing code for developer debugging 449e28a4053SRui Paulo# This tracks use of memory allocations and other registrations and reports 450e28a4053SRui Paulo# incorrect use with a backtrace of call (or allocation) location. 451e28a4053SRui Paulo#CONFIG_WPA_TRACE=y 452f05cddf9SRui Paulo# For BSD, uncomment these. 453e28a4053SRui Paulo#LIBS += -lexecinfo 454e28a4053SRui Paulo#LIBS_p += -lexecinfo 455e28a4053SRui Paulo#LIBS_c += -lexecinfo 456e28a4053SRui Paulo 457e28a4053SRui Paulo# Use libbfd to get more details for developer debugging 458e28a4053SRui Paulo# This enables use of libbfd to get more detailed symbols for the backtraces 459e28a4053SRui Paulo# generated by CONFIG_WPA_TRACE=y. 460e28a4053SRui Paulo#CONFIG_WPA_TRACE_BFD=y 461f05cddf9SRui Paulo# For BSD, uncomment these. 462e28a4053SRui Paulo#LIBS += -lbfd -liberty -lz 463e28a4053SRui Paulo#LIBS_p += -lbfd -liberty -lz 464e28a4053SRui Paulo#LIBS_c += -lbfd -liberty -lz 465f05cddf9SRui Paulo 466f05cddf9SRui Paulo# wpa_supplicant depends on strong random number generation being available 467f05cddf9SRui Paulo# from the operating system. os_get_random() function is used to fetch random 468f05cddf9SRui Paulo# data when needed, e.g., for key generation. On Linux and BSD systems, this 469f05cddf9SRui Paulo# works by reading /dev/urandom. It should be noted that the OS entropy pool 470f05cddf9SRui Paulo# needs to be properly initialized before wpa_supplicant is started. This is 471f05cddf9SRui Paulo# important especially on embedded devices that do not have a hardware random 472f05cddf9SRui Paulo# number generator and may by default start up with minimal entropy available 473f05cddf9SRui Paulo# for random number generation. 474f05cddf9SRui Paulo# 475f05cddf9SRui Paulo# As a safety net, wpa_supplicant is by default trying to internally collect 476f05cddf9SRui Paulo# additional entropy for generating random data to mix in with the data fetched 477f05cddf9SRui Paulo# from the OS. This by itself is not considered to be very strong, but it may 478f05cddf9SRui Paulo# help in cases where the system pool is not initialized properly. However, it 479f05cddf9SRui Paulo# is very strongly recommended that the system pool is initialized with enough 480f05cddf9SRui Paulo# entropy either by using hardware assisted random number generator or by 481f05cddf9SRui Paulo# storing state over device reboots. 482f05cddf9SRui Paulo# 483f05cddf9SRui Paulo# wpa_supplicant can be configured to maintain its own entropy store over 484f05cddf9SRui Paulo# restarts to enhance random number generation. This is not perfect, but it is 485f05cddf9SRui Paulo# much more secure than using the same sequence of random numbers after every 486f05cddf9SRui Paulo# reboot. This can be enabled with -e<entropy file> command line option. The 487f05cddf9SRui Paulo# specified file needs to be readable and writable by wpa_supplicant. 488f05cddf9SRui Paulo# 489f05cddf9SRui Paulo# If the os_get_random() is known to provide strong random data (e.g., on 490f05cddf9SRui Paulo# Linux/BSD, the board in question is known to have reliable source of random 491f05cddf9SRui Paulo# data from /dev/urandom), the internal wpa_supplicant random pool can be 492f05cddf9SRui Paulo# disabled. This will save some in binary size and CPU use. However, this 493f05cddf9SRui Paulo# should only be considered for builds that are known to be used on devices 494f05cddf9SRui Paulo# that meet the requirements described above. 495f05cddf9SRui Paulo#CONFIG_NO_RANDOM_POOL=y 496f05cddf9SRui Paulo 4974bc52338SCy Schubert# Should we attempt to use the getrandom(2) call that provides more reliable 4984bc52338SCy Schubert# yet secure randomness source than /dev/random on Linux 3.17 and newer. 4994bc52338SCy Schubert# Requires glibc 2.25 to build, falls back to /dev/random if unavailable. 5004bc52338SCy Schubert#CONFIG_GETRANDOM=y 5014bc52338SCy Schubert 5025b9c547cSRui Paulo# IEEE 802.11ac (Very High Throughput) support (mainly for AP mode) 5034bc52338SCy SchubertCONFIG_IEEE80211AC=y 5045b9c547cSRui Paulo 505*a90b9d01SCy Schubert# IEEE 802.11ax HE support (mainly for AP mode) 506*a90b9d01SCy SchubertCONFIG_IEEE80211AX=y 507*a90b9d01SCy Schubert 508*a90b9d01SCy Schubert# IEEE 802.11be EHT support (mainly for AP mode) 509*a90b9d01SCy Schubert# CONFIG_IEEE80211AX is mandatory for setting CONFIG_IEEE80211BE. 510*a90b9d01SCy Schubert# Note: This is experimental and work in progress. The definitions are still 511*a90b9d01SCy Schubert# subject to change and this should not be expected to interoperate with the 512*a90b9d01SCy Schubert# final IEEE 802.11be version. 513*a90b9d01SCy Schubert#CONFIG_IEEE80211BE=y 514*a90b9d01SCy Schubert 515f05cddf9SRui Paulo# Wireless Network Management (IEEE Std 802.11v-2011) 516f05cddf9SRui Paulo# Note: This is experimental and not complete implementation. 517f05cddf9SRui Paulo#CONFIG_WNM=y 518f05cddf9SRui Paulo 519f05cddf9SRui Paulo# Interworking (IEEE 802.11u) 520f05cddf9SRui Paulo# This can be used to enable functionality to improve interworking with 521f05cddf9SRui Paulo# external networks (GAS/ANQP to learn more about the networks and network 522f05cddf9SRui Paulo# selection based on available credentials). 5234bc52338SCy SchubertCONFIG_INTERWORKING=y 524f05cddf9SRui Paulo 525f05cddf9SRui Paulo# Hotspot 2.0 5264bc52338SCy SchubertCONFIG_HS20=y 527f05cddf9SRui Paulo 528780fb4a2SCy Schubert# Enable interface matching in wpa_supplicant 529780fb4a2SCy Schubert#CONFIG_MATCH_IFACE=y 530780fb4a2SCy Schubert 5315b9c547cSRui Paulo# Disable roaming in wpa_supplicant 5325b9c547cSRui Paulo#CONFIG_NO_ROAMING=y 5335b9c547cSRui Paulo 534f05cddf9SRui Paulo# AP mode operations with wpa_supplicant 535f05cddf9SRui Paulo# This can be used for controlling AP mode operations with wpa_supplicant. It 536f05cddf9SRui Paulo# should be noted that this is mainly aimed at simple cases like 537f05cddf9SRui Paulo# WPA2-Personal while more complex configurations like WPA2-Enterprise with an 538f05cddf9SRui Paulo# external RADIUS server can be supported with hostapd. 5394bc52338SCy SchubertCONFIG_AP=y 540f05cddf9SRui Paulo 541f05cddf9SRui Paulo# P2P (Wi-Fi Direct) 542f05cddf9SRui Paulo# This can be used to enable P2P support in wpa_supplicant. See README-P2P for 543f05cddf9SRui Paulo# more information on P2P operations. 5444bc52338SCy SchubertCONFIG_P2P=y 545f05cddf9SRui Paulo 5465b9c547cSRui Paulo# Enable TDLS support 547c1d255d3SCy SchubertCONFIG_TDLS=y 5485b9c547cSRui Paulo 5494bc52338SCy Schubert# Wi-Fi Display 5504bc52338SCy Schubert# This can be used to enable Wi-Fi Display extensions for P2P using an external 5515b9c547cSRui Paulo# program to control the additional information exchanges in the messages. 5524bc52338SCy SchubertCONFIG_WIFI_DISPLAY=y 5535b9c547cSRui Paulo 554f05cddf9SRui Paulo# Autoscan 555f05cddf9SRui Paulo# This can be used to enable automatic scan support in wpa_supplicant. 5565b9c547cSRui Paulo# See wpa_supplicant.conf for more information on autoscan usage. 557f05cddf9SRui Paulo# 558f05cddf9SRui Paulo# Enabling directly a module will enable autoscan support. 559f05cddf9SRui Paulo# For exponential module: 560f05cddf9SRui Paulo#CONFIG_AUTOSCAN_EXPONENTIAL=y 561f05cddf9SRui Paulo# For periodic module: 562f05cddf9SRui Paulo#CONFIG_AUTOSCAN_PERIODIC=y 563f05cddf9SRui Paulo 564f05cddf9SRui Paulo# Password (and passphrase, etc.) backend for external storage 565f05cddf9SRui Paulo# These optional mechanisms can be used to add support for storing passwords 566f05cddf9SRui Paulo# and other secrets in external (to wpa_supplicant) location. This allows, for 567f05cddf9SRui Paulo# example, operating system specific key storage to be used 568f05cddf9SRui Paulo# 569f05cddf9SRui Paulo# External password backend for testing purposes (developer use) 570f05cddf9SRui Paulo#CONFIG_EXT_PASSWORD_TEST=y 571c1d255d3SCy Schubert# File-based backend to read passwords from an external file. 572c1d255d3SCy Schubert#CONFIG_EXT_PASSWORD_FILE=y 573325151a3SRui Paulo 574325151a3SRui Paulo# Enable Fast Session Transfer (FST) 575325151a3SRui Paulo#CONFIG_FST=y 576325151a3SRui Paulo 577325151a3SRui Paulo# Enable CLI commands for FST testing 578325151a3SRui Paulo#CONFIG_FST_TEST=y 579325151a3SRui Paulo 580325151a3SRui Paulo# OS X builds. This is only for building eapol_test. 581325151a3SRui Paulo#CONFIG_OSX=y 582780fb4a2SCy Schubert 583780fb4a2SCy Schubert# Automatic Channel Selection 584780fb4a2SCy Schubert# This will allow wpa_supplicant to pick the channel automatically when channel 585780fb4a2SCy Schubert# is set to "0". 586780fb4a2SCy Schubert# 587780fb4a2SCy Schubert# TODO: Extend parser to be able to parse "channel=acs_survey" as an alternative 588780fb4a2SCy Schubert# to "channel=0". This would enable us to eventually add other ACS algorithms in 589780fb4a2SCy Schubert# similar way. 590780fb4a2SCy Schubert# 591780fb4a2SCy Schubert# Automatic selection is currently only done through initialization, later on 592780fb4a2SCy Schubert# we hope to do background checks to keep us moving to more ideal channels as 593780fb4a2SCy Schubert# time goes by. ACS is currently only supported through the nl80211 driver and 594780fb4a2SCy Schubert# your driver must have survey dump capability that is filled by the driver 595780fb4a2SCy Schubert# during scanning. 596780fb4a2SCy Schubert# 597780fb4a2SCy Schubert# TODO: In analogy to hostapd be able to customize the ACS survey algorithm with 598780fb4a2SCy Schubert# a newly to create wpa_supplicant.conf variable acs_num_scans. 599780fb4a2SCy Schubert# 600780fb4a2SCy Schubert# Supported ACS drivers: 601780fb4a2SCy Schubert# * ath9k 602780fb4a2SCy Schubert# * ath5k 603780fb4a2SCy Schubert# * ath10k 604780fb4a2SCy Schubert# 605780fb4a2SCy Schubert# For more details refer to: 606780fb4a2SCy Schubert# http://wireless.kernel.org/en/users/Documentation/acs 607780fb4a2SCy Schubert#CONFIG_ACS=y 608780fb4a2SCy Schubert 609780fb4a2SCy Schubert# Support Multi Band Operation 610780fb4a2SCy Schubert#CONFIG_MBO=y 61185732ac8SCy Schubert 61285732ac8SCy Schubert# Fast Initial Link Setup (FILS) (IEEE 802.11ai) 61385732ac8SCy Schubert#CONFIG_FILS=y 61485732ac8SCy Schubert# FILS shared key authentication with PFS 61585732ac8SCy Schubert#CONFIG_FILS_SK_PFS=y 61685732ac8SCy Schubert 61785732ac8SCy Schubert# Support RSN on IBSS networks 61885732ac8SCy Schubert# This is needed to be able to use mode=1 network profile with proto=RSN and 61985732ac8SCy Schubert# key_mgmt=WPA-PSK (i.e., full key management instead of WPA-None). 6204bc52338SCy SchubertCONFIG_IBSS_RSN=y 62185732ac8SCy Schubert 62285732ac8SCy Schubert# External PMKSA cache control 62385732ac8SCy Schubert# This can be used to enable control interface commands that allow the current 62485732ac8SCy Schubert# PMKSA cache entries to be fetched and new entries to be added. 62585732ac8SCy Schubert#CONFIG_PMKSA_CACHE_EXTERNAL=y 62685732ac8SCy Schubert 62785732ac8SCy Schubert# Mesh Networking (IEEE 802.11s) 62885732ac8SCy Schubert#CONFIG_MESH=y 62985732ac8SCy Schubert 63085732ac8SCy Schubert# Background scanning modules 63185732ac8SCy Schubert# These can be used to request wpa_supplicant to perform background scanning 63285732ac8SCy Schubert# operations for roaming within an ESS (same SSID). See the bgscan parameter in 63385732ac8SCy Schubert# the wpa_supplicant.conf file for more details. 63485732ac8SCy Schubert# Periodic background scans based on signal strength 6354bc52338SCy SchubertCONFIG_BGSCAN_SIMPLE=y 63685732ac8SCy Schubert# Learn channels used by the network and try to avoid bgscans on other 63785732ac8SCy Schubert# channels (experimental) 63885732ac8SCy Schubert#CONFIG_BGSCAN_LEARN=y 63985732ac8SCy Schubert 64085732ac8SCy Schubert# Opportunistic Wireless Encryption (OWE) 64185732ac8SCy Schubert# Experimental implementation of draft-harkins-owe-07.txt 64285732ac8SCy Schubert#CONFIG_OWE=y 6434bc52338SCy Schubert 64432a95656SCy Schubert# Device Provisioning Protocol (DPP) (also known as Wi-Fi Easy Connect) 6454bc52338SCy SchubertCONFIG_DPP=y 64632a95656SCy Schubert# DPP version 2 support 64732a95656SCy SchubertCONFIG_DPP2=y 64832a95656SCy Schubert# DPP version 3 support (experimental and still changing; do not enable for 64932a95656SCy Schubert# production use) 65032a95656SCy Schubert#CONFIG_DPP3=y 651c1d255d3SCy Schubert 652c1d255d3SCy Schubert# Wired equivalent privacy (WEP) 653c1d255d3SCy Schubert# WEP is an obsolete cryptographic data confidentiality algorithm that is not 654c1d255d3SCy Schubert# considered secure. It should not be used for anything anymore. The 655c1d255d3SCy Schubert# functionality needed to use WEP is available in the current wpa_supplicant 656c1d255d3SCy Schubert# release under this optional build parameter. This functionality is subject to 657c1d255d3SCy Schubert# be completely removed in a future release. 658c1d255d3SCy Schubert#CONFIG_WEP=y 659c1d255d3SCy Schubert 660c1d255d3SCy Schubert# Remove all TKIP functionality 661c1d255d3SCy Schubert# TKIP is an old cryptographic data confidentiality algorithm that is not 662c1d255d3SCy Schubert# considered secure. It should not be used anymore for anything else than a 663c1d255d3SCy Schubert# backwards compatibility option as a group cipher when connecting to APs that 664c1d255d3SCy Schubert# use WPA+WPA2 mixed mode. For now, the default wpa_supplicant build includes 665c1d255d3SCy Schubert# support for this by default, but that functionality is subject to be removed 666c1d255d3SCy Schubert# in the future. 667c1d255d3SCy Schubert#CONFIG_NO_TKIP=y 668c1d255d3SCy Schubert 669c1d255d3SCy Schubert# Pre-Association Security Negotiation (PASN) 670c1d255d3SCy Schubert# Experimental implementation based on IEEE P802.11z/D2.6 and the protocol 671c1d255d3SCy Schubert# design is still subject to change. As such, this should not yet be enabled in 672c1d255d3SCy Schubert# production use. 673c1d255d3SCy Schubert#CONFIG_PASN=y 674*a90b9d01SCy Schubert 675*a90b9d01SCy Schubert# Disable support for Radio Measurement (IEEE 802.11k) and supported operating 676*a90b9d01SCy Schubert# class indication. Removing these is not recommended since they can help the 677*a90b9d01SCy Schubert# AP manage the network and STA steering. 678*a90b9d01SCy Schubert#CONFIG_NO_RRM=y 679*a90b9d01SCy Schubert 680*a90b9d01SCy Schubert# Disable support for Robust AV streaming for consumer and enterprise Wi-Fi 681*a90b9d01SCy Schubert# applications; IEEE Std 802.11-2020, 4.3.24; SCS, MSCS, QoS Management 682*a90b9d01SCy Schubert#CONFIG_NO_ROBUST_AV=y 683*a90b9d01SCy Schubert 684*a90b9d01SCy Schubert# Disable support for WMM admission control 685*a90b9d01SCy Schubert#CONFIG_NO_WMM_AC=y 686*a90b9d01SCy Schubert 687*a90b9d01SCy Schubert# Wi-Fi Aware unsynchronized service discovery (NAN USD) 688*a90b9d01SCy Schubert#CONFIG_NAN_USD=y 689