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 10439beb93cSSam Leffler 10539beb93cSSam Leffler# EAL-PEAP 10639beb93cSSam LefflerCONFIG_EAP_PEAP=y 10739beb93cSSam Leffler 10839beb93cSSam Leffler# EAP-TTLS 10939beb93cSSam LefflerCONFIG_EAP_TTLS=y 11039beb93cSSam Leffler 11139beb93cSSam Leffler# EAP-FAST 1124bc52338SCy SchubertCONFIG_EAP_FAST=y 11339beb93cSSam Leffler 114206b73d0SCy Schubert# EAP-TEAP 115206b73d0SCy Schubert# Note: The current EAP-TEAP implementation is experimental and should not be 116206b73d0SCy Schubert# enabled for production use. The IETF RFC 7170 that defines EAP-TEAP has number 117206b73d0SCy Schubert# of conflicting statements and missing details and the implementation has 118206b73d0SCy Schubert# vendor specific workarounds for those and as such, may not interoperate with 119206b73d0SCy Schubert# any other implementation. This should not be used for anything else than 120206b73d0SCy Schubert# experimentation and interoperability testing until those issues has been 121206b73d0SCy Schubert# resolved. 122206b73d0SCy Schubert#CONFIG_EAP_TEAP=y 123206b73d0SCy Schubert 12439beb93cSSam Leffler# EAP-GTC 12539beb93cSSam LefflerCONFIG_EAP_GTC=y 12639beb93cSSam Leffler 12739beb93cSSam Leffler# EAP-OTP 12839beb93cSSam LefflerCONFIG_EAP_OTP=y 12939beb93cSSam Leffler 13039beb93cSSam Leffler# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used) 13139beb93cSSam Leffler#CONFIG_EAP_SIM=y 13239beb93cSSam Leffler 133206b73d0SCy Schubert# Enable SIM simulator (Milenage) for EAP-SIM 134206b73d0SCy Schubert#CONFIG_SIM_SIMULATOR=y 135206b73d0SCy Schubert 13639beb93cSSam Leffler# EAP-PSK (experimental; this is _not_ needed for WPA-PSK) 13739beb93cSSam Leffler#CONFIG_EAP_PSK=y 13839beb93cSSam Leffler 139f05cddf9SRui Paulo# EAP-pwd (secure authentication using only a password) 1404bc52338SCy SchubertCONFIG_EAP_PWD=y 141f05cddf9SRui Paulo 14239beb93cSSam Leffler# EAP-PAX 1434bc52338SCy SchubertCONFIG_EAP_PAX=y 14439beb93cSSam Leffler 14539beb93cSSam Leffler# LEAP 14639beb93cSSam LefflerCONFIG_EAP_LEAP=y 14739beb93cSSam Leffler 14839beb93cSSam Leffler# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used) 14939beb93cSSam Leffler#CONFIG_EAP_AKA=y 15039beb93cSSam Leffler 15139beb93cSSam Leffler# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used). 15239beb93cSSam Leffler# This requires CONFIG_EAP_AKA to be enabled, too. 15339beb93cSSam Leffler#CONFIG_EAP_AKA_PRIME=y 15439beb93cSSam Leffler 15539beb93cSSam Leffler# Enable USIM simulator (Milenage) for EAP-AKA 15639beb93cSSam Leffler#CONFIG_USIM_SIMULATOR=y 15739beb93cSSam Leffler 15839beb93cSSam Leffler# EAP-SAKE 1594bc52338SCy SchubertCONFIG_EAP_SAKE=y 16039beb93cSSam Leffler 16139beb93cSSam Leffler# EAP-GPSK 1624bc52338SCy SchubertCONFIG_EAP_GPSK=y 16339beb93cSSam Leffler# Include support for optional SHA256 cipher suite in EAP-GPSK 1644bc52338SCy SchubertCONFIG_EAP_GPSK_SHA256=y 16539beb93cSSam Leffler 16639beb93cSSam Leffler# EAP-TNC and related Trusted Network Connect support (experimental) 1674bc52338SCy SchubertCONFIG_EAP_TNC=y 16839beb93cSSam Leffler 16939beb93cSSam Leffler# Wi-Fi Protected Setup (WPS) 1704bc52338SCy SchubertCONFIG_WPS=y 171f05cddf9SRui Paulo# Enable WPS external registrar functionality 172f05cddf9SRui Paulo#CONFIG_WPS_ER=y 173f05cddf9SRui Paulo# Disable credentials for an open network by default when acting as a WPS 174f05cddf9SRui Paulo# registrar. 175f05cddf9SRui Paulo#CONFIG_WPS_REG_DISABLE_OPEN=y 176f05cddf9SRui Paulo# Enable WPS support with NFC config method 177f05cddf9SRui Paulo#CONFIG_WPS_NFC=y 17839beb93cSSam Leffler 17939beb93cSSam Leffler# EAP-IKEv2 1804bc52338SCy SchubertCONFIG_EAP_IKEV2=y 18139beb93cSSam Leffler 1825b9c547cSRui Paulo# EAP-EKE 1835b9c547cSRui Paulo#CONFIG_EAP_EKE=y 1845b9c547cSRui Paulo 18585732ac8SCy Schubert# MACsec 186c1d255d3SCy SchubertCONFIG_MACSEC=y 18785732ac8SCy Schubert 18839beb93cSSam Leffler# PKCS#12 (PFX) support (used to read private key and certificate file from 18939beb93cSSam Leffler# a file that usually has extension .p12 or .pfx) 19039beb93cSSam LefflerCONFIG_PKCS12=y 19139beb93cSSam Leffler 19239beb93cSSam Leffler# Smartcard support (i.e., private key on a smartcard), e.g., with openssl 19339beb93cSSam Leffler# engine. 19439beb93cSSam LefflerCONFIG_SMARTCARD=y 19539beb93cSSam Leffler 19639beb93cSSam Leffler# PC/SC interface for smartcards (USIM, GSM SIM) 19739beb93cSSam Leffler# Enable this if EAP-SIM or EAP-AKA is included 19839beb93cSSam Leffler#CONFIG_PCSC=y 19939beb93cSSam Leffler 200f05cddf9SRui Paulo# Support HT overrides (disable HT/HT40, mask MCS rates, etc.) 201f05cddf9SRui Paulo#CONFIG_HT_OVERRIDES=y 202f05cddf9SRui Paulo 2035b9c547cSRui Paulo# Support VHT overrides (disable VHT, mask MCS rates, etc.) 2045b9c547cSRui Paulo#CONFIG_VHT_OVERRIDES=y 2055b9c547cSRui Paulo 20639beb93cSSam Leffler# Development testing 20739beb93cSSam Leffler#CONFIG_EAPOL_TEST=y 20839beb93cSSam Leffler 20939beb93cSSam Leffler# Select control interface backend for external programs, e.g, wpa_cli: 21039beb93cSSam Leffler# unix = UNIX domain sockets (default for Linux/*BSD) 21139beb93cSSam Leffler# udp = UDP sockets using localhost (127.0.0.1) 2125b9c547cSRui Paulo# udp6 = UDP IPv6 sockets using localhost (::1) 21339beb93cSSam Leffler# named_pipe = Windows Named Pipe (default for Windows) 214f05cddf9SRui Paulo# udp-remote = UDP sockets with remote access (only for tests systems/purpose) 2155b9c547cSRui Paulo# udp6-remote = UDP IPv6 sockets with remote access (only for tests purpose) 21639beb93cSSam Leffler# y = use default (backwards compatibility) 21739beb93cSSam Leffler# If this option is commented out, control interface is not included in the 21839beb93cSSam Leffler# build. 21939beb93cSSam LefflerCONFIG_CTRL_IFACE=y 22039beb93cSSam Leffler 22139beb93cSSam Leffler# Include support for GNU Readline and History Libraries in wpa_cli. 22239beb93cSSam Leffler# When building a wpa_cli binary for distribution, please note that these 22339beb93cSSam Leffler# libraries are licensed under GPL and as such, BSD license may not apply for 22439beb93cSSam Leffler# the resulting binary. 22539beb93cSSam Leffler#CONFIG_READLINE=y 22639beb93cSSam Leffler 227f05cddf9SRui Paulo# Include internal line edit mode in wpa_cli. This can be used as a replacement 228f05cddf9SRui Paulo# for GNU Readline to provide limited command line editing and history support. 229f05cddf9SRui Paulo#CONFIG_WPA_CLI_EDIT=y 230f05cddf9SRui Paulo 23139beb93cSSam Leffler# Remove debugging code that is printing out debug message to stdout. 23239beb93cSSam Leffler# This can be used to reduce the size of the wpa_supplicant considerably 23339beb93cSSam Leffler# if debugging code is not needed. The size reduction can be around 35% 23439beb93cSSam Leffler# (e.g., 90 kB). 23539beb93cSSam Leffler#CONFIG_NO_STDOUT_DEBUG=y 23639beb93cSSam Leffler 23739beb93cSSam Leffler# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save 23839beb93cSSam Leffler# 35-50 kB in code size. 23939beb93cSSam Leffler#CONFIG_NO_WPA=y 24039beb93cSSam Leffler 24139beb93cSSam Leffler# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support 24239beb93cSSam Leffler# This option can be used to reduce code size by removing support for 24339beb93cSSam Leffler# converting ASCII passphrases into PSK. If this functionality is removed, the 24439beb93cSSam Leffler# PSK can only be configured as the 64-octet hexstring (e.g., from 24539beb93cSSam Leffler# wpa_passphrase). This saves about 0.5 kB in code size. 24639beb93cSSam Leffler#CONFIG_NO_WPA_PASSPHRASE=y 24739beb93cSSam Leffler 2484bc52338SCy Schubert# Simultaneous Authentication of Equals (SAE), WPA3-Personal 2494bc52338SCy SchubertCONFIG_SAE=y 2504bc52338SCy Schubert 251c1d255d3SCy Schubert# Disable scan result processing (ap_scan=1) to save code size by about 1 kB. 25239beb93cSSam Leffler# This can be used if ap_scan=1 mode is never enabled. 25339beb93cSSam Leffler#CONFIG_NO_SCAN_PROCESSING=y 25439beb93cSSam Leffler 25539beb93cSSam Leffler# Select configuration backend: 25639beb93cSSam Leffler# file = text file (e.g., wpa_supplicant.conf; note: the configuration file 25739beb93cSSam Leffler# path is given on command line, not here; this option is just used to 25839beb93cSSam Leffler# select the backend that allows configuration files to be used) 25939beb93cSSam Leffler# winreg = Windows registry (see win_example.reg for an example) 26039beb93cSSam LefflerCONFIG_BACKEND=file 26139beb93cSSam Leffler 26239beb93cSSam Leffler# Remove configuration write functionality (i.e., to allow the configuration 26339beb93cSSam Leffler# file to be updated based on runtime configuration changes). The runtime 26439beb93cSSam Leffler# configuration can still be changed, the changes are just not going to be 26539beb93cSSam Leffler# persistent over restarts. This option can be used to reduce code size by 26639beb93cSSam Leffler# about 3.5 kB. 26739beb93cSSam Leffler#CONFIG_NO_CONFIG_WRITE=y 26839beb93cSSam Leffler 26939beb93cSSam Leffler# Remove support for configuration blobs to reduce code size by about 1.5 kB. 27039beb93cSSam Leffler#CONFIG_NO_CONFIG_BLOBS=y 27139beb93cSSam Leffler 27239beb93cSSam Leffler# Select program entry point implementation: 27339beb93cSSam Leffler# main = UNIX/POSIX like main() function (default) 27439beb93cSSam Leffler# main_winsvc = Windows service (read parameters from registry) 27539beb93cSSam Leffler# main_none = Very basic example (development use only) 27639beb93cSSam Leffler#CONFIG_MAIN=main 27739beb93cSSam Leffler 2785b9c547cSRui Paulo# Select wrapper for operating system and C library specific functions 27939beb93cSSam Leffler# unix = UNIX/POSIX like systems (default) 28039beb93cSSam Leffler# win32 = Windows systems 28139beb93cSSam Leffler# none = Empty template 28239beb93cSSam Leffler#CONFIG_OS=unix 28339beb93cSSam Leffler 28439beb93cSSam Leffler# Select event loop implementation 28539beb93cSSam Leffler# eloop = select() loop (default) 28639beb93cSSam Leffler# eloop_win = Windows events and WaitForMultipleObject() loop 28739beb93cSSam Leffler#CONFIG_ELOOP=eloop 28839beb93cSSam Leffler 289f05cddf9SRui Paulo# Should we use poll instead of select? Select is used by default. 290f05cddf9SRui Paulo#CONFIG_ELOOP_POLL=y 291f05cddf9SRui Paulo 2925b9c547cSRui Paulo# Should we use epoll instead of select? Select is used by default. 2935b9c547cSRui Paulo#CONFIG_ELOOP_EPOLL=y 2945b9c547cSRui Paulo 295780fb4a2SCy Schubert# Should we use kqueue instead of select? Select is used by default. 296780fb4a2SCy Schubert#CONFIG_ELOOP_KQUEUE=y 297780fb4a2SCy Schubert 29839beb93cSSam Leffler# Select layer 2 packet implementation 29939beb93cSSam Leffler# linux = Linux packet socket (default) 30039beb93cSSam Leffler# pcap = libpcap/libdnet/WinPcap 30139beb93cSSam Leffler# freebsd = FreeBSD libpcap 30239beb93cSSam Leffler# winpcap = WinPcap with receive thread 30339beb93cSSam Leffler# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y) 30439beb93cSSam Leffler# none = Empty template 30539beb93cSSam Leffler#CONFIG_L2_PACKET=linux 30639beb93cSSam Leffler 307780fb4a2SCy Schubert# Disable Linux packet socket workaround applicable for station interface 308780fb4a2SCy Schubert# in a bridge for EAPOL frames. This should be uncommented only if the kernel 309780fb4a2SCy Schubert# is known to not have the regression issue in packet socket behavior with 310780fb4a2SCy Schubert# bridge interfaces (commit 'bridge: respect RFC2863 operational state')'). 311780fb4a2SCy Schubert#CONFIG_NO_LINUX_PACKET_SOCKET_WAR=y 312780fb4a2SCy Schubert 3134bc52338SCy Schubert# Support Operating Channel Validation 3144bc52338SCy Schubert#CONFIG_OCV=y 31539beb93cSSam Leffler 31639beb93cSSam Leffler# Select TLS implementation 31739beb93cSSam Leffler# openssl = OpenSSL (default) 318f05cddf9SRui Paulo# gnutls = GnuTLS 31939beb93cSSam Leffler# internal = Internal TLSv1 implementation (experimental) 32085732ac8SCy Schubert# linux = Linux kernel AF_ALG and internal TLSv1 implementation (experimental) 32139beb93cSSam Leffler# none = Empty template 32239beb93cSSam Leffler#CONFIG_TLS=openssl 32339beb93cSSam Leffler 324f05cddf9SRui Paulo# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1) 325f05cddf9SRui Paulo# can be enabled to get a stronger construction of messages when block ciphers 326f05cddf9SRui Paulo# are used. It should be noted that some existing TLS v1.0 -based 327f05cddf9SRui Paulo# implementation may not be compatible with TLS v1.1 message (ClientHello is 328f05cddf9SRui Paulo# sent prior to negotiating which version will be used) 329f05cddf9SRui Paulo#CONFIG_TLSV11=y 330f05cddf9SRui Paulo 331f05cddf9SRui Paulo# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2) 332f05cddf9SRui Paulo# can be enabled to enable use of stronger crypto algorithms. It should be 333f05cddf9SRui Paulo# noted that some existing TLS v1.0 -based implementation may not be compatible 334f05cddf9SRui Paulo# with TLS v1.2 message (ClientHello is sent prior to negotiating which version 335f05cddf9SRui Paulo# will be used) 336f05cddf9SRui Paulo#CONFIG_TLSV12=y 33739beb93cSSam Leffler 33885732ac8SCy Schubert# Select which ciphers to use by default with OpenSSL if the user does not 33985732ac8SCy Schubert# specify them. 34085732ac8SCy Schubert#CONFIG_TLS_DEFAULT_CIPHERS="DEFAULT:!EXP:!LOW" 34185732ac8SCy Schubert 34239beb93cSSam Leffler# If CONFIG_TLS=internal is used, additional library and include paths are 34339beb93cSSam Leffler# needed for LibTomMath. Alternatively, an integrated, minimal version of 34439beb93cSSam Leffler# LibTomMath can be used. See beginning of libtommath.c for details on benefits 34539beb93cSSam Leffler# and drawbacks of this option. 34639beb93cSSam Leffler#CONFIG_INTERNAL_LIBTOMMATH=y 34739beb93cSSam Leffler#ifndef CONFIG_INTERNAL_LIBTOMMATH 34839beb93cSSam Leffler#LTM_PATH=/usr/src/libtommath-0.39 34939beb93cSSam Leffler#CFLAGS += -I$(LTM_PATH) 35039beb93cSSam Leffler#LIBS += -L$(LTM_PATH) 35139beb93cSSam Leffler#LIBS_p += -L$(LTM_PATH) 35239beb93cSSam Leffler#endif 35339beb93cSSam Leffler# At the cost of about 4 kB of additional binary size, the internal LibTomMath 35439beb93cSSam Leffler# can be configured to include faster routines for exptmod, sqr, and div to 35539beb93cSSam Leffler# speed up DH and RSA calculation considerably 35639beb93cSSam Leffler#CONFIG_INTERNAL_LIBTOMMATH_FAST=y 35739beb93cSSam Leffler 35839beb93cSSam Leffler# Include NDIS event processing through WMI into wpa_supplicant/wpasvc. 35939beb93cSSam Leffler# This is only for Windows builds and requires WMI-related header files and 36039beb93cSSam Leffler# WbemUuid.Lib from Platform SDK even when building with MinGW. 36139beb93cSSam Leffler#CONFIG_NDIS_EVENTS_INTEGRATED=y 36239beb93cSSam Leffler#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib" 36339beb93cSSam Leffler 364e28a4053SRui Paulo# Add support for new DBus control interface 365c1d255d3SCy Schubert# (fi.w1.wpa_supplicant1) 3664bc52338SCy SchubertCONFIG_CTRL_IFACE_DBUS_NEW=y 367e28a4053SRui Paulo 368e28a4053SRui Paulo# Add introspection support for new DBus control interface 3694bc52338SCy SchubertCONFIG_CTRL_IFACE_DBUS_INTRO=y 370e28a4053SRui Paulo 37139beb93cSSam Leffler# Add support for loading EAP methods dynamically as shared libraries. 37239beb93cSSam Leffler# When this option is enabled, each EAP method can be either included 37339beb93cSSam Leffler# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn). 37439beb93cSSam Leffler# Dynamic EAP methods are build as shared objects (eap_*.so) and they need to 37539beb93cSSam Leffler# be loaded in the beginning of the wpa_supplicant configuration file 37639beb93cSSam Leffler# (see load_dynamic_eap parameter in the example file) before being used in 37739beb93cSSam Leffler# the network blocks. 37839beb93cSSam Leffler# 37939beb93cSSam Leffler# Note that some shared parts of EAP methods are included in the main program 38039beb93cSSam Leffler# and in order to be able to use dynamic EAP methods using these parts, the 38139beb93cSSam Leffler# main program must have been build with the EAP method enabled (=y or =dyn). 38239beb93cSSam Leffler# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries 38339beb93cSSam Leffler# unless at least one of them was included in the main build to force inclusion 38439beb93cSSam Leffler# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included 38539beb93cSSam Leffler# in the main build to be able to load these methods dynamically. 38639beb93cSSam Leffler# 38739beb93cSSam Leffler# Please also note that using dynamic libraries will increase the total binary 38839beb93cSSam Leffler# size. Thus, it may not be the best option for targets that have limited 38939beb93cSSam Leffler# amount of memory/flash. 39039beb93cSSam Leffler#CONFIG_DYNAMIC_EAP_METHODS=y 39139beb93cSSam Leffler 39285732ac8SCy Schubert# IEEE Std 802.11r-2008 (Fast BSS Transition) for station mode 3934bc52338SCy SchubertCONFIG_IEEE80211R=y 39439beb93cSSam Leffler 39539beb93cSSam Leffler# Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt) 3964bc52338SCy SchubertCONFIG_DEBUG_FILE=y 39739beb93cSSam Leffler 398f05cddf9SRui Paulo# Send debug messages to syslog instead of stdout 3994bc52338SCy SchubertCONFIG_DEBUG_SYSLOG=y 400f05cddf9SRui Paulo# Set syslog facility for debug messages 401f05cddf9SRui Paulo#CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON 402f05cddf9SRui Paulo 403f05cddf9SRui Paulo# Add support for sending all debug messages (regardless of debug verbosity) 404f05cddf9SRui Paulo# to the Linux kernel tracing facility. This helps debug the entire stack by 405f05cddf9SRui Paulo# making it easy to record everything happening from the driver up into the 406f05cddf9SRui Paulo# same file, e.g., using trace-cmd. 407f05cddf9SRui Paulo#CONFIG_DEBUG_LINUX_TRACING=y 408f05cddf9SRui Paulo 4095b9c547cSRui Paulo# Add support for writing debug log to Android logcat instead of standard 4105b9c547cSRui Paulo# output 4115b9c547cSRui Paulo#CONFIG_ANDROID_LOG=y 4125b9c547cSRui Paulo 41339beb93cSSam Leffler# Enable privilege separation (see README 'Privilege separation' for details) 41439beb93cSSam Leffler#CONFIG_PRIVSEP=y 41539beb93cSSam Leffler 41639beb93cSSam Leffler# Enable mitigation against certain attacks against TKIP by delaying Michael 41739beb93cSSam Leffler# MIC error reports by a random amount of time between 0 and 60 seconds 41839beb93cSSam Leffler#CONFIG_DELAYED_MIC_ERROR_REPORT=y 419e28a4053SRui Paulo 420e28a4053SRui Paulo# Enable tracing code for developer debugging 421e28a4053SRui Paulo# This tracks use of memory allocations and other registrations and reports 422e28a4053SRui Paulo# incorrect use with a backtrace of call (or allocation) location. 423e28a4053SRui Paulo#CONFIG_WPA_TRACE=y 424f05cddf9SRui Paulo# For BSD, uncomment these. 425e28a4053SRui Paulo#LIBS += -lexecinfo 426e28a4053SRui Paulo#LIBS_p += -lexecinfo 427e28a4053SRui Paulo#LIBS_c += -lexecinfo 428e28a4053SRui Paulo 429e28a4053SRui Paulo# Use libbfd to get more details for developer debugging 430e28a4053SRui Paulo# This enables use of libbfd to get more detailed symbols for the backtraces 431e28a4053SRui Paulo# generated by CONFIG_WPA_TRACE=y. 432e28a4053SRui Paulo#CONFIG_WPA_TRACE_BFD=y 433f05cddf9SRui Paulo# For BSD, uncomment these. 434e28a4053SRui Paulo#LIBS += -lbfd -liberty -lz 435e28a4053SRui Paulo#LIBS_p += -lbfd -liberty -lz 436e28a4053SRui Paulo#LIBS_c += -lbfd -liberty -lz 437f05cddf9SRui Paulo 438f05cddf9SRui Paulo# wpa_supplicant depends on strong random number generation being available 439f05cddf9SRui Paulo# from the operating system. os_get_random() function is used to fetch random 440f05cddf9SRui Paulo# data when needed, e.g., for key generation. On Linux and BSD systems, this 441f05cddf9SRui Paulo# works by reading /dev/urandom. It should be noted that the OS entropy pool 442f05cddf9SRui Paulo# needs to be properly initialized before wpa_supplicant is started. This is 443f05cddf9SRui Paulo# important especially on embedded devices that do not have a hardware random 444f05cddf9SRui Paulo# number generator and may by default start up with minimal entropy available 445f05cddf9SRui Paulo# for random number generation. 446f05cddf9SRui Paulo# 447f05cddf9SRui Paulo# As a safety net, wpa_supplicant is by default trying to internally collect 448f05cddf9SRui Paulo# additional entropy for generating random data to mix in with the data fetched 449f05cddf9SRui Paulo# from the OS. This by itself is not considered to be very strong, but it may 450f05cddf9SRui Paulo# help in cases where the system pool is not initialized properly. However, it 451f05cddf9SRui Paulo# is very strongly recommended that the system pool is initialized with enough 452f05cddf9SRui Paulo# entropy either by using hardware assisted random number generator or by 453f05cddf9SRui Paulo# storing state over device reboots. 454f05cddf9SRui Paulo# 455f05cddf9SRui Paulo# wpa_supplicant can be configured to maintain its own entropy store over 456f05cddf9SRui Paulo# restarts to enhance random number generation. This is not perfect, but it is 457f05cddf9SRui Paulo# much more secure than using the same sequence of random numbers after every 458f05cddf9SRui Paulo# reboot. This can be enabled with -e<entropy file> command line option. The 459f05cddf9SRui Paulo# specified file needs to be readable and writable by wpa_supplicant. 460f05cddf9SRui Paulo# 461f05cddf9SRui Paulo# If the os_get_random() is known to provide strong random data (e.g., on 462f05cddf9SRui Paulo# Linux/BSD, the board in question is known to have reliable source of random 463f05cddf9SRui Paulo# data from /dev/urandom), the internal wpa_supplicant random pool can be 464f05cddf9SRui Paulo# disabled. This will save some in binary size and CPU use. However, this 465f05cddf9SRui Paulo# should only be considered for builds that are known to be used on devices 466f05cddf9SRui Paulo# that meet the requirements described above. 467f05cddf9SRui Paulo#CONFIG_NO_RANDOM_POOL=y 468f05cddf9SRui Paulo 4694bc52338SCy Schubert# Should we attempt to use the getrandom(2) call that provides more reliable 4704bc52338SCy Schubert# yet secure randomness source than /dev/random on Linux 3.17 and newer. 4714bc52338SCy Schubert# Requires glibc 2.25 to build, falls back to /dev/random if unavailable. 4724bc52338SCy Schubert#CONFIG_GETRANDOM=y 4734bc52338SCy Schubert 4745b9c547cSRui Paulo# IEEE 802.11ac (Very High Throughput) support (mainly for AP mode) 4754bc52338SCy SchubertCONFIG_IEEE80211AC=y 4765b9c547cSRui Paulo 477f05cddf9SRui Paulo# Wireless Network Management (IEEE Std 802.11v-2011) 478f05cddf9SRui Paulo# Note: This is experimental and not complete implementation. 479f05cddf9SRui Paulo#CONFIG_WNM=y 480f05cddf9SRui Paulo 481f05cddf9SRui Paulo# Interworking (IEEE 802.11u) 482f05cddf9SRui Paulo# This can be used to enable functionality to improve interworking with 483f05cddf9SRui Paulo# external networks (GAS/ANQP to learn more about the networks and network 484f05cddf9SRui Paulo# selection based on available credentials). 4854bc52338SCy SchubertCONFIG_INTERWORKING=y 486f05cddf9SRui Paulo 487f05cddf9SRui Paulo# Hotspot 2.0 4884bc52338SCy SchubertCONFIG_HS20=y 489f05cddf9SRui Paulo 490780fb4a2SCy Schubert# Enable interface matching in wpa_supplicant 491780fb4a2SCy Schubert#CONFIG_MATCH_IFACE=y 492780fb4a2SCy Schubert 4935b9c547cSRui Paulo# Disable roaming in wpa_supplicant 4945b9c547cSRui Paulo#CONFIG_NO_ROAMING=y 4955b9c547cSRui Paulo 496f05cddf9SRui Paulo# AP mode operations with wpa_supplicant 497f05cddf9SRui Paulo# This can be used for controlling AP mode operations with wpa_supplicant. It 498f05cddf9SRui Paulo# should be noted that this is mainly aimed at simple cases like 499f05cddf9SRui Paulo# WPA2-Personal while more complex configurations like WPA2-Enterprise with an 500f05cddf9SRui Paulo# external RADIUS server can be supported with hostapd. 5014bc52338SCy SchubertCONFIG_AP=y 502f05cddf9SRui Paulo 503f05cddf9SRui Paulo# P2P (Wi-Fi Direct) 504f05cddf9SRui Paulo# This can be used to enable P2P support in wpa_supplicant. See README-P2P for 505f05cddf9SRui Paulo# more information on P2P operations. 5064bc52338SCy SchubertCONFIG_P2P=y 507f05cddf9SRui Paulo 5085b9c547cSRui Paulo# Enable TDLS support 509c1d255d3SCy SchubertCONFIG_TDLS=y 5105b9c547cSRui Paulo 5114bc52338SCy Schubert# Wi-Fi Display 5124bc52338SCy Schubert# This can be used to enable Wi-Fi Display extensions for P2P using an external 5135b9c547cSRui Paulo# program to control the additional information exchanges in the messages. 5144bc52338SCy SchubertCONFIG_WIFI_DISPLAY=y 5155b9c547cSRui Paulo 516f05cddf9SRui Paulo# Autoscan 517f05cddf9SRui Paulo# This can be used to enable automatic scan support in wpa_supplicant. 5185b9c547cSRui Paulo# See wpa_supplicant.conf for more information on autoscan usage. 519f05cddf9SRui Paulo# 520f05cddf9SRui Paulo# Enabling directly a module will enable autoscan support. 521f05cddf9SRui Paulo# For exponential module: 522f05cddf9SRui Paulo#CONFIG_AUTOSCAN_EXPONENTIAL=y 523f05cddf9SRui Paulo# For periodic module: 524f05cddf9SRui Paulo#CONFIG_AUTOSCAN_PERIODIC=y 525f05cddf9SRui Paulo 526f05cddf9SRui Paulo# Password (and passphrase, etc.) backend for external storage 527f05cddf9SRui Paulo# These optional mechanisms can be used to add support for storing passwords 528f05cddf9SRui Paulo# and other secrets in external (to wpa_supplicant) location. This allows, for 529f05cddf9SRui Paulo# example, operating system specific key storage to be used 530f05cddf9SRui Paulo# 531f05cddf9SRui Paulo# External password backend for testing purposes (developer use) 532f05cddf9SRui Paulo#CONFIG_EXT_PASSWORD_TEST=y 533c1d255d3SCy Schubert# File-based backend to read passwords from an external file. 534c1d255d3SCy Schubert#CONFIG_EXT_PASSWORD_FILE=y 535325151a3SRui Paulo 536325151a3SRui Paulo# Enable Fast Session Transfer (FST) 537325151a3SRui Paulo#CONFIG_FST=y 538325151a3SRui Paulo 539325151a3SRui Paulo# Enable CLI commands for FST testing 540325151a3SRui Paulo#CONFIG_FST_TEST=y 541325151a3SRui Paulo 542325151a3SRui Paulo# OS X builds. This is only for building eapol_test. 543325151a3SRui Paulo#CONFIG_OSX=y 544780fb4a2SCy Schubert 545780fb4a2SCy Schubert# Automatic Channel Selection 546780fb4a2SCy Schubert# This will allow wpa_supplicant to pick the channel automatically when channel 547780fb4a2SCy Schubert# is set to "0". 548780fb4a2SCy Schubert# 549780fb4a2SCy Schubert# TODO: Extend parser to be able to parse "channel=acs_survey" as an alternative 550780fb4a2SCy Schubert# to "channel=0". This would enable us to eventually add other ACS algorithms in 551780fb4a2SCy Schubert# similar way. 552780fb4a2SCy Schubert# 553780fb4a2SCy Schubert# Automatic selection is currently only done through initialization, later on 554780fb4a2SCy Schubert# we hope to do background checks to keep us moving to more ideal channels as 555780fb4a2SCy Schubert# time goes by. ACS is currently only supported through the nl80211 driver and 556780fb4a2SCy Schubert# your driver must have survey dump capability that is filled by the driver 557780fb4a2SCy Schubert# during scanning. 558780fb4a2SCy Schubert# 559780fb4a2SCy Schubert# TODO: In analogy to hostapd be able to customize the ACS survey algorithm with 560780fb4a2SCy Schubert# a newly to create wpa_supplicant.conf variable acs_num_scans. 561780fb4a2SCy Schubert# 562780fb4a2SCy Schubert# Supported ACS drivers: 563780fb4a2SCy Schubert# * ath9k 564780fb4a2SCy Schubert# * ath5k 565780fb4a2SCy Schubert# * ath10k 566780fb4a2SCy Schubert# 567780fb4a2SCy Schubert# For more details refer to: 568780fb4a2SCy Schubert# http://wireless.kernel.org/en/users/Documentation/acs 569780fb4a2SCy Schubert#CONFIG_ACS=y 570780fb4a2SCy Schubert 571780fb4a2SCy Schubert# Support Multi Band Operation 572780fb4a2SCy Schubert#CONFIG_MBO=y 57385732ac8SCy Schubert 57485732ac8SCy Schubert# Fast Initial Link Setup (FILS) (IEEE 802.11ai) 57585732ac8SCy Schubert#CONFIG_FILS=y 57685732ac8SCy Schubert# FILS shared key authentication with PFS 57785732ac8SCy Schubert#CONFIG_FILS_SK_PFS=y 57885732ac8SCy Schubert 57985732ac8SCy Schubert# Support RSN on IBSS networks 58085732ac8SCy Schubert# This is needed to be able to use mode=1 network profile with proto=RSN and 58185732ac8SCy Schubert# key_mgmt=WPA-PSK (i.e., full key management instead of WPA-None). 5824bc52338SCy SchubertCONFIG_IBSS_RSN=y 58385732ac8SCy Schubert 58485732ac8SCy Schubert# External PMKSA cache control 58585732ac8SCy Schubert# This can be used to enable control interface commands that allow the current 58685732ac8SCy Schubert# PMKSA cache entries to be fetched and new entries to be added. 58785732ac8SCy Schubert#CONFIG_PMKSA_CACHE_EXTERNAL=y 58885732ac8SCy Schubert 58985732ac8SCy Schubert# Mesh Networking (IEEE 802.11s) 59085732ac8SCy Schubert#CONFIG_MESH=y 59185732ac8SCy Schubert 59285732ac8SCy Schubert# Background scanning modules 59385732ac8SCy Schubert# These can be used to request wpa_supplicant to perform background scanning 59485732ac8SCy Schubert# operations for roaming within an ESS (same SSID). See the bgscan parameter in 59585732ac8SCy Schubert# the wpa_supplicant.conf file for more details. 59685732ac8SCy Schubert# Periodic background scans based on signal strength 5974bc52338SCy SchubertCONFIG_BGSCAN_SIMPLE=y 59885732ac8SCy Schubert# Learn channels used by the network and try to avoid bgscans on other 59985732ac8SCy Schubert# channels (experimental) 60085732ac8SCy Schubert#CONFIG_BGSCAN_LEARN=y 60185732ac8SCy Schubert 60285732ac8SCy Schubert# Opportunistic Wireless Encryption (OWE) 60385732ac8SCy Schubert# Experimental implementation of draft-harkins-owe-07.txt 60485732ac8SCy Schubert#CONFIG_OWE=y 6054bc52338SCy Schubert 606*32a95656SCy Schubert# Device Provisioning Protocol (DPP) (also known as Wi-Fi Easy Connect) 6074bc52338SCy SchubertCONFIG_DPP=y 608*32a95656SCy Schubert# DPP version 2 support 609*32a95656SCy SchubertCONFIG_DPP2=y 610*32a95656SCy Schubert# DPP version 3 support (experimental and still changing; do not enable for 611*32a95656SCy Schubert# production use) 612*32a95656SCy Schubert#CONFIG_DPP3=y 613c1d255d3SCy Schubert 614c1d255d3SCy Schubert# Wired equivalent privacy (WEP) 615c1d255d3SCy Schubert# WEP is an obsolete cryptographic data confidentiality algorithm that is not 616c1d255d3SCy Schubert# considered secure. It should not be used for anything anymore. The 617c1d255d3SCy Schubert# functionality needed to use WEP is available in the current wpa_supplicant 618c1d255d3SCy Schubert# release under this optional build parameter. This functionality is subject to 619c1d255d3SCy Schubert# be completely removed in a future release. 620c1d255d3SCy Schubert#CONFIG_WEP=y 621c1d255d3SCy Schubert 622c1d255d3SCy Schubert# Remove all TKIP functionality 623c1d255d3SCy Schubert# TKIP is an old cryptographic data confidentiality algorithm that is not 624c1d255d3SCy Schubert# considered secure. It should not be used anymore for anything else than a 625c1d255d3SCy Schubert# backwards compatibility option as a group cipher when connecting to APs that 626c1d255d3SCy Schubert# use WPA+WPA2 mixed mode. For now, the default wpa_supplicant build includes 627c1d255d3SCy Schubert# support for this by default, but that functionality is subject to be removed 628c1d255d3SCy Schubert# in the future. 629c1d255d3SCy Schubert#CONFIG_NO_TKIP=y 630c1d255d3SCy Schubert 631c1d255d3SCy Schubert# Pre-Association Security Negotiation (PASN) 632c1d255d3SCy Schubert# Experimental implementation based on IEEE P802.11z/D2.6 and the protocol 633c1d255d3SCy Schubert# design is still subject to change. As such, this should not yet be enabled in 634c1d255d3SCy Schubert# production use. 635c1d255d3SCy Schubert#CONFIG_PASN=y 636