139beb93cSSam Leffler##### hostapd configuration file ############################################## 239beb93cSSam Leffler# Empty lines and lines starting with # are ignored 339beb93cSSam Leffler 439beb93cSSam Leffler# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for 55b9c547cSRui Paulo# management frames with the Host AP driver); wlan0 with many nl80211 drivers 6780fb4a2SCy Schubert# Note: This attribute can be overridden by the values supplied with the '-i' 7780fb4a2SCy Schubert# command line parameter. 839beb93cSSam Lefflerinterface=wlan0 939beb93cSSam Leffler 105b9c547cSRui Paulo# In case of atheros and nl80211 driver interfaces, an additional 11e28a4053SRui Paulo# configuration parameter, bridge, may be used to notify hostapd if the 12e28a4053SRui Paulo# interface is included in a bridge. This parameter is not used with Host AP 13e28a4053SRui Paulo# driver. If the bridge parameter is not set, the drivers will automatically 14e28a4053SRui Paulo# figure out the bridge interface (assuming sysfs is enabled and mounted to 15e28a4053SRui Paulo# /sys) and this parameter may not be needed. 16e28a4053SRui Paulo# 17e28a4053SRui Paulo# For nl80211, this parameter can be used to request the AP interface to be 18e28a4053SRui Paulo# added to the bridge automatically (brctl may refuse to do this before hostapd 19e28a4053SRui Paulo# has been started to change the interface mode). If needed, the bridge 20e28a4053SRui Paulo# interface is also created. 2139beb93cSSam Leffler#bridge=br0 2239beb93cSSam Leffler 235b9c547cSRui Paulo# Driver interface type (hostap/wired/none/nl80211/bsd); 2439beb93cSSam Leffler# default: hostap). nl80211 is used with all Linux mac80211 drivers. 2539beb93cSSam Leffler# Use driver=none if building hostapd as a standalone RADIUS server that does 2639beb93cSSam Leffler# not control any wireless/wired driver. 2739beb93cSSam Leffler# driver=hostap 2839beb93cSSam Leffler 295b9c547cSRui Paulo# Driver interface parameters (mainly for development testing use) 305b9c547cSRui Paulo# driver_params=<params> 315b9c547cSRui Paulo 3239beb93cSSam Leffler# hostapd event logger configuration 3339beb93cSSam Leffler# 3439beb93cSSam Leffler# Two output method: syslog and stdout (only usable if not forking to 3539beb93cSSam Leffler# background). 3639beb93cSSam Leffler# 3739beb93cSSam Leffler# Module bitfield (ORed bitfield of modules that will be logged; -1 = all 3839beb93cSSam Leffler# modules): 3939beb93cSSam Leffler# bit 0 (1) = IEEE 802.11 4039beb93cSSam Leffler# bit 1 (2) = IEEE 802.1X 4139beb93cSSam Leffler# bit 2 (4) = RADIUS 4239beb93cSSam Leffler# bit 3 (8) = WPA 4339beb93cSSam Leffler# bit 4 (16) = driver interface 4439beb93cSSam Leffler# bit 6 (64) = MLME 4539beb93cSSam Leffler# 4639beb93cSSam Leffler# Levels (minimum value for logged events): 4739beb93cSSam Leffler# 0 = verbose debugging 4839beb93cSSam Leffler# 1 = debugging 4939beb93cSSam Leffler# 2 = informational messages 5039beb93cSSam Leffler# 3 = notification 5139beb93cSSam Leffler# 4 = warning 5239beb93cSSam Leffler# 5339beb93cSSam Lefflerlogger_syslog=-1 5439beb93cSSam Lefflerlogger_syslog_level=2 5539beb93cSSam Lefflerlogger_stdout=-1 5639beb93cSSam Lefflerlogger_stdout_level=2 5739beb93cSSam Leffler 5839beb93cSSam Leffler# Interface for separate control program. If this is specified, hostapd 5939beb93cSSam Leffler# will create this directory and a UNIX domain socket for listening to requests 6039beb93cSSam Leffler# from external programs (CLI/GUI, etc.) for status information and 6139beb93cSSam Leffler# configuration. The socket file will be named based on the interface name, so 6239beb93cSSam Leffler# multiple hostapd processes/interfaces can be run at the same time if more 6339beb93cSSam Leffler# than one interface is used. 6439beb93cSSam Leffler# /var/run/hostapd is the recommended directory for sockets and by default, 6539beb93cSSam Leffler# hostapd_cli will use it when trying to connect with hostapd. 6639beb93cSSam Lefflerctrl_interface=/var/run/hostapd 6739beb93cSSam Leffler 6839beb93cSSam Leffler# Access control for the control interface can be configured by setting the 6939beb93cSSam Leffler# directory to allow only members of a group to use sockets. This way, it is 7039beb93cSSam Leffler# possible to run hostapd as root (since it needs to change network 7139beb93cSSam Leffler# configuration and open raw sockets) and still allow GUI/CLI components to be 7239beb93cSSam Leffler# run as non-root users. However, since the control interface can be used to 7339beb93cSSam Leffler# change the network configuration, this access needs to be protected in many 7439beb93cSSam Leffler# cases. By default, hostapd is configured to use gid 0 (root). If you 75c1d255d3SCy Schubert# want to allow non-root users to use the control interface, add a new group 7639beb93cSSam Leffler# and change this value to match with that group. Add users that should have 7739beb93cSSam Leffler# control interface access to this group. 7839beb93cSSam Leffler# 7939beb93cSSam Leffler# This variable can be a group name or gid. 8039beb93cSSam Leffler#ctrl_interface_group=wheel 8139beb93cSSam Lefflerctrl_interface_group=0 8239beb93cSSam Leffler 8339beb93cSSam Leffler 8439beb93cSSam Leffler##### IEEE 802.11 related configuration ####################################### 8539beb93cSSam Leffler 8639beb93cSSam Leffler# SSID to be used in IEEE 802.11 management frames 8739beb93cSSam Lefflerssid=test 88f05cddf9SRui Paulo# Alternative formats for configuring SSID 89f05cddf9SRui Paulo# (double quoted string, hexdump, printf-escaped string) 90f05cddf9SRui Paulo#ssid2="test" 91f05cddf9SRui Paulo#ssid2=74657374 92f05cddf9SRui Paulo#ssid2=P"hello\nthere" 93f05cddf9SRui Paulo 94f05cddf9SRui Paulo# UTF-8 SSID: Whether the SSID is to be interpreted using UTF-8 encoding 95f05cddf9SRui Paulo#utf8_ssid=1 9639beb93cSSam Leffler 9739beb93cSSam Leffler# Country code (ISO/IEC 3166-1). Used to set regulatory domain. 9839beb93cSSam Leffler# Set as needed to indicate country in which device is operating. 9939beb93cSSam Leffler# This can limit available channels and transmit power. 10085732ac8SCy Schubert# These two octets are used as the first two octets of the Country String 10185732ac8SCy Schubert# (dot11CountryString) 10239beb93cSSam Leffler#country_code=US 10339beb93cSSam Leffler 10485732ac8SCy Schubert# The third octet of the Country String (dot11CountryString) 10585732ac8SCy Schubert# This parameter is used to set the third octet of the country string. 10685732ac8SCy Schubert# 10785732ac8SCy Schubert# All environments of the current frequency band and country (default) 10885732ac8SCy Schubert#country3=0x20 10985732ac8SCy Schubert# Outdoor environment only 11085732ac8SCy Schubert#country3=0x4f 11185732ac8SCy Schubert# Indoor environment only 11285732ac8SCy Schubert#country3=0x49 11385732ac8SCy Schubert# Noncountry entity (country_code=XX) 11485732ac8SCy Schubert#country3=0x58 11585732ac8SCy Schubert# IEEE 802.11 standard Annex E table indication: 0x01 .. 0x1f 11685732ac8SCy Schubert# Annex E, Table E-4 (Global operating classes) 11785732ac8SCy Schubert#country3=0x04 11885732ac8SCy Schubert 11939beb93cSSam Leffler# Enable IEEE 802.11d. This advertises the country_code and the set of allowed 12039beb93cSSam Leffler# channels and transmit power levels based on the regulatory limits. The 12139beb93cSSam Leffler# country_code setting must be configured with the correct country for 12239beb93cSSam Leffler# IEEE 802.11d functions. 12339beb93cSSam Leffler# (default: 0 = disabled) 12439beb93cSSam Leffler#ieee80211d=1 12539beb93cSSam Leffler 1265b9c547cSRui Paulo# Enable IEEE 802.11h. This enables radar detection and DFS support if 1275b9c547cSRui Paulo# available. DFS support is required on outdoor 5 GHz channels in most countries 1285b9c547cSRui Paulo# of the world. This can be used only with ieee80211d=1. 1295b9c547cSRui Paulo# (default: 0 = disabled) 1305b9c547cSRui Paulo#ieee80211h=1 1315b9c547cSRui Paulo 1325b9c547cSRui Paulo# Add Power Constraint element to Beacon and Probe Response frames 1335b9c547cSRui Paulo# This config option adds Power Constraint element when applicable and Country 1345b9c547cSRui Paulo# element is added. Power Constraint element is required by Transmit Power 1355b9c547cSRui Paulo# Control. This can be used only with ieee80211d=1. 1365b9c547cSRui Paulo# Valid values are 0..255. 1375b9c547cSRui Paulo#local_pwr_constraint=3 1385b9c547cSRui Paulo 1395b9c547cSRui Paulo# Set Spectrum Management subfield in the Capability Information field. 1405b9c547cSRui Paulo# This config option forces the Spectrum Management bit to be set. When this 1415b9c547cSRui Paulo# option is not set, the value of the Spectrum Management bit depends on whether 1425b9c547cSRui Paulo# DFS or TPC is required by regulatory authorities. This can be used only with 1435b9c547cSRui Paulo# ieee80211d=1 and local_pwr_constraint configured. 1445b9c547cSRui Paulo#spectrum_mgmt_required=1 1455b9c547cSRui Paulo 146780fb4a2SCy Schubert# Operation mode (a = IEEE 802.11a (5 GHz), b = IEEE 802.11b (2.4 GHz), 147780fb4a2SCy Schubert# g = IEEE 802.11g (2.4 GHz), ad = IEEE 802.11ad (60 GHz); a/g options are used 148780fb4a2SCy Schubert# with IEEE 802.11n (HT), too, to specify band). For IEEE 802.11ac (VHT), this 149c1d255d3SCy Schubert# needs to be set to hw_mode=a. For IEEE 802.11ax (HE) on 6 GHz this needs 150c1d255d3SCy Schubert# to be set to hw_mode=a. When using ACS (see channel parameter), a 151780fb4a2SCy Schubert# special value "any" can be used to indicate that any support band can be used. 152780fb4a2SCy Schubert# This special case is currently supported only with drivers with which 153780fb4a2SCy Schubert# offloaded ACS is used. 15439beb93cSSam Leffler# Default: IEEE 802.11b 155f05cddf9SRui Paulohw_mode=g 15639beb93cSSam Leffler 15739beb93cSSam Leffler# Channel number (IEEE 802.11) 15839beb93cSSam Leffler# (default: 0, i.e., not set) 159f05cddf9SRui Paulo# Please note that some drivers do not use this value from hostapd and the 160f05cddf9SRui Paulo# channel will need to be configured separately with iwconfig. 1615b9c547cSRui Paulo# 1625b9c547cSRui Paulo# If CONFIG_ACS build option is enabled, the channel can be selected 1635b9c547cSRui Paulo# automatically at run time by setting channel=acs_survey or channel=0, both of 1645b9c547cSRui Paulo# which will enable the ACS survey based algorithm. 165f05cddf9SRui Paulochannel=1 16639beb93cSSam Leffler 167c1d255d3SCy Schubert# Global operating class (IEEE 802.11, Annex E, Table E-4) 168c1d255d3SCy Schubert# This option allows hostapd to specify the operating class of the channel 169c1d255d3SCy Schubert# configured with the channel parameter. channel and op_class together can 170c1d255d3SCy Schubert# uniquely identify channels across different bands, including the 6 GHz band. 171c1d255d3SCy Schubert#op_class=131 172c1d255d3SCy Schubert 1735b9c547cSRui Paulo# ACS tuning - Automatic Channel Selection 174c1d255d3SCy Schubert# See: https://wireless.wiki.kernel.org/en/users/documentation/acs 1755b9c547cSRui Paulo# 1765b9c547cSRui Paulo# You can customize the ACS survey algorithm with following variables: 1775b9c547cSRui Paulo# 1785b9c547cSRui Paulo# acs_num_scans requirement is 1..100 - number of scans to be performed that 1795b9c547cSRui Paulo# are used to trigger survey data gathering of an underlying device driver. 1805b9c547cSRui Paulo# Scans are passive and typically take a little over 100ms (depending on the 1815b9c547cSRui Paulo# driver) on each available channel for given hw_mode. Increasing this value 1825b9c547cSRui Paulo# means sacrificing startup time and gathering more data wrt channel 1835b9c547cSRui Paulo# interference that may help choosing a better channel. This can also help fine 1845b9c547cSRui Paulo# tune the ACS scan time in case a driver has different scan dwell times. 1855b9c547cSRui Paulo# 1865b9c547cSRui Paulo# acs_chan_bias is a space-separated list of <channel>:<bias> pairs. It can be 1875b9c547cSRui Paulo# used to increase (or decrease) the likelihood of a specific channel to be 1885b9c547cSRui Paulo# selected by the ACS algorithm. The total interference factor for each channel 1895b9c547cSRui Paulo# gets multiplied by the specified bias value before finding the channel with 1905b9c547cSRui Paulo# the lowest value. In other words, values between 0.0 and 1.0 can be used to 1915b9c547cSRui Paulo# make a channel more likely to be picked while values larger than 1.0 make the 1925b9c547cSRui Paulo# specified channel less likely to be picked. This can be used, e.g., to prefer 1935b9c547cSRui Paulo# the commonly used 2.4 GHz band channels 1, 6, and 11 (which is the default 1945b9c547cSRui Paulo# behavior on 2.4 GHz band if no acs_chan_bias parameter is specified). 1955b9c547cSRui Paulo# 1965b9c547cSRui Paulo# Defaults: 1975b9c547cSRui Paulo#acs_num_scans=5 1985b9c547cSRui Paulo#acs_chan_bias=1:0.8 6:0.8 11:0.8 1995b9c547cSRui Paulo 2005b9c547cSRui Paulo# Channel list restriction. This option allows hostapd to select one of the 2015b9c547cSRui Paulo# provided channels when a channel should be automatically selected. 202325151a3SRui Paulo# Channel list can be provided as range using hyphen ('-') or individual 203780fb4a2SCy Schubert# channels can be specified by space (' ') separated values 204325151a3SRui Paulo# Default: all channels allowed in selected hw_mode 2055b9c547cSRui Paulo#chanlist=100 104 108 112 116 206325151a3SRui Paulo#chanlist=1 6 11-13 2075b9c547cSRui Paulo 208c1d255d3SCy Schubert# Frequency list restriction. This option allows hostapd to select one of the 209c1d255d3SCy Schubert# provided frequencies when a frequency should be automatically selected. 210c1d255d3SCy Schubert# Frequency list can be provided as range using hyphen ('-') or individual 211c1d255d3SCy Schubert# frequencies can be specified by comma (',') separated values 212c1d255d3SCy Schubert# Default: all frequencies allowed in selected hw_mode 213c1d255d3SCy Schubert#freqlist=2437,5955,5975 214c1d255d3SCy Schubert#freqlist=2437,5985-6105 215c1d255d3SCy Schubert 21685732ac8SCy Schubert# Exclude DFS channels from ACS 21785732ac8SCy Schubert# This option can be used to exclude all DFS channels from the ACS channel list 21885732ac8SCy Schubert# in cases where the driver supports DFS channels. 21985732ac8SCy Schubert#acs_exclude_dfs=1 22085732ac8SCy Schubert 221c1d255d3SCy Schubert# Include only preferred scan channels from 6 GHz band for ACS 222c1d255d3SCy Schubert# This option can be used to include only preferred scan channels in the 6 GHz 223c1d255d3SCy Schubert# band. This can be useful in particular for devices that operate only a 6 GHz 224c1d255d3SCy Schubert# BSS without a collocated 2.4/5 GHz BSS. 225c1d255d3SCy Schubert# Default behavior is to include all PSC and non-PSC channels. 226c1d255d3SCy Schubert#acs_exclude_6ghz_non_psc=1 227c1d255d3SCy Schubert 228*32a95656SCy Schubert# Set minimum permitted max TX power (in dBm) for ACS and DFS channel selection. 229*32a95656SCy Schubert# (default 0, i.e., not constraint) 230*32a95656SCy Schubert#min_tx_power=20 231*32a95656SCy Schubert 23239beb93cSSam Leffler# Beacon interval in kus (1.024 ms) (default: 100; range 15..65535) 23339beb93cSSam Lefflerbeacon_int=100 23439beb93cSSam Leffler 235f05cddf9SRui Paulo# DTIM (delivery traffic information message) period (range 1..255): 23639beb93cSSam Leffler# number of beacons between DTIMs (1 = every beacon includes DTIM element) 23739beb93cSSam Leffler# (default: 2) 23839beb93cSSam Lefflerdtim_period=2 23939beb93cSSam Leffler 24039beb93cSSam Leffler# Maximum number of stations allowed in station table. New stations will be 24139beb93cSSam Leffler# rejected after the station table is full. IEEE 802.11 has a limit of 2007 24239beb93cSSam Leffler# different association IDs, so this number should not be larger than that. 24339beb93cSSam Leffler# (default: 2007) 24439beb93cSSam Lefflermax_num_sta=255 24539beb93cSSam Leffler 246780fb4a2SCy Schubert# RTS/CTS threshold; -1 = disabled (default); range -1..65535 24739beb93cSSam Leffler# If this field is not included in hostapd.conf, hostapd will not control 24839beb93cSSam Leffler# RTS threshold and 'iwconfig wlan# rts <val>' can be used to set it. 249780fb4a2SCy Schubertrts_threshold=-1 25039beb93cSSam Leffler 251780fb4a2SCy Schubert# Fragmentation threshold; -1 = disabled (default); range -1, 256..2346 25239beb93cSSam Leffler# If this field is not included in hostapd.conf, hostapd will not control 25339beb93cSSam Leffler# fragmentation threshold and 'iwconfig wlan# frag <val>' can be used to set 25439beb93cSSam Leffler# it. 255780fb4a2SCy Schubertfragm_threshold=-1 25639beb93cSSam Leffler 25739beb93cSSam Leffler# Rate configuration 25839beb93cSSam Leffler# Default is to enable all rates supported by the hardware. This configuration 25939beb93cSSam Leffler# item allows this list be filtered so that only the listed rates will be left 26039beb93cSSam Leffler# in the list. If the list is empty, all rates are used. This list can have 26139beb93cSSam Leffler# entries that are not in the list of rates the hardware supports (such entries 26239beb93cSSam Leffler# are ignored). The entries in this list are in 100 kbps, i.e., 11 Mbps = 110. 26339beb93cSSam Leffler# If this item is present, at least one rate have to be matching with the rates 26439beb93cSSam Leffler# hardware supports. 26539beb93cSSam Leffler# default: use the most common supported rate setting for the selected 26639beb93cSSam Leffler# hw_mode (i.e., this line can be removed from configuration file in most 26739beb93cSSam Leffler# cases) 26839beb93cSSam Leffler#supported_rates=10 20 55 110 60 90 120 180 240 360 480 540 26939beb93cSSam Leffler 27039beb93cSSam Leffler# Basic rate set configuration 27139beb93cSSam Leffler# List of rates (in 100 kbps) that are included in the basic rate set. 27239beb93cSSam Leffler# If this item is not included, usually reasonable default set is used. 27339beb93cSSam Leffler#basic_rates=10 20 27439beb93cSSam Leffler#basic_rates=10 20 55 110 27539beb93cSSam Leffler#basic_rates=60 120 240 27639beb93cSSam Leffler 27785732ac8SCy Schubert# Beacon frame TX rate configuration 27885732ac8SCy Schubert# This sets the TX rate that is used to transmit Beacon frames. If this item is 27985732ac8SCy Schubert# not included, the driver default rate (likely lowest rate) is used. 28085732ac8SCy Schubert# Legacy (CCK/OFDM rates): 28185732ac8SCy Schubert# beacon_rate=<legacy rate in 100 kbps> 28285732ac8SCy Schubert# HT: 28385732ac8SCy Schubert# beacon_rate=ht:<HT MCS> 28485732ac8SCy Schubert# VHT: 28585732ac8SCy Schubert# beacon_rate=vht:<VHT MCS> 286c1d255d3SCy Schubert# HE: 287c1d255d3SCy Schubert# beacon_rate=he:<HE MCS> 28885732ac8SCy Schubert# 28985732ac8SCy Schubert# For example, beacon_rate=10 for 1 Mbps or beacon_rate=60 for 6 Mbps (OFDM). 29085732ac8SCy Schubert#beacon_rate=10 29185732ac8SCy Schubert 29239beb93cSSam Leffler# Short Preamble 29339beb93cSSam Leffler# This parameter can be used to enable optional use of short preamble for 29439beb93cSSam Leffler# frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance. 29539beb93cSSam Leffler# This applies only to IEEE 802.11b-compatible networks and this should only be 29639beb93cSSam Leffler# enabled if the local hardware supports use of short preamble. If any of the 29739beb93cSSam Leffler# associated STAs do not support short preamble, use of short preamble will be 29839beb93cSSam Leffler# disabled (and enabled when such STAs disassociate) dynamically. 29939beb93cSSam Leffler# 0 = do not allow use of short preamble (default) 30039beb93cSSam Leffler# 1 = allow use of short preamble 30139beb93cSSam Leffler#preamble=1 30239beb93cSSam Leffler 30339beb93cSSam Leffler# Station MAC address -based authentication 30439beb93cSSam Leffler# Please note that this kind of access control requires a driver that uses 30539beb93cSSam Leffler# hostapd to take care of management frame processing and as such, this can be 3065b9c547cSRui Paulo# used with driver=hostap or driver=nl80211, but not with driver=atheros. 30739beb93cSSam Leffler# 0 = accept unless in deny list 30839beb93cSSam Leffler# 1 = deny unless in accept list 30939beb93cSSam Leffler# 2 = use external RADIUS server (accept/deny lists are searched first) 31039beb93cSSam Lefflermacaddr_acl=0 31139beb93cSSam Leffler 31239beb93cSSam Leffler# Accept/deny lists are read from separate files (containing list of 31339beb93cSSam Leffler# MAC addresses, one per line). Use absolute path name to make sure that the 31439beb93cSSam Leffler# files can be read on SIGHUP configuration reloads. 31539beb93cSSam Leffler#accept_mac_file=/etc/hostapd.accept 31639beb93cSSam Leffler#deny_mac_file=/etc/hostapd.deny 31739beb93cSSam Leffler 31839beb93cSSam Leffler# IEEE 802.11 specifies two authentication algorithms. hostapd can be 31939beb93cSSam Leffler# configured to allow both of these or only one. Open system authentication 32039beb93cSSam Leffler# should be used with IEEE 802.1X. 32139beb93cSSam Leffler# Bit fields of allowed authentication algorithms: 32239beb93cSSam Leffler# bit 0 = Open System Authentication 32339beb93cSSam Leffler# bit 1 = Shared Key Authentication (requires WEP) 32439beb93cSSam Lefflerauth_algs=3 32539beb93cSSam Leffler 32639beb93cSSam Leffler# Send empty SSID in beacons and ignore probe request frames that do not 32739beb93cSSam Leffler# specify full SSID, i.e., require stations to know SSID. 32839beb93cSSam Leffler# default: disabled (0) 32939beb93cSSam Leffler# 1 = send empty (length=0) SSID in beacon and ignore probe request for 33039beb93cSSam Leffler# broadcast SSID 33139beb93cSSam Leffler# 2 = clear SSID (ASCII 0), but keep the original length (this may be required 33239beb93cSSam Leffler# with some clients that do not support empty SSID) and ignore probe 33339beb93cSSam Leffler# requests for broadcast SSID 33439beb93cSSam Lefflerignore_broadcast_ssid=0 33539beb93cSSam Leffler 336780fb4a2SCy Schubert# Do not reply to broadcast Probe Request frames from unassociated STA if there 337780fb4a2SCy Schubert# is no room for additional stations (max_num_sta). This can be used to 338780fb4a2SCy Schubert# discourage a STA from trying to associate with this AP if the association 339780fb4a2SCy Schubert# would be rejected due to maximum STA limit. 340780fb4a2SCy Schubert# Default: 0 (disabled) 341780fb4a2SCy Schubert#no_probe_resp_if_max_sta=0 342780fb4a2SCy Schubert 343780fb4a2SCy Schubert# Additional vendor specific elements for Beacon and Probe Response frames 344f05cddf9SRui Paulo# This parameter can be used to add additional vendor specific element(s) into 345f05cddf9SRui Paulo# the end of the Beacon and Probe Response frames. The format for these 346f05cddf9SRui Paulo# element(s) is a hexdump of the raw information elements (id+len+payload for 347f05cddf9SRui Paulo# one or more elements) 348f05cddf9SRui Paulo#vendor_elements=dd0411223301 349f05cddf9SRui Paulo 350780fb4a2SCy Schubert# Additional vendor specific elements for (Re)Association Response frames 351780fb4a2SCy Schubert# This parameter can be used to add additional vendor specific element(s) into 352780fb4a2SCy Schubert# the end of the (Re)Association Response frames. The format for these 353780fb4a2SCy Schubert# element(s) is a hexdump of the raw information elements (id+len+payload for 354780fb4a2SCy Schubert# one or more elements) 355780fb4a2SCy Schubert#assocresp_elements=dd0411223301 356780fb4a2SCy Schubert 35739beb93cSSam Leffler# TX queue parameters (EDCF / bursting) 35839beb93cSSam Leffler# tx_queue_<queue name>_<param> 35985732ac8SCy Schubert# queues: data0, data1, data2, data3 36039beb93cSSam Leffler# (data0 is the highest priority queue) 36139beb93cSSam Leffler# parameters: 36239beb93cSSam Leffler# aifs: AIFS (default 2) 363325151a3SRui Paulo# cwmin: cwMin (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 364325151a3SRui Paulo# 16383, 32767) 365325151a3SRui Paulo# cwmax: cwMax (same values as cwMin, cwMax >= cwMin) 36639beb93cSSam Leffler# burst: maximum length (in milliseconds with precision of up to 0.1 ms) for 36739beb93cSSam Leffler# bursting 36839beb93cSSam Leffler# 36939beb93cSSam Leffler# Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e): 37039beb93cSSam Leffler# These parameters are used by the access point when transmitting frames 37139beb93cSSam Leffler# to the clients. 37239beb93cSSam Leffler# 37339beb93cSSam Leffler# Low priority / AC_BK = background 37439beb93cSSam Leffler#tx_queue_data3_aifs=7 37539beb93cSSam Leffler#tx_queue_data3_cwmin=15 37639beb93cSSam Leffler#tx_queue_data3_cwmax=1023 37739beb93cSSam Leffler#tx_queue_data3_burst=0 37839beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0 37939beb93cSSam Leffler# 38039beb93cSSam Leffler# Normal priority / AC_BE = best effort 38139beb93cSSam Leffler#tx_queue_data2_aifs=3 38239beb93cSSam Leffler#tx_queue_data2_cwmin=15 38339beb93cSSam Leffler#tx_queue_data2_cwmax=63 38439beb93cSSam Leffler#tx_queue_data2_burst=0 38539beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=31 cWmax=127 burst=0 38639beb93cSSam Leffler# 38739beb93cSSam Leffler# High priority / AC_VI = video 38839beb93cSSam Leffler#tx_queue_data1_aifs=1 38939beb93cSSam Leffler#tx_queue_data1_cwmin=7 39039beb93cSSam Leffler#tx_queue_data1_cwmax=15 39139beb93cSSam Leffler#tx_queue_data1_burst=3.0 39239beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=15 cWmax=31 burst=6.0 39339beb93cSSam Leffler# 39439beb93cSSam Leffler# Highest priority / AC_VO = voice 39539beb93cSSam Leffler#tx_queue_data0_aifs=1 39639beb93cSSam Leffler#tx_queue_data0_cwmin=3 39739beb93cSSam Leffler#tx_queue_data0_cwmax=7 39839beb93cSSam Leffler#tx_queue_data0_burst=1.5 39939beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=7 cWmax=15 burst=3.3 40039beb93cSSam Leffler 4013157ba21SRui Paulo# 802.1D Tag (= UP) to AC mappings 40239beb93cSSam Leffler# WMM specifies following mapping of data frames to different ACs. This mapping 40339beb93cSSam Leffler# can be configured using Linux QoS/tc and sch_pktpri.o module. 40439beb93cSSam Leffler# 802.1D Tag 802.1D Designation Access Category WMM Designation 40539beb93cSSam Leffler# 1 BK AC_BK Background 40639beb93cSSam Leffler# 2 - AC_BK Background 40739beb93cSSam Leffler# 0 BE AC_BE Best Effort 4083157ba21SRui Paulo# 3 EE AC_BE Best Effort 40939beb93cSSam Leffler# 4 CL AC_VI Video 41039beb93cSSam Leffler# 5 VI AC_VI Video 41139beb93cSSam Leffler# 6 VO AC_VO Voice 41239beb93cSSam Leffler# 7 NC AC_VO Voice 41339beb93cSSam Leffler# Data frames with no priority information: AC_BE 41439beb93cSSam Leffler# Management frames: AC_VO 41539beb93cSSam Leffler# PS-Poll frames: AC_BE 41639beb93cSSam Leffler 41739beb93cSSam Leffler# Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e): 41839beb93cSSam Leffler# for 802.11a or 802.11g networks 41939beb93cSSam Leffler# These parameters are sent to WMM clients when they associate. 42039beb93cSSam Leffler# The parameters will be used by WMM clients for frames transmitted to the 42139beb93cSSam Leffler# access point. 42239beb93cSSam Leffler# 42339beb93cSSam Leffler# note - txop_limit is in units of 32microseconds 42439beb93cSSam Leffler# note - acm is admission control mandatory flag. 0 = admission control not 42539beb93cSSam Leffler# required, 1 = mandatory 426325151a3SRui Paulo# note - Here cwMin and cmMax are in exponent form. The actual cw value used 427325151a3SRui Paulo# will be (2^n)-1 where n is the value given here. The allowed range for these 428325151a3SRui Paulo# wmm_ac_??_{cwmin,cwmax} is 0..15 with cwmax >= cwmin. 42939beb93cSSam Leffler# 4303157ba21SRui Paulowmm_enabled=1 43139beb93cSSam Leffler# 432e28a4053SRui Paulo# WMM-PS Unscheduled Automatic Power Save Delivery [U-APSD] 433e28a4053SRui Paulo# Enable this flag if U-APSD supported outside hostapd (eg., Firmware/driver) 434e28a4053SRui Paulo#uapsd_advertisement_enabled=1 435e28a4053SRui Paulo# 43639beb93cSSam Leffler# Low priority / AC_BK = background 4373157ba21SRui Paulowmm_ac_bk_cwmin=4 4383157ba21SRui Paulowmm_ac_bk_cwmax=10 4393157ba21SRui Paulowmm_ac_bk_aifs=7 4403157ba21SRui Paulowmm_ac_bk_txop_limit=0 4413157ba21SRui Paulowmm_ac_bk_acm=0 44239beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=5 cWmax=10 44339beb93cSSam Leffler# 44439beb93cSSam Leffler# Normal priority / AC_BE = best effort 4453157ba21SRui Paulowmm_ac_be_aifs=3 4463157ba21SRui Paulowmm_ac_be_cwmin=4 4473157ba21SRui Paulowmm_ac_be_cwmax=10 4483157ba21SRui Paulowmm_ac_be_txop_limit=0 4493157ba21SRui Paulowmm_ac_be_acm=0 45039beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=5 cWmax=7 45139beb93cSSam Leffler# 45239beb93cSSam Leffler# High priority / AC_VI = video 4533157ba21SRui Paulowmm_ac_vi_aifs=2 4543157ba21SRui Paulowmm_ac_vi_cwmin=3 4553157ba21SRui Paulowmm_ac_vi_cwmax=4 4563157ba21SRui Paulowmm_ac_vi_txop_limit=94 4573157ba21SRui Paulowmm_ac_vi_acm=0 45839beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188 45939beb93cSSam Leffler# 46039beb93cSSam Leffler# Highest priority / AC_VO = voice 4613157ba21SRui Paulowmm_ac_vo_aifs=2 4623157ba21SRui Paulowmm_ac_vo_cwmin=2 4633157ba21SRui Paulowmm_ac_vo_cwmax=3 4643157ba21SRui Paulowmm_ac_vo_txop_limit=47 4653157ba21SRui Paulowmm_ac_vo_acm=0 46639beb93cSSam Leffler# Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102 46739beb93cSSam Leffler 4684bc52338SCy Schubert# Enable Multi-AP functionality 4694bc52338SCy Schubert# 0 = disabled (default) 4704bc52338SCy Schubert# 1 = AP support backhaul BSS 4714bc52338SCy Schubert# 2 = AP support fronthaul BSS 4724bc52338SCy Schubert# 3 = AP supports both backhaul BSS and fronthaul BSS 4734bc52338SCy Schubert#multi_ap=0 4744bc52338SCy Schubert 47539beb93cSSam Leffler# Static WEP key configuration 47639beb93cSSam Leffler# 47739beb93cSSam Leffler# The key number to use when transmitting. 47839beb93cSSam Leffler# It must be between 0 and 3, and the corresponding key must be set. 47939beb93cSSam Leffler# default: not set 48039beb93cSSam Leffler#wep_default_key=0 48139beb93cSSam Leffler# The WEP keys to use. 48239beb93cSSam Leffler# A key may be a quoted string or unquoted hexadecimal digits. 48339beb93cSSam Leffler# The key length should be 5, 13, or 16 characters, or 10, 26, or 32 48439beb93cSSam Leffler# digits, depending on whether 40-bit (64-bit), 104-bit (128-bit), or 48539beb93cSSam Leffler# 128-bit (152-bit) WEP is used. 48639beb93cSSam Leffler# Only the default key must be supplied; the others are optional. 48739beb93cSSam Leffler# default: not set 48839beb93cSSam Leffler#wep_key0=123456789a 48939beb93cSSam Leffler#wep_key1="vwxyz" 49039beb93cSSam Leffler#wep_key2=0102030405060708090a0b0c0d 49139beb93cSSam Leffler#wep_key3=".2.4.6.8.0.23" 49239beb93cSSam Leffler 49339beb93cSSam Leffler# Station inactivity limit 49439beb93cSSam Leffler# 49539beb93cSSam Leffler# If a station does not send anything in ap_max_inactivity seconds, an 49639beb93cSSam Leffler# empty data frame is sent to it in order to verify whether it is 49739beb93cSSam Leffler# still in range. If this frame is not ACKed, the station will be 49839beb93cSSam Leffler# disassociated and then deauthenticated. This feature is used to 49939beb93cSSam Leffler# clear station table of old entries when the STAs move out of the 50039beb93cSSam Leffler# range. 50139beb93cSSam Leffler# 50239beb93cSSam Leffler# The station can associate again with the AP if it is still in range; 50339beb93cSSam Leffler# this inactivity poll is just used as a nicer way of verifying 50439beb93cSSam Leffler# inactivity; i.e., client will not report broken connection because 50539beb93cSSam Leffler# disassociation frame is not sent immediately without first polling 50639beb93cSSam Leffler# the STA with a data frame. 50739beb93cSSam Leffler# default: 300 (i.e., 5 minutes) 50839beb93cSSam Leffler#ap_max_inactivity=300 509f05cddf9SRui Paulo# 510f05cddf9SRui Paulo# The inactivity polling can be disabled to disconnect stations based on 511f05cddf9SRui Paulo# inactivity timeout so that idle stations are more likely to be disconnected 512f05cddf9SRui Paulo# even if they are still in range of the AP. This can be done by setting 513f05cddf9SRui Paulo# skip_inactivity_poll to 1 (default 0). 514f05cddf9SRui Paulo#skip_inactivity_poll=0 515f05cddf9SRui Paulo 516f05cddf9SRui Paulo# Disassociate stations based on excessive transmission failures or other 517f05cddf9SRui Paulo# indications of connection loss. This depends on the driver capabilities and 518f05cddf9SRui Paulo# may not be available with all drivers. 519f05cddf9SRui Paulo#disassoc_low_ack=1 52039beb93cSSam Leffler 52139beb93cSSam Leffler# Maximum allowed Listen Interval (how many Beacon periods STAs are allowed to 52239beb93cSSam Leffler# remain asleep). Default: 65535 (no limit apart from field size) 52339beb93cSSam Leffler#max_listen_interval=100 52439beb93cSSam Leffler 525e28a4053SRui Paulo# WDS (4-address frame) mode with per-station virtual interfaces 526e28a4053SRui Paulo# (only supported with driver=nl80211) 527e28a4053SRui Paulo# This mode allows associated stations to use 4-address frames to allow layer 2 528e28a4053SRui Paulo# bridging to be used. 529e28a4053SRui Paulo#wds_sta=1 530e28a4053SRui Paulo 531f05cddf9SRui Paulo# If bridge parameter is set, the WDS STA interface will be added to the same 532f05cddf9SRui Paulo# bridge by default. This can be overridden with the wds_bridge parameter to 533f05cddf9SRui Paulo# use a separate bridge. 534f05cddf9SRui Paulo#wds_bridge=wds-br0 535f05cddf9SRui Paulo 5365b9c547cSRui Paulo# Start the AP with beaconing disabled by default. 5375b9c547cSRui Paulo#start_disabled=0 5385b9c547cSRui Paulo 539f05cddf9SRui Paulo# Client isolation can be used to prevent low-level bridging of frames between 540f05cddf9SRui Paulo# associated stations in the BSS. By default, this bridging is allowed. 541f05cddf9SRui Paulo#ap_isolate=1 542f05cddf9SRui Paulo 5435b9c547cSRui Paulo# BSS Load update period (in BUs) 5445b9c547cSRui Paulo# This field is used to enable and configure adding a BSS Load element into 5455b9c547cSRui Paulo# Beacon and Probe Response frames. 5465b9c547cSRui Paulo#bss_load_update_period=50 5475b9c547cSRui Paulo 54885732ac8SCy Schubert# Channel utilization averaging period (in BUs) 54985732ac8SCy Schubert# This field is used to enable and configure channel utilization average 55085732ac8SCy Schubert# calculation with bss_load_update_period. This should be in multiples of 55185732ac8SCy Schubert# bss_load_update_period for more accurate calculation. 55285732ac8SCy Schubert#chan_util_avg_period=600 55385732ac8SCy Schubert 5545b9c547cSRui Paulo# Fixed BSS Load value for testing purposes 5555b9c547cSRui Paulo# This field can be used to configure hostapd to add a fixed BSS Load element 5565b9c547cSRui Paulo# into Beacon and Probe Response frames for testing purposes. The format is 5575b9c547cSRui Paulo# <station count>:<channel utilization>:<available admission capacity> 5585b9c547cSRui Paulo#bss_load_test=12:80:20000 5595b9c547cSRui Paulo 56085732ac8SCy Schubert# Multicast to unicast conversion 56185732ac8SCy Schubert# Request that the AP will do multicast-to-unicast conversion for ARP, IPv4, and 56285732ac8SCy Schubert# IPv6 frames (possibly within 802.1Q). If enabled, such frames are to be sent 56385732ac8SCy Schubert# to each station separately, with the DA replaced by their own MAC address 56485732ac8SCy Schubert# rather than the group address. 56585732ac8SCy Schubert# 56685732ac8SCy Schubert# Note that this may break certain expectations of the receiver, such as the 56785732ac8SCy Schubert# ability to drop unicast IP packets received within multicast L2 frames, or the 56885732ac8SCy Schubert# ability to not send ICMP destination unreachable messages for packets received 56985732ac8SCy Schubert# in L2 multicast (which is required, but the receiver can't tell the difference 57085732ac8SCy Schubert# if this new option is enabled). 57185732ac8SCy Schubert# 57285732ac8SCy Schubert# This also doesn't implement the 802.11 DMS (directed multicast service). 57385732ac8SCy Schubert# 57485732ac8SCy Schubert#multicast_to_unicast=0 57585732ac8SCy Schubert 57685732ac8SCy Schubert# Send broadcast Deauthentication frame on AP start/stop 57785732ac8SCy Schubert# Default: 1 (enabled) 57885732ac8SCy Schubert#broadcast_deauth=1 57985732ac8SCy Schubert 580c1d255d3SCy Schubert# Get notifications for received Management frames on control interface 581c1d255d3SCy Schubert# Default: 0 (disabled) 582c1d255d3SCy Schubert#notify_mgmt_frames=0 583c1d255d3SCy Schubert 58439beb93cSSam Leffler##### IEEE 802.11n related configuration ###################################### 58539beb93cSSam Leffler 58639beb93cSSam Leffler# ieee80211n: Whether IEEE 802.11n (HT) is enabled 58739beb93cSSam Leffler# 0 = disabled (default) 58839beb93cSSam Leffler# 1 = enabled 5893157ba21SRui Paulo# Note: You will also need to enable WMM for full HT functionality. 590780fb4a2SCy Schubert# Note: hw_mode=g (2.4 GHz) and hw_mode=a (5 GHz) is used to specify the band. 59139beb93cSSam Leffler#ieee80211n=1 59239beb93cSSam Leffler 593c1d255d3SCy Schubert# disable_11n: Boolean (0/1) to disable HT for a specific BSS 594c1d255d3SCy Schubert#disable_11n=0 595c1d255d3SCy Schubert 59639beb93cSSam Leffler# ht_capab: HT capabilities (list of flags) 59739beb93cSSam Leffler# LDPC coding capability: [LDPC] = supported 59839beb93cSSam Leffler# Supported channel width set: [HT40-] = both 20 MHz and 40 MHz with secondary 59939beb93cSSam Leffler# channel below the primary channel; [HT40+] = both 20 MHz and 40 MHz 6005b9c547cSRui Paulo# with secondary channel above the primary channel 60139beb93cSSam Leffler# (20 MHz only if neither is set) 60239beb93cSSam Leffler# Note: There are limits on which channels can be used with HT40- and 60339beb93cSSam Leffler# HT40+. Following table shows the channels that may be available for 60439beb93cSSam Leffler# HT40- and HT40+ use per IEEE 802.11n Annex J: 60539beb93cSSam Leffler# freq HT40- HT40+ 60639beb93cSSam Leffler# 2.4 GHz 5-13 1-7 (1-9 in Europe/Japan) 60739beb93cSSam Leffler# 5 GHz 40,48,56,64 36,44,52,60 60839beb93cSSam Leffler# (depending on the location, not all of these channels may be available 60939beb93cSSam Leffler# for use) 610e28a4053SRui Paulo# Please note that 40 MHz channels may switch their primary and secondary 611e28a4053SRui Paulo# channels if needed or creation of 40 MHz channel maybe rejected based 612e28a4053SRui Paulo# on overlapping BSSes. These changes are done automatically when hostapd 613e28a4053SRui Paulo# is setting up the 40 MHz channel. 61439beb93cSSam Leffler# HT-greenfield: [GF] (disabled if not set) 61539beb93cSSam Leffler# Short GI for 20 MHz: [SHORT-GI-20] (disabled if not set) 61639beb93cSSam Leffler# Short GI for 40 MHz: [SHORT-GI-40] (disabled if not set) 61739beb93cSSam Leffler# Tx STBC: [TX-STBC] (disabled if not set) 61839beb93cSSam Leffler# Rx STBC: [RX-STBC1] (one spatial stream), [RX-STBC12] (one or two spatial 61939beb93cSSam Leffler# streams), or [RX-STBC123] (one, two, or three spatial streams); Rx STBC 62039beb93cSSam Leffler# disabled if none of these set 62139beb93cSSam Leffler# HT-delayed Block Ack: [DELAYED-BA] (disabled if not set) 62239beb93cSSam Leffler# Maximum A-MSDU length: [MAX-AMSDU-7935] for 7935 octets (3839 octets if not 62339beb93cSSam Leffler# set) 62439beb93cSSam Leffler# DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set) 6255b9c547cSRui Paulo# 40 MHz intolerant [40-INTOLERANT] (not advertised if not set) 62639beb93cSSam Leffler# L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set) 62739beb93cSSam Leffler#ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40] 62839beb93cSSam Leffler 629f05cddf9SRui Paulo# Require stations to support HT PHY (reject association if they do not) 630f05cddf9SRui Paulo#require_ht=1 631f05cddf9SRui Paulo 6325b9c547cSRui Paulo# If set non-zero, require stations to perform scans of overlapping 6335b9c547cSRui Paulo# channels to test for stations which would be affected by 40 MHz traffic. 6345b9c547cSRui Paulo# This parameter sets the interval in seconds between these scans. Setting this 6355b9c547cSRui Paulo# to non-zero allows 2.4 GHz band AP to move dynamically to a 40 MHz channel if 6365b9c547cSRui Paulo# no co-existence issues with neighboring devices are found. 6375b9c547cSRui Paulo#obss_interval=0 6385b9c547cSRui Paulo 639f05cddf9SRui Paulo##### IEEE 802.11ac related configuration ##################################### 640f05cddf9SRui Paulo 641f05cddf9SRui Paulo# ieee80211ac: Whether IEEE 802.11ac (VHT) is enabled 642f05cddf9SRui Paulo# 0 = disabled (default) 643f05cddf9SRui Paulo# 1 = enabled 644f05cddf9SRui Paulo# Note: You will also need to enable WMM for full VHT functionality. 645780fb4a2SCy Schubert# Note: hw_mode=a is used to specify that 5 GHz band is used with VHT. 646f05cddf9SRui Paulo#ieee80211ac=1 647f05cddf9SRui Paulo 648c1d255d3SCy Schubert# disable_11ac: Boolean (0/1) to disable VHT for a specific BSS 649c1d255d3SCy Schubert#disable_11ac=0 650c1d255d3SCy Schubert 651f05cddf9SRui Paulo# vht_capab: VHT capabilities (list of flags) 652f05cddf9SRui Paulo# 653f05cddf9SRui Paulo# vht_max_mpdu_len: [MAX-MPDU-7991] [MAX-MPDU-11454] 654f05cddf9SRui Paulo# Indicates maximum MPDU length 655f05cddf9SRui Paulo# 0 = 3895 octets (default) 656f05cddf9SRui Paulo# 1 = 7991 octets 657f05cddf9SRui Paulo# 2 = 11454 octets 658f05cddf9SRui Paulo# 3 = reserved 659f05cddf9SRui Paulo# 660f05cddf9SRui Paulo# supported_chan_width: [VHT160] [VHT160-80PLUS80] 661f05cddf9SRui Paulo# Indicates supported Channel widths 662f05cddf9SRui Paulo# 0 = 160 MHz & 80+80 channel widths are not supported (default) 663f05cddf9SRui Paulo# 1 = 160 MHz channel width is supported 664f05cddf9SRui Paulo# 2 = 160 MHz & 80+80 channel widths are supported 665f05cddf9SRui Paulo# 3 = reserved 666f05cddf9SRui Paulo# 667f05cddf9SRui Paulo# Rx LDPC coding capability: [RXLDPC] 668f05cddf9SRui Paulo# Indicates support for receiving LDPC coded pkts 669f05cddf9SRui Paulo# 0 = Not supported (default) 670f05cddf9SRui Paulo# 1 = Supported 671f05cddf9SRui Paulo# 672f05cddf9SRui Paulo# Short GI for 80 MHz: [SHORT-GI-80] 673f05cddf9SRui Paulo# Indicates short GI support for reception of packets transmitted with TXVECTOR 674f05cddf9SRui Paulo# params format equal to VHT and CBW = 80Mhz 675f05cddf9SRui Paulo# 0 = Not supported (default) 676f05cddf9SRui Paulo# 1 = Supported 677f05cddf9SRui Paulo# 678f05cddf9SRui Paulo# Short GI for 160 MHz: [SHORT-GI-160] 679f05cddf9SRui Paulo# Indicates short GI support for reception of packets transmitted with TXVECTOR 680f05cddf9SRui Paulo# params format equal to VHT and CBW = 160Mhz 681f05cddf9SRui Paulo# 0 = Not supported (default) 682f05cddf9SRui Paulo# 1 = Supported 683f05cddf9SRui Paulo# 684f05cddf9SRui Paulo# Tx STBC: [TX-STBC-2BY1] 685f05cddf9SRui Paulo# Indicates support for the transmission of at least 2x1 STBC 686f05cddf9SRui Paulo# 0 = Not supported (default) 687f05cddf9SRui Paulo# 1 = Supported 688f05cddf9SRui Paulo# 689f05cddf9SRui Paulo# Rx STBC: [RX-STBC-1] [RX-STBC-12] [RX-STBC-123] [RX-STBC-1234] 690f05cddf9SRui Paulo# Indicates support for the reception of PPDUs using STBC 691f05cddf9SRui Paulo# 0 = Not supported (default) 692f05cddf9SRui Paulo# 1 = support of one spatial stream 693f05cddf9SRui Paulo# 2 = support of one and two spatial streams 694f05cddf9SRui Paulo# 3 = support of one, two and three spatial streams 695f05cddf9SRui Paulo# 4 = support of one, two, three and four spatial streams 696f05cddf9SRui Paulo# 5,6,7 = reserved 697f05cddf9SRui Paulo# 698f05cddf9SRui Paulo# SU Beamformer Capable: [SU-BEAMFORMER] 699f05cddf9SRui Paulo# Indicates support for operation as a single user beamformer 700f05cddf9SRui Paulo# 0 = Not supported (default) 701f05cddf9SRui Paulo# 1 = Supported 702f05cddf9SRui Paulo# 703f05cddf9SRui Paulo# SU Beamformee Capable: [SU-BEAMFORMEE] 704f05cddf9SRui Paulo# Indicates support for operation as a single user beamformee 705f05cddf9SRui Paulo# 0 = Not supported (default) 706f05cddf9SRui Paulo# 1 = Supported 707f05cddf9SRui Paulo# 708325151a3SRui Paulo# Compressed Steering Number of Beamformer Antennas Supported: 709325151a3SRui Paulo# [BF-ANTENNA-2] [BF-ANTENNA-3] [BF-ANTENNA-4] 710f05cddf9SRui Paulo# Beamformee's capability indicating the maximum number of beamformer 711f05cddf9SRui Paulo# antennas the beamformee can support when sending compressed beamforming 712f05cddf9SRui Paulo# feedback 713f05cddf9SRui Paulo# If SU beamformer capable, set to maximum value minus 1 714f05cddf9SRui Paulo# else reserved (default) 715f05cddf9SRui Paulo# 716325151a3SRui Paulo# Number of Sounding Dimensions: 717325151a3SRui Paulo# [SOUNDING-DIMENSION-2] [SOUNDING-DIMENSION-3] [SOUNDING-DIMENSION-4] 718f05cddf9SRui Paulo# Beamformer's capability indicating the maximum value of the NUM_STS parameter 719f05cddf9SRui Paulo# in the TXVECTOR of a VHT NDP 720f05cddf9SRui Paulo# If SU beamformer capable, set to maximum value minus 1 721f05cddf9SRui Paulo# else reserved (default) 722f05cddf9SRui Paulo# 723f05cddf9SRui Paulo# MU Beamformer Capable: [MU-BEAMFORMER] 724f05cddf9SRui Paulo# Indicates support for operation as an MU beamformer 725f05cddf9SRui Paulo# 0 = Not supported or sent by Non-AP STA (default) 726f05cddf9SRui Paulo# 1 = Supported 727f05cddf9SRui Paulo# 728f05cddf9SRui Paulo# VHT TXOP PS: [VHT-TXOP-PS] 729f05cddf9SRui Paulo# Indicates whether or not the AP supports VHT TXOP Power Save Mode 730f05cddf9SRui Paulo# or whether or not the STA is in VHT TXOP Power Save mode 731780fb4a2SCy Schubert# 0 = VHT AP doesn't support VHT TXOP PS mode (OR) VHT STA not in VHT TXOP PS 732f05cddf9SRui Paulo# mode 733780fb4a2SCy Schubert# 1 = VHT AP supports VHT TXOP PS mode (OR) VHT STA is in VHT TXOP power save 734f05cddf9SRui Paulo# mode 735f05cddf9SRui Paulo# 736f05cddf9SRui Paulo# +HTC-VHT Capable: [HTC-VHT] 737f05cddf9SRui Paulo# Indicates whether or not the STA supports receiving a VHT variant HT Control 738f05cddf9SRui Paulo# field. 739f05cddf9SRui Paulo# 0 = Not supported (default) 740f05cddf9SRui Paulo# 1 = supported 741f05cddf9SRui Paulo# 742f05cddf9SRui Paulo# Maximum A-MPDU Length Exponent: [MAX-A-MPDU-LEN-EXP0]..[MAX-A-MPDU-LEN-EXP7] 743f05cddf9SRui Paulo# Indicates the maximum length of A-MPDU pre-EOF padding that the STA can recv 744f05cddf9SRui Paulo# This field is an integer in the range of 0 to 7. 745f05cddf9SRui Paulo# The length defined by this field is equal to 746f05cddf9SRui Paulo# 2 pow(13 + Maximum A-MPDU Length Exponent) -1 octets 747f05cddf9SRui Paulo# 748f05cddf9SRui Paulo# VHT Link Adaptation Capable: [VHT-LINK-ADAPT2] [VHT-LINK-ADAPT3] 749f05cddf9SRui Paulo# Indicates whether or not the STA supports link adaptation using VHT variant 750f05cddf9SRui Paulo# HT Control field 751f05cddf9SRui Paulo# If +HTC-VHTcapable is 1 752f05cddf9SRui Paulo# 0 = (no feedback) if the STA does not provide VHT MFB (default) 753f05cddf9SRui Paulo# 1 = reserved 754f05cddf9SRui Paulo# 2 = (Unsolicited) if the STA provides only unsolicited VHT MFB 755f05cddf9SRui Paulo# 3 = (Both) if the STA can provide VHT MFB in response to VHT MRQ and if the 756f05cddf9SRui Paulo# STA provides unsolicited VHT MFB 757f05cddf9SRui Paulo# Reserved if +HTC-VHTcapable is 0 758f05cddf9SRui Paulo# 759f05cddf9SRui Paulo# Rx Antenna Pattern Consistency: [RX-ANTENNA-PATTERN] 760f05cddf9SRui Paulo# Indicates the possibility of Rx antenna pattern change 761f05cddf9SRui Paulo# 0 = Rx antenna pattern might change during the lifetime of an association 762f05cddf9SRui Paulo# 1 = Rx antenna pattern does not change during the lifetime of an association 763f05cddf9SRui Paulo# 764f05cddf9SRui Paulo# Tx Antenna Pattern Consistency: [TX-ANTENNA-PATTERN] 765f05cddf9SRui Paulo# Indicates the possibility of Tx antenna pattern change 766f05cddf9SRui Paulo# 0 = Tx antenna pattern might change during the lifetime of an association 767f05cddf9SRui Paulo# 1 = Tx antenna pattern does not change during the lifetime of an association 768f05cddf9SRui Paulo#vht_capab=[SHORT-GI-80][HTC-VHT] 769f05cddf9SRui Paulo# 770f05cddf9SRui Paulo# Require stations to support VHT PHY (reject association if they do not) 771f05cddf9SRui Paulo#require_vht=1 772f05cddf9SRui Paulo 773f05cddf9SRui Paulo# 0 = 20 or 40 MHz operating Channel width 774f05cddf9SRui Paulo# 1 = 80 MHz channel width 775f05cddf9SRui Paulo# 2 = 160 MHz channel width 776f05cddf9SRui Paulo# 3 = 80+80 MHz channel width 777f05cddf9SRui Paulo#vht_oper_chwidth=1 778f05cddf9SRui Paulo# 779f05cddf9SRui Paulo# center freq = 5 GHz + (5 * index) 780f05cddf9SRui Paulo# So index 42 gives center freq 5.210 GHz 781f05cddf9SRui Paulo# which is channel 42 in 5G band 782f05cddf9SRui Paulo# 783f05cddf9SRui Paulo#vht_oper_centr_freq_seg0_idx=42 784f05cddf9SRui Paulo# 785f05cddf9SRui Paulo# center freq = 5 GHz + (5 * index) 786f05cddf9SRui Paulo# So index 159 gives center freq 5.795 GHz 787f05cddf9SRui Paulo# which is channel 159 in 5G band 788f05cddf9SRui Paulo# 789f05cddf9SRui Paulo#vht_oper_centr_freq_seg1_idx=159 790f05cddf9SRui Paulo 791780fb4a2SCy Schubert# Workaround to use station's nsts capability in (Re)Association Response frame 792780fb4a2SCy Schubert# This may be needed with some deployed devices as an interoperability 793780fb4a2SCy Schubert# workaround for beamforming if the AP's capability is greater than the 794780fb4a2SCy Schubert# station's capability. This is disabled by default and can be enabled by 795780fb4a2SCy Schubert# setting use_sta_nsts=1. 796780fb4a2SCy Schubert#use_sta_nsts=0 797780fb4a2SCy Schubert 79885732ac8SCy Schubert##### IEEE 802.11ax related configuration ##################################### 79985732ac8SCy Schubert 80085732ac8SCy Schubert#ieee80211ax: Whether IEEE 802.11ax (HE) is enabled 80185732ac8SCy Schubert# 0 = disabled (default) 80285732ac8SCy Schubert# 1 = enabled 80385732ac8SCy Schubert#ieee80211ax=1 80485732ac8SCy Schubert 805c1d255d3SCy Schubert# disable_11ax: Boolean (0/1) to disable HE for a specific BSS 806c1d255d3SCy Schubert#disable_11ax=0 807c1d255d3SCy Schubert 80885732ac8SCy Schubert#he_su_beamformer: HE single user beamformer support 80985732ac8SCy Schubert# 0 = not supported (default) 81085732ac8SCy Schubert# 1 = supported 81185732ac8SCy Schubert#he_su_beamformer=1 81285732ac8SCy Schubert 81385732ac8SCy Schubert#he_su_beamformee: HE single user beamformee support 81485732ac8SCy Schubert# 0 = not supported (default) 81585732ac8SCy Schubert# 1 = supported 81685732ac8SCy Schubert#he_su_beamformee=1 81785732ac8SCy Schubert 81885732ac8SCy Schubert#he_mu_beamformer: HE multiple user beamformer support 81985732ac8SCy Schubert# 0 = not supported (default) 82085732ac8SCy Schubert# 1 = supported 82185732ac8SCy Schubert#he_mu_beamformer=1 82285732ac8SCy Schubert 823206b73d0SCy Schubert# he_bss_color: BSS color (1-63) 824206b73d0SCy Schubert#he_bss_color=1 82585732ac8SCy Schubert 826c1d255d3SCy Schubert# he_bss_color_partial: BSS color AID equation 827c1d255d3SCy Schubert#he_bss_color_partial=0 828c1d255d3SCy Schubert 82985732ac8SCy Schubert#he_default_pe_duration: The duration of PE field in an HE PPDU in us 83085732ac8SCy Schubert# Possible values are 0 us (default), 4 us, 8 us, 12 us, and 16 us 83185732ac8SCy Schubert#he_default_pe_duration=0 83285732ac8SCy Schubert 83385732ac8SCy Schubert#he_twt_required: Whether TWT is required 83485732ac8SCy Schubert# 0 = not required (default) 83585732ac8SCy Schubert# 1 = required 83685732ac8SCy Schubert#he_twt_required=0 83785732ac8SCy Schubert 838c1d255d3SCy Schubert#he_twt_responder: Whether TWT (HE) responder is enabled 839c1d255d3SCy Schubert# 0 = disabled 840c1d255d3SCy Schubert# 1 = enabled if supported by the driver (default) 841c1d255d3SCy Schubert#he_twt_responder=1 842c1d255d3SCy Schubert 84385732ac8SCy Schubert#he_rts_threshold: Duration of STA transmission 84485732ac8SCy Schubert# 0 = not set (default) 84585732ac8SCy Schubert# unsigned integer = duration in units of 16 us 84685732ac8SCy Schubert#he_rts_threshold=0 84785732ac8SCy Schubert 8484b72b91aSCy Schubert#he_er_su_disable: Disable 242-tone HE ER SU PPDU reception by the AP 8494b72b91aSCy Schubert# 0 = enable reception (default) 8504b72b91aSCy Schubert# 1 = disable reception 8514b72b91aSCy Schubert#he_er_su_disable=0 8524b72b91aSCy Schubert 853206b73d0SCy Schubert# HE operating channel information; see matching vht_* parameters for details. 854c1d255d3SCy Schubert# he_oper_centr_freq_seg0_idx field is used to indicate center frequency of 80 855c1d255d3SCy Schubert# and 160 MHz bandwidth operation. In 80+80 MHz operation, it is the center 856c1d255d3SCy Schubert# frequency of the lower frequency segment. he_oper_centr_freq_seg1_idx field 857c1d255d3SCy Schubert# is used only with 80+80 MHz bandwidth operation and it is used to transmit 858c1d255d3SCy Schubert# the center frequency of the second segment. 859c1d255d3SCy Schubert# On the 6 GHz band the center freq calculation starts from 5.950 GHz offset. 860c1d255d3SCy Schubert# For example idx=3 would result in 5965 MHz center frequency. In addition, 861c1d255d3SCy Schubert# he_oper_chwidth is ignored, and the channel width is derived from the 862c1d255d3SCy Schubert# configured operating class or center frequency indexes (see 863c1d255d3SCy Schubert# IEEE P802.11ax/D6.1 Annex E, Table E-4). 864206b73d0SCy Schubert#he_oper_chwidth 865206b73d0SCy Schubert#he_oper_centr_freq_seg0_idx 866206b73d0SCy Schubert#he_oper_centr_freq_seg1_idx 867206b73d0SCy Schubert 868206b73d0SCy Schubert#he_basic_mcs_nss_set: Basic NSS/MCS set 869206b73d0SCy Schubert# 16-bit combination of 2-bit values of Max HE-MCS For 1..8 SS; each 2-bit 870206b73d0SCy Schubert# value having following meaning: 871206b73d0SCy Schubert# 0 = HE-MCS 0-7, 1 = HE-MCS 0-9, 2 = HE-MCS 0-11, 3 = not supported 872206b73d0SCy Schubert#he_basic_mcs_nss_set 873206b73d0SCy Schubert 8744bc52338SCy Schubert#he_mu_edca_qos_info_param_count 8754bc52338SCy Schubert#he_mu_edca_qos_info_q_ack 8764bc52338SCy Schubert#he_mu_edca_qos_info_queue_request=1 8774bc52338SCy Schubert#he_mu_edca_qos_info_txop_request 8784bc52338SCy Schubert#he_mu_edca_ac_be_aifsn=0 8794bc52338SCy Schubert#he_mu_edca_ac_be_ecwmin=15 8804bc52338SCy Schubert#he_mu_edca_ac_be_ecwmax=15 8814bc52338SCy Schubert#he_mu_edca_ac_be_timer=255 8824bc52338SCy Schubert#he_mu_edca_ac_bk_aifsn=0 8834bc52338SCy Schubert#he_mu_edca_ac_bk_aci=1 8844bc52338SCy Schubert#he_mu_edca_ac_bk_ecwmin=15 8854bc52338SCy Schubert#he_mu_edca_ac_bk_ecwmax=15 8864bc52338SCy Schubert#he_mu_edca_ac_bk_timer=255 8874bc52338SCy Schubert#he_mu_edca_ac_vi_ecwmin=15 8884bc52338SCy Schubert#he_mu_edca_ac_vi_ecwmax=15 8894bc52338SCy Schubert#he_mu_edca_ac_vi_aifsn=0 8904bc52338SCy Schubert#he_mu_edca_ac_vi_aci=2 8914bc52338SCy Schubert#he_mu_edca_ac_vi_timer=255 8924bc52338SCy Schubert#he_mu_edca_ac_vo_aifsn=0 8934bc52338SCy Schubert#he_mu_edca_ac_vo_aci=3 8944bc52338SCy Schubert#he_mu_edca_ac_vo_ecwmin=15 8954bc52338SCy Schubert#he_mu_edca_ac_vo_ecwmax=15 8964bc52338SCy Schubert#he_mu_edca_ac_vo_timer=255 8974bc52338SCy Schubert 898206b73d0SCy Schubert# Spatial Reuse Parameter Set 899c1d255d3SCy Schubert# 900c1d255d3SCy Schubert# SR Control field value 901c1d255d3SCy Schubert# B0 = PSR Disallowed 902c1d255d3SCy Schubert# B1 = Non-SRG OBSS PD SR Disallowed 903c1d255d3SCy Schubert# B2 = Non-SRG Offset Present 904c1d255d3SCy Schubert# B3 = SRG Information Present 905c1d255d3SCy Schubert# B4 = HESIGA_Spatial_reuse_value15_allowed 906206b73d0SCy Schubert#he_spr_sr_control 907c1d255d3SCy Schubert# 908c1d255d3SCy Schubert# Non-SRG OBSS PD Max Offset (included if he_spr_sr_control B2=1) 909206b73d0SCy Schubert#he_spr_non_srg_obss_pd_max_offset 910c1d255d3SCy Schubert 911c1d255d3SCy Schubert# SRG OBSS PD Min Offset (included if he_spr_sr_control B3=1) 912206b73d0SCy Schubert#he_spr_srg_obss_pd_min_offset 913c1d255d3SCy Schubert# 914c1d255d3SCy Schubert# SRG OBSS PD Max Offset (included if he_spr_sr_control B3=1) 915206b73d0SCy Schubert#he_spr_srg_obss_pd_max_offset 916c1d255d3SCy Schubert# 917c1d255d3SCy Schubert# SPR SRG BSS Color (included if he_spr_sr_control B3=1) 918c1d255d3SCy Schubert# This config represents SRG BSS Color Bitmap field of Spatial Reuse Parameter 919c1d255d3SCy Schubert# Set element that indicates the BSS color values used by members of the 920c1d255d3SCy Schubert# SRG of which the transmitting STA is a member. The value is in range of 0-63. 921c1d255d3SCy Schubert#he_spr_srg_bss_colors=1 2 10 63 922c1d255d3SCy Schubert# 923c1d255d3SCy Schubert# SPR SRG Partial BSSID (included if he_spr_sr_control B3=1) 924c1d255d3SCy Schubert# This config represents SRG Partial BSSID Bitmap field of Spatial Reuse 925c1d255d3SCy Schubert# Parameter Set element that indicates the Partial BSSID values used by members 926c1d255d3SCy Schubert# of the SRG of which the transmitting STA is a member. The value range 927c1d255d3SCy Schubert# corresponds to one of the 64 possible values of BSSID[39:44], where the lowest 928c1d255d3SCy Schubert# numbered bit corresponds to Partial BSSID value 0 and the highest numbered bit 929c1d255d3SCy Schubert# corresponds to Partial BSSID value 63. 930c1d255d3SCy Schubert#he_spr_srg_partial_bssid=0 1 3 63 931c1d255d3SCy Schubert# 932c1d255d3SCy Schubert#he_6ghz_max_mpdu: Maximum MPDU Length of HE 6 GHz band capabilities. 933c1d255d3SCy Schubert# Indicates maximum MPDU length 934c1d255d3SCy Schubert# 0 = 3895 octets 935c1d255d3SCy Schubert# 1 = 7991 octets 936c1d255d3SCy Schubert# 2 = 11454 octets (default) 937c1d255d3SCy Schubert#he_6ghz_max_mpdu=2 938c1d255d3SCy Schubert# 939c1d255d3SCy Schubert#he_6ghz_max_ampdu_len_exp: Maximum A-MPDU Length Exponent of HE 6 GHz band 940c1d255d3SCy Schubert# capabilities. Indicates the maximum length of A-MPDU pre-EOF padding that 941c1d255d3SCy Schubert# the STA can receive. This field is an integer in the range of 0 to 7. 942c1d255d3SCy Schubert# The length defined by this field is equal to 943c1d255d3SCy Schubert# 2 pow(13 + Maximum A-MPDU Length Exponent) -1 octets 944c1d255d3SCy Schubert# 0 = AMPDU length of 8k 945c1d255d3SCy Schubert# 1 = AMPDU length of 16k 946c1d255d3SCy Schubert# 2 = AMPDU length of 32k 947c1d255d3SCy Schubert# 3 = AMPDU length of 65k 948c1d255d3SCy Schubert# 4 = AMPDU length of 131k 949c1d255d3SCy Schubert# 5 = AMPDU length of 262k 950c1d255d3SCy Schubert# 6 = AMPDU length of 524k 951c1d255d3SCy Schubert# 7 = AMPDU length of 1048k (default) 952c1d255d3SCy Schubert#he_6ghz_max_ampdu_len_exp=7 953c1d255d3SCy Schubert# 954c1d255d3SCy Schubert#he_6ghz_rx_ant_pat: Rx Antenna Pattern Consistency of HE 6 GHz capability. 955c1d255d3SCy Schubert# Indicates the possibility of Rx antenna pattern change 956c1d255d3SCy Schubert# 0 = Rx antenna pattern might change during the lifetime of an association 957c1d255d3SCy Schubert# 1 = Rx antenna pattern does not change during the lifetime of an association 958c1d255d3SCy Schubert# (default) 959c1d255d3SCy Schubert#he_6ghz_rx_ant_pat=1 960c1d255d3SCy Schubert# 961c1d255d3SCy Schubert#he_6ghz_tx_ant_pat: Tx Antenna Pattern Consistency of HE 6 GHz capability. 962c1d255d3SCy Schubert# Indicates the possibility of Tx antenna pattern change 963c1d255d3SCy Schubert# 0 = Tx antenna pattern might change during the lifetime of an association 964c1d255d3SCy Schubert# 1 = Tx antenna pattern does not change during the lifetime of an association 965c1d255d3SCy Schubert# (default) 966c1d255d3SCy Schubert#he_6ghz_tx_ant_pat=1 967c1d255d3SCy Schubert 968c1d255d3SCy Schubert# Unsolicited broadcast Probe Response transmission settings 969c1d255d3SCy Schubert# This is for the 6 GHz band only. If the interval is set to a non-zero value, 970c1d255d3SCy Schubert# the AP schedules unsolicited broadcast Probe Response frames to be 971c1d255d3SCy Schubert# transmitted for in-band discovery. Refer to 972c1d255d3SCy Schubert# IEEE P802.11ax/D8.0 26.17.2.3.2, AP behavior for fast passive scanning. 973c1d255d3SCy Schubert# Valid range: 0..20 TUs; default is 0 (disabled) 974c1d255d3SCy Schubert#unsol_bcast_probe_resp_interval=0 975206b73d0SCy Schubert 97639beb93cSSam Leffler##### IEEE 802.1X-2004 related configuration ################################## 97739beb93cSSam Leffler 97839beb93cSSam Leffler# Require IEEE 802.1X authorization 97939beb93cSSam Leffler#ieee8021x=1 98039beb93cSSam Leffler 98139beb93cSSam Leffler# IEEE 802.1X/EAPOL version 98239beb93cSSam Leffler# hostapd is implemented based on IEEE Std 802.1X-2004 which defines EAPOL 98339beb93cSSam Leffler# version 2. However, there are many client implementations that do not handle 98439beb93cSSam Leffler# the new version number correctly (they seem to drop the frames completely). 98539beb93cSSam Leffler# In order to make hostapd interoperate with these clients, the version number 98639beb93cSSam Leffler# can be set to the older version (1) with this configuration value. 987206b73d0SCy Schubert# Note: When using MACsec, eapol_version shall be set to 3, which is 988206b73d0SCy Schubert# defined in IEEE Std 802.1X-2010. 98939beb93cSSam Leffler#eapol_version=2 99039beb93cSSam Leffler 99139beb93cSSam Leffler# Optional displayable message sent with EAP Request-Identity. The first \0 99239beb93cSSam Leffler# in this string will be converted to ASCII-0 (nul). This can be used to 99339beb93cSSam Leffler# separate network info (comma separated list of attribute=value pairs); see, 99439beb93cSSam Leffler# e.g., RFC 4284. 99539beb93cSSam Leffler#eap_message=hello 99639beb93cSSam Leffler#eap_message=hello\0networkid=netw,nasid=foo,portid=0,NAIRealms=example.com 99739beb93cSSam Leffler 99839beb93cSSam Leffler# WEP rekeying (disabled if key lengths are not set or are set to 0) 99939beb93cSSam Leffler# Key lengths for default/broadcast and individual/unicast keys: 100039beb93cSSam Leffler# 5 = 40-bit WEP (also known as 64-bit WEP with 40 secret bits) 100139beb93cSSam Leffler# 13 = 104-bit WEP (also known as 128-bit WEP with 104 secret bits) 100239beb93cSSam Leffler#wep_key_len_broadcast=5 100339beb93cSSam Leffler#wep_key_len_unicast=5 100439beb93cSSam Leffler# Rekeying period in seconds. 0 = do not rekey (i.e., set keys only once) 100539beb93cSSam Leffler#wep_rekey_period=300 100639beb93cSSam Leffler 100739beb93cSSam Leffler# EAPOL-Key index workaround (set bit7) for WinXP Supplicant (needed only if 100839beb93cSSam Leffler# only broadcast keys are used) 100939beb93cSSam Lefflereapol_key_index_workaround=0 101039beb93cSSam Leffler 101139beb93cSSam Leffler# EAP reauthentication period in seconds (default: 3600 seconds; 0 = disable 101239beb93cSSam Leffler# reauthentication). 1013c1d255d3SCy Schubert# Note: Reauthentications may enforce a disconnection, check the related 1014c1d255d3SCy Schubert# parameter wpa_deny_ptk0_rekey for details. 101539beb93cSSam Leffler#eap_reauth_period=3600 101639beb93cSSam Leffler 101739beb93cSSam Leffler# Use PAE group address (01:80:c2:00:00:03) instead of individual target 101839beb93cSSam Leffler# address when sending EAPOL frames with driver=wired. This is the most common 101939beb93cSSam Leffler# mechanism used in wired authentication, but it also requires that the port 102039beb93cSSam Leffler# is only used by one station. 102139beb93cSSam Leffler#use_pae_group_addr=1 102239beb93cSSam Leffler 10235b9c547cSRui Paulo# EAP Re-authentication Protocol (ERP) authenticator (RFC 6696) 10245b9c547cSRui Paulo# 10255b9c547cSRui Paulo# Whether to initiate EAP authentication with EAP-Initiate/Re-auth-Start before 10265b9c547cSRui Paulo# EAP-Identity/Request 10275b9c547cSRui Paulo#erp_send_reauth_start=1 10285b9c547cSRui Paulo# 10295b9c547cSRui Paulo# Domain name for EAP-Initiate/Re-auth-Start. Omitted from the message if not 10305b9c547cSRui Paulo# set (no local ER server). This is also used by the integrated EAP server if 10315b9c547cSRui Paulo# ERP is enabled (eap_server_erp=1). 10325b9c547cSRui Paulo#erp_domain=example.com 10335b9c547cSRui Paulo 1034206b73d0SCy Schubert##### MACsec ################################################################## 1035206b73d0SCy Schubert 1036206b73d0SCy Schubert# macsec_policy: IEEE 802.1X/MACsec options 1037206b73d0SCy Schubert# This determines how sessions are secured with MACsec (only for MACsec 1038206b73d0SCy Schubert# drivers). 1039206b73d0SCy Schubert# 0: MACsec not in use (default) 1040206b73d0SCy Schubert# 1: MACsec enabled - Should secure, accept key server's advice to 1041206b73d0SCy Schubert# determine whether to use a secure session or not. 1042206b73d0SCy Schubert# 1043206b73d0SCy Schubert# macsec_integ_only: IEEE 802.1X/MACsec transmit mode 1044206b73d0SCy Schubert# This setting applies only when MACsec is in use, i.e., 1045206b73d0SCy Schubert# - macsec_policy is enabled 1046206b73d0SCy Schubert# - the key server has decided to enable MACsec 1047206b73d0SCy Schubert# 0: Encrypt traffic (default) 1048206b73d0SCy Schubert# 1: Integrity only 1049206b73d0SCy Schubert# 1050206b73d0SCy Schubert# macsec_replay_protect: IEEE 802.1X/MACsec replay protection 1051206b73d0SCy Schubert# This setting applies only when MACsec is in use, i.e., 1052206b73d0SCy Schubert# - macsec_policy is enabled 1053206b73d0SCy Schubert# - the key server has decided to enable MACsec 1054206b73d0SCy Schubert# 0: Replay protection disabled (default) 1055206b73d0SCy Schubert# 1: Replay protection enabled 1056206b73d0SCy Schubert# 1057206b73d0SCy Schubert# macsec_replay_window: IEEE 802.1X/MACsec replay protection window 1058206b73d0SCy Schubert# This determines a window in which replay is tolerated, to allow receipt 1059206b73d0SCy Schubert# of frames that have been misordered by the network. 1060206b73d0SCy Schubert# This setting applies only when MACsec replay protection active, i.e., 1061206b73d0SCy Schubert# - macsec_replay_protect is enabled 1062206b73d0SCy Schubert# - the key server has decided to enable MACsec 1063206b73d0SCy Schubert# 0: No replay window, strict check (default) 1064206b73d0SCy Schubert# 1..2^32-1: number of packets that could be misordered 1065206b73d0SCy Schubert# 1066206b73d0SCy Schubert# macsec_port: IEEE 802.1X/MACsec port 1067206b73d0SCy Schubert# Port component of the SCI 1068206b73d0SCy Schubert# Range: 1-65534 (default: 1) 1069206b73d0SCy Schubert# 1070206b73d0SCy Schubert# mka_priority (Priority of MKA Actor) 1071206b73d0SCy Schubert# Range: 0..255 (default: 255) 1072206b73d0SCy Schubert# 1073206b73d0SCy Schubert# mka_cak, mka_ckn, and mka_priority: IEEE 802.1X/MACsec pre-shared key mode 1074206b73d0SCy Schubert# This allows to configure MACsec with a pre-shared key using a (CAK,CKN) pair. 1075206b73d0SCy Schubert# In this mode, instances of hostapd can act as MACsec peers. The peer 1076206b73d0SCy Schubert# with lower priority will become the key server and start distributing SAKs. 1077206b73d0SCy Schubert# mka_cak (CAK = Secure Connectivity Association Key) takes a 16-byte (128-bit) 1078206b73d0SCy Schubert# hex-string (32 hex-digits) or a 32-byte (256-bit) hex-string (64 hex-digits) 1079206b73d0SCy Schubert# mka_ckn (CKN = CAK Name) takes a 1..32-bytes (8..256 bit) hex-string 1080206b73d0SCy Schubert# (2..64 hex-digits) 1081206b73d0SCy Schubert 108239beb93cSSam Leffler##### Integrated EAP server ################################################### 108339beb93cSSam Leffler 108439beb93cSSam Leffler# Optionally, hostapd can be configured to use an integrated EAP server 108539beb93cSSam Leffler# to process EAP authentication locally without need for an external RADIUS 108639beb93cSSam Leffler# server. This functionality can be used both as a local authentication server 108739beb93cSSam Leffler# for IEEE 802.1X/EAPOL and as a RADIUS server for other devices. 108839beb93cSSam Leffler 108939beb93cSSam Leffler# Use integrated EAP server instead of external RADIUS authentication 109039beb93cSSam Leffler# server. This is also needed if hostapd is configured to act as a RADIUS 109139beb93cSSam Leffler# authentication server. 109239beb93cSSam Lefflereap_server=0 109339beb93cSSam Leffler 109439beb93cSSam Leffler# Path for EAP server user database 1095f05cddf9SRui Paulo# If SQLite support is included, this can be set to "sqlite:/path/to/sqlite.db" 1096f05cddf9SRui Paulo# to use SQLite database instead of a text file. 109739beb93cSSam Leffler#eap_user_file=/etc/hostapd.eap_user 109839beb93cSSam Leffler 109939beb93cSSam Leffler# CA certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS 110039beb93cSSam Leffler#ca_cert=/etc/hostapd.ca.pem 110139beb93cSSam Leffler 110239beb93cSSam Leffler# Server certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS 110339beb93cSSam Leffler#server_cert=/etc/hostapd.server.pem 110439beb93cSSam Leffler 110539beb93cSSam Leffler# Private key matching with the server certificate for EAP-TLS/PEAP/TTLS 110639beb93cSSam Leffler# This may point to the same file as server_cert if both certificate and key 110739beb93cSSam Leffler# are included in a single file. PKCS#12 (PFX) file (.p12/.pfx) can also be 110839beb93cSSam Leffler# used by commenting out server_cert and specifying the PFX file as the 110939beb93cSSam Leffler# private_key. 111039beb93cSSam Leffler#private_key=/etc/hostapd.server.prv 111139beb93cSSam Leffler 111239beb93cSSam Leffler# Passphrase for private key 111339beb93cSSam Leffler#private_key_passwd=secret passphrase 111439beb93cSSam Leffler 1115206b73d0SCy Schubert# An alternative server certificate and private key can be configured with the 1116206b73d0SCy Schubert# following parameters (with values just like the parameters above without the 1117206b73d0SCy Schubert# '2' suffix). The ca_cert file (in PEM encoding) is used to add the trust roots 1118206b73d0SCy Schubert# for both server certificates and/or client certificates). 1119206b73d0SCy Schubert# 1120206b73d0SCy Schubert# The main use case for this alternative server certificate configuration is to 1121206b73d0SCy Schubert# enable both RSA and ECC public keys. The server will pick which one to use 1122206b73d0SCy Schubert# based on the client preferences for the cipher suite (in the TLS ClientHello 1123206b73d0SCy Schubert# message). It should be noted that number of deployed EAP peer implementations 1124206b73d0SCy Schubert# do not filter out the cipher suite list based on their local configuration and 1125206b73d0SCy Schubert# as such, configuration of alternative types of certificates on the server may 1126206b73d0SCy Schubert# result in interoperability issues. 1127206b73d0SCy Schubert#server_cert2=/etc/hostapd.server-ecc.pem 1128206b73d0SCy Schubert#private_key2=/etc/hostapd.server-ecc.prv 1129206b73d0SCy Schubert#private_key_passwd2=secret passphrase 1130206b73d0SCy Schubert 1131206b73d0SCy Schubert 11325b9c547cSRui Paulo# Server identity 11335b9c547cSRui Paulo# EAP methods that provide mechanism for authenticated server identity delivery 11345b9c547cSRui Paulo# use this value. If not set, "hostapd" is used as a default. 11355b9c547cSRui Paulo#server_id=server.example.com 11365b9c547cSRui Paulo 113739beb93cSSam Leffler# Enable CRL verification. 113839beb93cSSam Leffler# Note: hostapd does not yet support CRL downloading based on CDP. Thus, a 113939beb93cSSam Leffler# valid CRL signed by the CA is required to be included in the ca_cert file. 114039beb93cSSam Leffler# This can be done by using PEM format for CA certificate and CRL and 114139beb93cSSam Leffler# concatenating these into one file. Whenever CRL changes, hostapd needs to be 11424bc52338SCy Schubert# restarted to take the new CRL into use. Alternatively, crl_reload_interval can 11434bc52338SCy Schubert# be used to configure periodic updating of the loaded CRL information. 114439beb93cSSam Leffler# 0 = do not verify CRLs (default) 114539beb93cSSam Leffler# 1 = check the CRL of the user certificate 114639beb93cSSam Leffler# 2 = check all CRLs in the certificate path 114739beb93cSSam Leffler#check_crl=1 114839beb93cSSam Leffler 11494bc52338SCy Schubert# Specify whether to ignore certificate CRL validity time mismatches with 1150c1d255d3SCy Schubert# errors X509_V_ERR_CRL_HAS_EXPIRED and X509_V_ERR_CRL_NOT_YET_VALID. 11514bc52338SCy Schubert# 11524bc52338SCy Schubert# 0 = ignore errors 11534bc52338SCy Schubert# 1 = do not ignore errors (default) 11544bc52338SCy Schubert#check_crl_strict=1 11554bc52338SCy Schubert 11564bc52338SCy Schubert# CRL reload interval in seconds 11574bc52338SCy Schubert# This can be used to reload ca_cert file and the included CRL on every new TLS 11584bc52338SCy Schubert# session if difference between last reload and the current reload time in 11594bc52338SCy Schubert# seconds is greater than crl_reload_interval. 11604bc52338SCy Schubert# Note: If interval time is very short, CPU overhead may be negatively affected 11614bc52338SCy Schubert# and it is advised to not go below 300 seconds. 11624bc52338SCy Schubert# This is applicable only with check_crl values 1 and 2. 11634bc52338SCy Schubert# 0 = do not reload CRLs (default) 11644bc52338SCy Schubert# crl_reload_interval = 300 11654bc52338SCy Schubert 11664bc52338SCy Schubert# If check_cert_subject is set, the value of every field will be checked 11674bc52338SCy Schubert# against the DN of the subject in the client certificate. If the values do 11684bc52338SCy Schubert# not match, the certificate verification will fail, rejecting the user. 11694bc52338SCy Schubert# This option allows hostapd to match every individual field in the right order 11704bc52338SCy Schubert# against the DN of the subject in the client certificate. 11714bc52338SCy Schubert# 11724bc52338SCy Schubert# For example, check_cert_subject=C=US/O=XX/OU=ABC/OU=XYZ/CN=1234 will check 11734bc52338SCy Schubert# every individual DN field of the subject in the client certificate. If OU=XYZ 11744bc52338SCy Schubert# comes first in terms of the order in the client certificate (DN field of 11754bc52338SCy Schubert# client certificate C=US/O=XX/OU=XYZ/OU=ABC/CN=1234), hostapd will reject the 11764bc52338SCy Schubert# client because the order of 'OU' is not matching the specified string in 11774bc52338SCy Schubert# check_cert_subject. 11784bc52338SCy Schubert# 11794bc52338SCy Schubert# This option also allows '*' as a wildcard. This option has some limitation. 11804bc52338SCy Schubert# It can only be used as per the following example. 11814bc52338SCy Schubert# 11824bc52338SCy Schubert# For example, check_cert_subject=C=US/O=XX/OU=Production* and we have two 11834bc52338SCy Schubert# clients and DN of the subject in the first client certificate is 11844bc52338SCy Schubert# (C=US/O=XX/OU=Production Unit) and DN of the subject in the second client is 11854bc52338SCy Schubert# (C=US/O=XX/OU=Production Factory). In this case, hostapd will allow both 11864bc52338SCy Schubert# clients because the value of 'OU' field in both client certificates matches 11874bc52338SCy Schubert# 'OU' value in 'check_cert_subject' up to 'wildcard'. 11884bc52338SCy Schubert# 11894bc52338SCy Schubert# * (Allow all clients, e.g., check_cert_subject=*) 11904bc52338SCy Schubert#check_cert_subject=string 11914bc52338SCy Schubert 1192325151a3SRui Paulo# TLS Session Lifetime in seconds 1193325151a3SRui Paulo# This can be used to allow TLS sessions to be cached and resumed with an 1194325151a3SRui Paulo# abbreviated handshake when using EAP-TLS/TTLS/PEAP. 1195325151a3SRui Paulo# (default: 0 = session caching and resumption disabled) 1196325151a3SRui Paulo#tls_session_lifetime=3600 1197325151a3SRui Paulo 11984bc52338SCy Schubert# TLS flags 11994bc52338SCy Schubert# [ALLOW-SIGN-RSA-MD5] = allow MD5-based certificate signatures (depending on 12004bc52338SCy Schubert# the TLS library, these may be disabled by default to enforce stronger 12014bc52338SCy Schubert# security) 12024bc52338SCy Schubert# [DISABLE-TIME-CHECKS] = ignore certificate validity time (this requests 12034bc52338SCy Schubert# the TLS library to accept certificates even if they are not currently 12044bc52338SCy Schubert# valid, i.e., have expired or have not yet become valid; this should be 12054bc52338SCy Schubert# used only for testing purposes) 12064bc52338SCy Schubert# [DISABLE-TLSv1.0] = disable use of TLSv1.0 12074bc52338SCy Schubert# [ENABLE-TLSv1.0] = explicitly enable use of TLSv1.0 (this allows 12084bc52338SCy Schubert# systemwide TLS policies to be overridden) 12094bc52338SCy Schubert# [DISABLE-TLSv1.1] = disable use of TLSv1.1 12104bc52338SCy Schubert# [ENABLE-TLSv1.1] = explicitly enable use of TLSv1.1 (this allows 12114bc52338SCy Schubert# systemwide TLS policies to be overridden) 12124bc52338SCy Schubert# [DISABLE-TLSv1.2] = disable use of TLSv1.2 12134bc52338SCy Schubert# [ENABLE-TLSv1.2] = explicitly enable use of TLSv1.2 (this allows 12144bc52338SCy Schubert# systemwide TLS policies to be overridden) 12154bc52338SCy Schubert# [DISABLE-TLSv1.3] = disable use of TLSv1.3 12164bc52338SCy Schubert# [ENABLE-TLSv1.3] = enable TLSv1.3 (experimental - disabled by default) 12174bc52338SCy Schubert#tls_flags=[flag1][flag2]... 12184bc52338SCy Schubert 1219c1d255d3SCy Schubert# Maximum number of EAP message rounds with data (default: 100) 1220c1d255d3SCy Schubert#max_auth_rounds=100 1221c1d255d3SCy Schubert 1222c1d255d3SCy Schubert# Maximum number of short EAP message rounds (default: 50) 1223c1d255d3SCy Schubert#max_auth_rounds_short=50 1224c1d255d3SCy Schubert 12255b9c547cSRui Paulo# Cached OCSP stapling response (DER encoded) 12265b9c547cSRui Paulo# If set, this file is sent as a certificate status response by the EAP server 12275b9c547cSRui Paulo# if the EAP peer requests certificate status in the ClientHello message. 12285b9c547cSRui Paulo# This cache file can be updated, e.g., by running following command 12295b9c547cSRui Paulo# periodically to get an update from the OCSP responder: 12305b9c547cSRui Paulo# openssl ocsp \ 12315b9c547cSRui Paulo# -no_nonce \ 12325b9c547cSRui Paulo# -CAfile /etc/hostapd.ca.pem \ 12335b9c547cSRui Paulo# -issuer /etc/hostapd.ca.pem \ 12345b9c547cSRui Paulo# -cert /etc/hostapd.server.pem \ 12355b9c547cSRui Paulo# -url http://ocsp.example.com:8888/ \ 12365b9c547cSRui Paulo# -respout /tmp/ocsp-cache.der 12375b9c547cSRui Paulo#ocsp_stapling_response=/tmp/ocsp-cache.der 12385b9c547cSRui Paulo 1239780fb4a2SCy Schubert# Cached OCSP stapling response list (DER encoded OCSPResponseList) 1240780fb4a2SCy Schubert# This is similar to ocsp_stapling_response, but the extended version defined in 1241780fb4a2SCy Schubert# RFC 6961 to allow multiple OCSP responses to be provided. 1242780fb4a2SCy Schubert#ocsp_stapling_response_multi=/tmp/ocsp-multi-cache.der 1243780fb4a2SCy Schubert 124439beb93cSSam Leffler# dh_file: File path to DH/DSA parameters file (in PEM format) 124539beb93cSSam Leffler# This is an optional configuration file for setting parameters for an 124639beb93cSSam Leffler# ephemeral DH key exchange. In most cases, the default RSA authentication does 124739beb93cSSam Leffler# not use this configuration. However, it is possible setup RSA to use 124839beb93cSSam Leffler# ephemeral DH key exchange. In addition, ciphers with DSA keys always use 124939beb93cSSam Leffler# ephemeral DH keys. This can be used to achieve forward secrecy. If the file 125039beb93cSSam Leffler# is in DSA parameters format, it will be automatically converted into DH 125139beb93cSSam Leffler# params. This parameter is required if anonymous EAP-FAST is used. 125239beb93cSSam Leffler# You can generate DH parameters file with OpenSSL, e.g., 1253325151a3SRui Paulo# "openssl dhparam -out /etc/hostapd.dh.pem 2048" 125439beb93cSSam Leffler#dh_file=/etc/hostapd.dh.pem 125539beb93cSSam Leffler 12565b9c547cSRui Paulo# OpenSSL cipher string 12575b9c547cSRui Paulo# 12585b9c547cSRui Paulo# This is an OpenSSL specific configuration option for configuring the default 125985732ac8SCy Schubert# ciphers. If not set, the value configured at build time ("DEFAULT:!EXP:!LOW" 126085732ac8SCy Schubert# by default) is used. 12615b9c547cSRui Paulo# See https://www.openssl.org/docs/apps/ciphers.html for OpenSSL documentation 12625b9c547cSRui Paulo# on cipher suite configuration. This is applicable only if hostapd is built to 12635b9c547cSRui Paulo# use OpenSSL. 12645b9c547cSRui Paulo#openssl_ciphers=DEFAULT:!EXP:!LOW 12655b9c547cSRui Paulo 12664bc52338SCy Schubert# OpenSSL ECDH curves 12674bc52338SCy Schubert# 12684bc52338SCy Schubert# This is an OpenSSL specific configuration option for configuring the ECDH 12694bc52338SCy Schubert# curves for EAP-TLS/TTLS/PEAP/FAST server. If not set, automatic curve 12704bc52338SCy Schubert# selection is enabled. If set to an empty string, ECDH curve configuration is 12714bc52338SCy Schubert# not done (the exact library behavior depends on the library version). 12724bc52338SCy Schubert# Otherwise, this is a colon separated list of the supported curves (e.g., 12734bc52338SCy Schubert# P-521:P-384:P-256). This is applicable only if hostapd is built to use 12744bc52338SCy Schubert# OpenSSL. This must not be used for Suite B cases since the same OpenSSL 12754bc52338SCy Schubert# parameter is set differently in those cases and this might conflict with that 12764bc52338SCy Schubert# design. 12774bc52338SCy Schubert#openssl_ecdh_curves=P-521:P-384:P-256 12784bc52338SCy Schubert 1279f05cddf9SRui Paulo# Fragment size for EAP methods 1280f05cddf9SRui Paulo#fragment_size=1400 1281f05cddf9SRui Paulo 1282f05cddf9SRui Paulo# Finite cyclic group for EAP-pwd. Number maps to group of domain parameters 1283f05cddf9SRui Paulo# using the IANA repository for IKE (RFC 2409). 1284f05cddf9SRui Paulo#pwd_group=19 1285f05cddf9SRui Paulo 128639beb93cSSam Leffler# Configuration data for EAP-SIM database/authentication gateway interface. 128739beb93cSSam Leffler# This is a text string in implementation specific format. The example 128839beb93cSSam Leffler# implementation in eap_sim_db.c uses this as the UNIX domain socket name for 128939beb93cSSam Leffler# the HLR/AuC gateway (e.g., hlr_auc_gw). In this case, the path uses "unix:" 1290f05cddf9SRui Paulo# prefix. If hostapd is built with SQLite support (CONFIG_SQLITE=y in .config), 1291f05cddf9SRui Paulo# database file can be described with an optional db=<path> parameter. 129239beb93cSSam Leffler#eap_sim_db=unix:/tmp/hlr_auc_gw.sock 1293f05cddf9SRui Paulo#eap_sim_db=unix:/tmp/hlr_auc_gw.sock db=/tmp/hostapd.db 129439beb93cSSam Leffler 1295780fb4a2SCy Schubert# EAP-SIM DB request timeout 1296780fb4a2SCy Schubert# This parameter sets the maximum time to wait for a database request response. 1297780fb4a2SCy Schubert# The parameter value is in seconds. 1298780fb4a2SCy Schubert#eap_sim_db_timeout=1 1299780fb4a2SCy Schubert 130039beb93cSSam Leffler# Encryption key for EAP-FAST PAC-Opaque values. This key must be a secret, 130139beb93cSSam Leffler# random value. It is configured as a 16-octet value in hex format. It can be 130239beb93cSSam Leffler# generated, e.g., with the following command: 130339beb93cSSam Leffler# od -tx1 -v -N16 /dev/random | colrm 1 8 | tr -d ' ' 130439beb93cSSam Leffler#pac_opaque_encr_key=000102030405060708090a0b0c0d0e0f 130539beb93cSSam Leffler 130639beb93cSSam Leffler# EAP-FAST authority identity (A-ID) 130739beb93cSSam Leffler# A-ID indicates the identity of the authority that issues PACs. The A-ID 130839beb93cSSam Leffler# should be unique across all issuing servers. In theory, this is a variable 1309e28a4053SRui Paulo# length field, but due to some existing implementations requiring A-ID to be 131039beb93cSSam Leffler# 16 octets in length, it is strongly recommended to use that length for the 1311c1d255d3SCy Schubert# field to provide interoperability with deployed peer implementations. This 131239beb93cSSam Leffler# field is configured in hex format. 131339beb93cSSam Leffler#eap_fast_a_id=101112131415161718191a1b1c1d1e1f 131439beb93cSSam Leffler 131539beb93cSSam Leffler# EAP-FAST authority identifier information (A-ID-Info) 131639beb93cSSam Leffler# This is a user-friendly name for the A-ID. For example, the enterprise name 131739beb93cSSam Leffler# and server name in a human-readable format. This field is encoded as UTF-8. 131839beb93cSSam Leffler#eap_fast_a_id_info=test server 131939beb93cSSam Leffler 132039beb93cSSam Leffler# Enable/disable different EAP-FAST provisioning modes: 132139beb93cSSam Leffler#0 = provisioning disabled 132239beb93cSSam Leffler#1 = only anonymous provisioning allowed 132339beb93cSSam Leffler#2 = only authenticated provisioning allowed 132439beb93cSSam Leffler#3 = both provisioning modes allowed (default) 132539beb93cSSam Leffler#eap_fast_prov=3 132639beb93cSSam Leffler 132739beb93cSSam Leffler# EAP-FAST PAC-Key lifetime in seconds (hard limit) 132839beb93cSSam Leffler#pac_key_lifetime=604800 132939beb93cSSam Leffler 133039beb93cSSam Leffler# EAP-FAST PAC-Key refresh time in seconds (soft limit on remaining hard 133139beb93cSSam Leffler# limit). The server will generate a new PAC-Key when this number of seconds 133239beb93cSSam Leffler# (or fewer) of the lifetime remains. 133339beb93cSSam Leffler#pac_key_refresh_time=86400 133439beb93cSSam Leffler 1335206b73d0SCy Schubert# EAP-TEAP authentication type 1336206b73d0SCy Schubert# 0 = inner EAP (default) 1337206b73d0SCy Schubert# 1 = Basic-Password-Auth 1338c1d255d3SCy Schubert# 2 = Do not require Phase 2 authentication if client can be authenticated 1339c1d255d3SCy Schubert# during Phase 1 1340206b73d0SCy Schubert#eap_teap_auth=0 1341206b73d0SCy Schubert 1342206b73d0SCy Schubert# EAP-TEAP authentication behavior when using PAC 1343206b73d0SCy Schubert# 0 = perform inner authentication (default) 1344206b73d0SCy Schubert# 1 = skip inner authentication (inner EAP/Basic-Password-Auth) 1345206b73d0SCy Schubert#eap_teap_pac_no_inner=0 1346206b73d0SCy Schubert 1347c1d255d3SCy Schubert# EAP-TEAP behavior with Result TLV 1348c1d255d3SCy Schubert# 0 = include with Intermediate-Result TLV (default) 1349c1d255d3SCy Schubert# 1 = send in a separate message (for testing purposes) 1350c1d255d3SCy Schubert#eap_teap_separate_result=0 1351c1d255d3SCy Schubert 1352c1d255d3SCy Schubert# EAP-TEAP identities 1353c1d255d3SCy Schubert# 0 = allow any identity type (default) 1354c1d255d3SCy Schubert# 1 = require user identity 1355c1d255d3SCy Schubert# 2 = require machine identity 1356c1d255d3SCy Schubert# 3 = request user identity; accept either user or machine identity 1357c1d255d3SCy Schubert# 4 = request machine identity; accept either user or machine identity 1358c1d255d3SCy Schubert# 5 = require both user and machine identity 1359c1d255d3SCy Schubert#eap_teap_id=0 1360c1d255d3SCy Schubert 136139beb93cSSam Leffler# EAP-SIM and EAP-AKA protected success/failure indication using AT_RESULT_IND 136239beb93cSSam Leffler# (default: 0 = disabled). 136339beb93cSSam Leffler#eap_sim_aka_result_ind=1 136439beb93cSSam Leffler 1365206b73d0SCy Schubert# EAP-SIM and EAP-AKA identity options 1366206b73d0SCy Schubert# 0 = do not use pseudonyms or fast reauthentication 1367206b73d0SCy Schubert# 1 = use pseudonyms, but not fast reauthentication 1368206b73d0SCy Schubert# 2 = do not use pseudonyms, but use fast reauthentication 1369206b73d0SCy Schubert# 3 = use pseudonyms and use fast reauthentication (default) 1370206b73d0SCy Schubert#eap_sim_id=3 1371206b73d0SCy Schubert 137239beb93cSSam Leffler# Trusted Network Connect (TNC) 137339beb93cSSam Leffler# If enabled, TNC validation will be required before the peer is allowed to 137439beb93cSSam Leffler# connect. Note: This is only used with EAP-TTLS and EAP-FAST. If any other 137539beb93cSSam Leffler# EAP method is enabled, the peer will be allowed to connect without TNC. 137639beb93cSSam Leffler#tnc=1 137739beb93cSSam Leffler 13785b9c547cSRui Paulo# EAP Re-authentication Protocol (ERP) - RFC 6696 13795b9c547cSRui Paulo# 13805b9c547cSRui Paulo# Whether to enable ERP on the EAP server. 13815b9c547cSRui Paulo#eap_server_erp=1 138239beb93cSSam Leffler 138339beb93cSSam Leffler 138439beb93cSSam Leffler##### RADIUS client configuration ############################################# 138539beb93cSSam Leffler# for IEEE 802.1X with external Authentication Server, IEEE 802.11 138639beb93cSSam Leffler# authentication with external ACL for MAC addresses, and accounting 138739beb93cSSam Leffler 138839beb93cSSam Leffler# The own IP address of the access point (used as NAS-IP-Address) 138939beb93cSSam Lefflerown_ip_addr=127.0.0.1 139039beb93cSSam Leffler 1391780fb4a2SCy Schubert# NAS-Identifier string for RADIUS messages. When used, this should be unique 1392780fb4a2SCy Schubert# to the NAS within the scope of the RADIUS server. Please note that hostapd 1393780fb4a2SCy Schubert# uses a separate RADIUS client for each BSS and as such, a unique 1394780fb4a2SCy Schubert# nas_identifier value should be configured separately for each BSS. This is 1395780fb4a2SCy Schubert# particularly important for cases where RADIUS accounting is used 1396780fb4a2SCy Schubert# (Accounting-On/Off messages are interpreted as clearing all ongoing sessions 1397780fb4a2SCy Schubert# and that may get interpreted as applying to all BSSes if the same 1398780fb4a2SCy Schubert# NAS-Identifier value is used.) For example, a fully qualified domain name 1399780fb4a2SCy Schubert# prefixed with a unique identifier of the BSS (e.g., BSSID) can be used here. 1400780fb4a2SCy Schubert# 140139beb93cSSam Leffler# When using IEEE 802.11r, nas_identifier must be set and must be between 1 and 140239beb93cSSam Leffler# 48 octets long. 1403780fb4a2SCy Schubert# 1404780fb4a2SCy Schubert# It is mandatory to configure either own_ip_addr or nas_identifier to be 1405780fb4a2SCy Schubert# compliant with the RADIUS protocol. When using RADIUS accounting, it is 1406780fb4a2SCy Schubert# strongly recommended that nas_identifier is set to a unique value for each 1407780fb4a2SCy Schubert# BSS. 140839beb93cSSam Leffler#nas_identifier=ap.example.com 140939beb93cSSam Leffler 14105b9c547cSRui Paulo# RADIUS client forced local IP address for the access point 14115b9c547cSRui Paulo# Normally the local IP address is determined automatically based on configured 14125b9c547cSRui Paulo# IP addresses, but this field can be used to force a specific address to be 14135b9c547cSRui Paulo# used, e.g., when the device has multiple IP addresses. 14145b9c547cSRui Paulo#radius_client_addr=127.0.0.1 14155b9c547cSRui Paulo 1416c1d255d3SCy Schubert# RADIUS client forced local interface. Helps run properly with VRF 1417c1d255d3SCy Schubert# Default is none set which allows the network stack to pick the appropriate 1418c1d255d3SCy Schubert# interface automatically. 1419c1d255d3SCy Schubert# Example below binds to eth0 1420c1d255d3SCy Schubert#radius_client_dev=eth0 1421c1d255d3SCy Schubert 142239beb93cSSam Leffler# RADIUS authentication server 142339beb93cSSam Leffler#auth_server_addr=127.0.0.1 142439beb93cSSam Leffler#auth_server_port=1812 142539beb93cSSam Leffler#auth_server_shared_secret=secret 142639beb93cSSam Leffler 142739beb93cSSam Leffler# RADIUS accounting server 142839beb93cSSam Leffler#acct_server_addr=127.0.0.1 142939beb93cSSam Leffler#acct_server_port=1813 143039beb93cSSam Leffler#acct_server_shared_secret=secret 143139beb93cSSam Leffler 143239beb93cSSam Leffler# Secondary RADIUS servers; to be used if primary one does not reply to 143339beb93cSSam Leffler# RADIUS packets. These are optional and there can be more than one secondary 143439beb93cSSam Leffler# server listed. 143539beb93cSSam Leffler#auth_server_addr=127.0.0.2 143639beb93cSSam Leffler#auth_server_port=1812 143739beb93cSSam Leffler#auth_server_shared_secret=secret2 143839beb93cSSam Leffler# 143939beb93cSSam Leffler#acct_server_addr=127.0.0.2 144039beb93cSSam Leffler#acct_server_port=1813 144139beb93cSSam Leffler#acct_server_shared_secret=secret2 144239beb93cSSam Leffler 144339beb93cSSam Leffler# Retry interval for trying to return to the primary RADIUS server (in 144439beb93cSSam Leffler# seconds). RADIUS client code will automatically try to use the next server 144539beb93cSSam Leffler# when the current server is not replying to requests. If this interval is set, 144639beb93cSSam Leffler# primary server will be retried after configured amount of time even if the 144739beb93cSSam Leffler# currently used secondary server is still working. 144839beb93cSSam Leffler#radius_retry_primary_interval=600 144939beb93cSSam Leffler 145039beb93cSSam Leffler 145139beb93cSSam Leffler# Interim accounting update interval 145239beb93cSSam Leffler# If this is set (larger than 0) and acct_server is configured, hostapd will 145339beb93cSSam Leffler# send interim accounting updates every N seconds. Note: if set, this overrides 145439beb93cSSam Leffler# possible Acct-Interim-Interval attribute in Access-Accept message. Thus, this 145539beb93cSSam Leffler# value should not be configured in hostapd.conf, if RADIUS server is used to 145639beb93cSSam Leffler# control the interim interval. 145739beb93cSSam Leffler# This value should not be less 600 (10 minutes) and must not be less than 145839beb93cSSam Leffler# 60 (1 minute). 145939beb93cSSam Leffler#radius_acct_interim_interval=600 146039beb93cSSam Leffler 1461f05cddf9SRui Paulo# Request Chargeable-User-Identity (RFC 4372) 1462f05cddf9SRui Paulo# This parameter can be used to configure hostapd to request CUI from the 1463f05cddf9SRui Paulo# RADIUS server by including Chargeable-User-Identity attribute into 1464f05cddf9SRui Paulo# Access-Request packets. 1465f05cddf9SRui Paulo#radius_request_cui=1 1466f05cddf9SRui Paulo 146739beb93cSSam Leffler# Dynamic VLAN mode; allow RADIUS authentication server to decide which VLAN 146839beb93cSSam Leffler# is used for the stations. This information is parsed from following RADIUS 146939beb93cSSam Leffler# attributes based on RFC 3580 and RFC 2868: Tunnel-Type (value 13 = VLAN), 147039beb93cSSam Leffler# Tunnel-Medium-Type (value 6 = IEEE 802), Tunnel-Private-Group-ID (value 14715b9c547cSRui Paulo# VLANID as a string). Optionally, the local MAC ACL list (accept_mac_file) can 14725b9c547cSRui Paulo# be used to set static client MAC address to VLAN ID mapping. 14734bc52338SCy Schubert# Dynamic VLAN mode is also used with VLAN ID assignment based on WPA/WPA2 14744bc52338SCy Schubert# passphrase from wpa_psk_file or vlan_id parameter from sae_password. 14754bc52338SCy Schubert# 0 = disabled (default); only VLAN IDs from accept_mac_file will be used 14764bc52338SCy Schubert# 1 = optional; use default interface if RADIUS server does not include VLAN ID 147739beb93cSSam Leffler# 2 = required; reject authentication if RADIUS server does not include VLAN ID 147839beb93cSSam Leffler#dynamic_vlan=0 147939beb93cSSam Leffler 1480780fb4a2SCy Schubert# Per-Station AP_VLAN interface mode 1481780fb4a2SCy Schubert# If enabled, each station is assigned its own AP_VLAN interface. 1482780fb4a2SCy Schubert# This implies per-station group keying and ebtables filtering of inter-STA 1483780fb4a2SCy Schubert# traffic (when passed through the AP). 1484780fb4a2SCy Schubert# If the sta is not assigned to any VLAN, then its AP_VLAN interface will be 1485780fb4a2SCy Schubert# added to the bridge given by the "bridge" configuration option (see above). 1486780fb4a2SCy Schubert# Otherwise, it will be added to the per-VLAN bridge. 1487780fb4a2SCy Schubert# 0 = disabled (default) 1488780fb4a2SCy Schubert# 1 = enabled 1489780fb4a2SCy Schubert#per_sta_vif=0 1490780fb4a2SCy Schubert 149139beb93cSSam Leffler# VLAN interface list for dynamic VLAN mode is read from a separate text file. 149239beb93cSSam Leffler# This list is used to map VLAN ID from the RADIUS server to a network 149339beb93cSSam Leffler# interface. Each station is bound to one interface in the same way as with 149439beb93cSSam Leffler# multiple BSSIDs or SSIDs. Each line in this text file is defining a new 149539beb93cSSam Leffler# interface and the line must include VLAN ID and interface name separated by 149639beb93cSSam Leffler# white space (space or tab). 14975b9c547cSRui Paulo# If no entries are provided by this file, the station is statically mapped 14985b9c547cSRui Paulo# to <bss-iface>.<vlan-id> interfaces. 14994bc52338SCy Schubert# Each line can optionally also contain the name of a bridge to add the VLAN to 150039beb93cSSam Leffler#vlan_file=/etc/hostapd.vlan 150139beb93cSSam Leffler 150239beb93cSSam Leffler# Interface where 802.1q tagged packets should appear when a RADIUS server is 150339beb93cSSam Leffler# used to determine which VLAN a station is on. hostapd creates a bridge for 150439beb93cSSam Leffler# each VLAN. Then hostapd adds a VLAN interface (associated with the interface 150539beb93cSSam Leffler# indicated by 'vlan_tagged_interface') and the appropriate wireless interface 150639beb93cSSam Leffler# to the bridge. 150739beb93cSSam Leffler#vlan_tagged_interface=eth0 150839beb93cSSam Leffler 15095b9c547cSRui Paulo# Bridge (prefix) to add the wifi and the tagged interface to. This gets the 15105b9c547cSRui Paulo# VLAN ID appended. It defaults to brvlan%d if no tagged interface is given 15115b9c547cSRui Paulo# and br%s.%d if a tagged interface is given, provided %s = tagged interface 15125b9c547cSRui Paulo# and %d = VLAN ID. 15135b9c547cSRui Paulo#vlan_bridge=brvlan 15145b9c547cSRui Paulo 1515f05cddf9SRui Paulo# When hostapd creates a VLAN interface on vlan_tagged_interfaces, it needs 1516f05cddf9SRui Paulo# to know how to name it. 1517f05cddf9SRui Paulo# 0 = vlan<XXX>, e.g., vlan1 1518f05cddf9SRui Paulo# 1 = <vlan_tagged_interface>.<XXX>, e.g. eth0.1 1519f05cddf9SRui Paulo#vlan_naming=0 1520f05cddf9SRui Paulo 1521f05cddf9SRui Paulo# Arbitrary RADIUS attributes can be added into Access-Request and 1522f05cddf9SRui Paulo# Accounting-Request packets by specifying the contents of the attributes with 1523f05cddf9SRui Paulo# the following configuration parameters. There can be multiple of these to 1524f05cddf9SRui Paulo# add multiple attributes. These parameters can also be used to override some 1525f05cddf9SRui Paulo# of the attributes added automatically by hostapd. 1526f05cddf9SRui Paulo# Format: <attr_id>[:<syntax:value>] 1527f05cddf9SRui Paulo# attr_id: RADIUS attribute type (e.g., 26 = Vendor-Specific) 1528f05cddf9SRui Paulo# syntax: s = string (UTF-8), d = integer, x = octet string 1529f05cddf9SRui Paulo# value: attribute value in format indicated by the syntax 1530f05cddf9SRui Paulo# If syntax and value parts are omitted, a null value (single 0x00 octet) is 1531f05cddf9SRui Paulo# used. 1532f05cddf9SRui Paulo# 1533f05cddf9SRui Paulo# Additional Access-Request attributes 1534f05cddf9SRui Paulo# radius_auth_req_attr=<attr_id>[:<syntax:value>] 1535f05cddf9SRui Paulo# Examples: 1536f05cddf9SRui Paulo# Operator-Name = "Operator" 1537f05cddf9SRui Paulo#radius_auth_req_attr=126:s:Operator 1538f05cddf9SRui Paulo# Service-Type = Framed (2) 1539f05cddf9SRui Paulo#radius_auth_req_attr=6:d:2 1540f05cddf9SRui Paulo# Connect-Info = "testing" (this overrides the automatically generated value) 1541f05cddf9SRui Paulo#radius_auth_req_attr=77:s:testing 1542f05cddf9SRui Paulo# Same Connect-Info value set as a hexdump 1543f05cddf9SRui Paulo#radius_auth_req_attr=77:x:74657374696e67 1544f05cddf9SRui Paulo 1545f05cddf9SRui Paulo# 1546f05cddf9SRui Paulo# Additional Accounting-Request attributes 1547f05cddf9SRui Paulo# radius_acct_req_attr=<attr_id>[:<syntax:value>] 1548f05cddf9SRui Paulo# Examples: 1549f05cddf9SRui Paulo# Operator-Name = "Operator" 1550f05cddf9SRui Paulo#radius_acct_req_attr=126:s:Operator 1551f05cddf9SRui Paulo 1552206b73d0SCy Schubert# If SQLite support is included, path to a database from which additional 1553206b73d0SCy Schubert# RADIUS request attributes are extracted based on the station MAC address. 1554206b73d0SCy Schubert# 1555206b73d0SCy Schubert# The schema for the radius_attributes table is: 1556206b73d0SCy Schubert# id | sta | reqtype | attr : multi-key (sta, reqtype) 1557206b73d0SCy Schubert# id = autonumber 1558206b73d0SCy Schubert# sta = station MAC address in `11:22:33:44:55:66` format. 1559206b73d0SCy Schubert# type = `auth` | `acct` | NULL (match any) 1560206b73d0SCy Schubert# attr = existing config file format, e.g. `126:s:Test Operator` 1561206b73d0SCy Schubert#radius_req_attr_sqlite=radius_attr.sqlite 1562206b73d0SCy Schubert 1563f05cddf9SRui Paulo# Dynamic Authorization Extensions (RFC 5176) 1564f05cddf9SRui Paulo# This mechanism can be used to allow dynamic changes to user session based on 1565f05cddf9SRui Paulo# commands from a RADIUS server (or some other disconnect client that has the 1566f05cddf9SRui Paulo# needed session information). For example, Disconnect message can be used to 1567f05cddf9SRui Paulo# request an associated station to be disconnected. 1568f05cddf9SRui Paulo# 1569f05cddf9SRui Paulo# This is disabled by default. Set radius_das_port to non-zero UDP port 1570f05cddf9SRui Paulo# number to enable. 1571f05cddf9SRui Paulo#radius_das_port=3799 1572f05cddf9SRui Paulo# 1573f05cddf9SRui Paulo# DAS client (the host that can send Disconnect/CoA requests) and shared secret 157485732ac8SCy Schubert# Format: <IP address> <shared secret> 157585732ac8SCy Schubert# IP address 0.0.0.0 can be used to allow requests from any address. 1576f05cddf9SRui Paulo#radius_das_client=192.168.1.123 shared secret here 1577f05cddf9SRui Paulo# 1578f05cddf9SRui Paulo# DAS Event-Timestamp time window in seconds 1579f05cddf9SRui Paulo#radius_das_time_window=300 1580f05cddf9SRui Paulo# 1581f05cddf9SRui Paulo# DAS require Event-Timestamp 1582f05cddf9SRui Paulo#radius_das_require_event_timestamp=1 1583780fb4a2SCy Schubert# 1584780fb4a2SCy Schubert# DAS require Message-Authenticator 1585780fb4a2SCy Schubert#radius_das_require_message_authenticator=1 158639beb93cSSam Leffler 158739beb93cSSam Leffler##### RADIUS authentication server configuration ############################## 158839beb93cSSam Leffler 158939beb93cSSam Leffler# hostapd can be used as a RADIUS authentication server for other hosts. This 159039beb93cSSam Leffler# requires that the integrated EAP server is also enabled and both 159139beb93cSSam Leffler# authentication services are sharing the same configuration. 159239beb93cSSam Leffler 159339beb93cSSam Leffler# File name of the RADIUS clients configuration for the RADIUS server. If this 159439beb93cSSam Leffler# commented out, RADIUS server is disabled. 159539beb93cSSam Leffler#radius_server_clients=/etc/hostapd.radius_clients 159639beb93cSSam Leffler 159739beb93cSSam Leffler# The UDP port number for the RADIUS authentication server 159839beb93cSSam Leffler#radius_server_auth_port=1812 159939beb93cSSam Leffler 16005b9c547cSRui Paulo# The UDP port number for the RADIUS accounting server 16015b9c547cSRui Paulo# Commenting this out or setting this to 0 can be used to disable RADIUS 16025b9c547cSRui Paulo# accounting while still enabling RADIUS authentication. 16035b9c547cSRui Paulo#radius_server_acct_port=1813 16045b9c547cSRui Paulo 160539beb93cSSam Leffler# Use IPv6 with RADIUS server (IPv4 will also be supported using IPv6 API) 160639beb93cSSam Leffler#radius_server_ipv6=1 160739beb93cSSam Leffler 160839beb93cSSam Leffler 160939beb93cSSam Leffler##### WPA/IEEE 802.11i configuration ########################################## 161039beb93cSSam Leffler 161139beb93cSSam Leffler# Enable WPA. Setting this variable configures the AP to require WPA (either 161239beb93cSSam Leffler# WPA-PSK or WPA-RADIUS/EAP based on other configuration). For WPA-PSK, either 161339beb93cSSam Leffler# wpa_psk or wpa_passphrase must be set and wpa_key_mgmt must include WPA-PSK. 1614f05cddf9SRui Paulo# Instead of wpa_psk / wpa_passphrase, wpa_psk_radius might suffice. 161539beb93cSSam Leffler# For WPA-RADIUS/EAP, ieee8021x must be set (but without dynamic WEP keys), 161639beb93cSSam Leffler# RADIUS authentication server must be configured, and WPA-EAP must be included 161739beb93cSSam Leffler# in wpa_key_mgmt. 161839beb93cSSam Leffler# This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0) 161939beb93cSSam Leffler# and/or WPA2 (full IEEE 802.11i/RSN): 162039beb93cSSam Leffler# bit0 = WPA 162139beb93cSSam Leffler# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled) 162285732ac8SCy Schubert# Note that WPA3 is also configured with bit1 since it uses RSN just like WPA2. 162385732ac8SCy Schubert# In other words, for WPA3, wpa=2 is used the configuration (and 162485732ac8SCy Schubert# wpa_key_mgmt=SAE for WPA3-Personal instead of wpa_key_mgmt=WPA-PSK). 162585732ac8SCy Schubert#wpa=2 162639beb93cSSam Leffler 1627c1d255d3SCy Schubert# Extended Key ID support for Individually Addressed frames 1628c1d255d3SCy Schubert# 1629c1d255d3SCy Schubert# Extended Key ID allows to rekey PTK keys without the impacts the "normal" 1630c1d255d3SCy Schubert# PTK rekeying with only a single Key ID 0 has. It can only be used when the 1631c1d255d3SCy Schubert# driver supports it and RSN/WPA2 is used with a CCMP/GCMP pairwise cipher. 1632c1d255d3SCy Schubert# 1633c1d255d3SCy Schubert# 0 = force off, i.e., use only Key ID 0 (default) 1634c1d255d3SCy Schubert# 1 = enable and use Extended Key ID support when possible 1635c1d255d3SCy Schubert# 2 = identical to 1 but start with Key ID 1 when possible 1636c1d255d3SCy Schubert#extended_key_id=0 1637c1d255d3SCy Schubert 163839beb93cSSam Leffler# WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit 163939beb93cSSam Leffler# secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase 164039beb93cSSam Leffler# (8..63 characters) that will be converted to PSK. This conversion uses SSID 164139beb93cSSam Leffler# so the PSK changes when ASCII passphrase is used and the SSID is changed. 164239beb93cSSam Leffler# wpa_psk (dot11RSNAConfigPSKValue) 164339beb93cSSam Leffler# wpa_passphrase (dot11RSNAConfigPSKPassPhrase) 164439beb93cSSam Leffler#wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef 164539beb93cSSam Leffler#wpa_passphrase=secret passphrase 164639beb93cSSam Leffler 164739beb93cSSam Leffler# Optionally, WPA PSKs can be read from a separate text file (containing list 164839beb93cSSam Leffler# of (PSK,MAC address) pairs. This allows more than one PSK to be configured. 164939beb93cSSam Leffler# Use absolute path name to make sure that the files can be read on SIGHUP 165039beb93cSSam Leffler# configuration reloads. 165139beb93cSSam Leffler#wpa_psk_file=/etc/hostapd.wpa_psk 165239beb93cSSam Leffler 1653f05cddf9SRui Paulo# Optionally, WPA passphrase can be received from RADIUS authentication server 1654f05cddf9SRui Paulo# This requires macaddr_acl to be set to 2 (RADIUS) 1655f05cddf9SRui Paulo# 0 = disabled (default) 1656f05cddf9SRui Paulo# 1 = optional; use default passphrase/psk if RADIUS server does not include 1657f05cddf9SRui Paulo# Tunnel-Password 1658f05cddf9SRui Paulo# 2 = required; reject authentication if RADIUS server does not include 1659f05cddf9SRui Paulo# Tunnel-Password 1660f05cddf9SRui Paulo#wpa_psk_radius=0 1661f05cddf9SRui Paulo 166239beb93cSSam Leffler# Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both). The 166339beb93cSSam Leffler# entries are separated with a space. WPA-PSK-SHA256 and WPA-EAP-SHA256 can be 166439beb93cSSam Leffler# added to enable SHA256-based stronger algorithms. 166585732ac8SCy Schubert# WPA-PSK = WPA-Personal / WPA2-Personal 166685732ac8SCy Schubert# WPA-PSK-SHA256 = WPA2-Personal using SHA256 166785732ac8SCy Schubert# WPA-EAP = WPA-Enterprise / WPA2-Enterprise 166885732ac8SCy Schubert# WPA-EAP-SHA256 = WPA2-Enterprise using SHA256 166985732ac8SCy Schubert# SAE = SAE (WPA3-Personal) 167085732ac8SCy Schubert# WPA-EAP-SUITE-B-192 = WPA3-Enterprise with 192-bit security/CNSA suite 167185732ac8SCy Schubert# FT-PSK = FT with passphrase/PSK 167285732ac8SCy Schubert# FT-EAP = FT with EAP 167385732ac8SCy Schubert# FT-EAP-SHA384 = FT with EAP using SHA384 167485732ac8SCy Schubert# FT-SAE = FT with SAE 167585732ac8SCy Schubert# FILS-SHA256 = Fast Initial Link Setup with SHA256 167685732ac8SCy Schubert# FILS-SHA384 = Fast Initial Link Setup with SHA384 167785732ac8SCy Schubert# FT-FILS-SHA256 = FT and Fast Initial Link Setup with SHA256 167885732ac8SCy Schubert# FT-FILS-SHA384 = FT and Fast Initial Link Setup with SHA384 167985732ac8SCy Schubert# OWE = Opportunistic Wireless Encryption (a.k.a. Enhanced Open) 168085732ac8SCy Schubert# DPP = Device Provisioning Protocol 168185732ac8SCy Schubert# OSEN = Hotspot 2.0 online signup with encryption 168239beb93cSSam Leffler# (dot11RSNAConfigAuthenticationSuitesTable) 168339beb93cSSam Leffler#wpa_key_mgmt=WPA-PSK WPA-EAP 168439beb93cSSam Leffler 168539beb93cSSam Leffler# Set of accepted cipher suites (encryption algorithms) for pairwise keys 168639beb93cSSam Leffler# (unicast packets). This is a space separated list of algorithms: 168785732ac8SCy Schubert# CCMP = AES in Counter mode with CBC-MAC (CCMP-128) 168885732ac8SCy Schubert# TKIP = Temporal Key Integrity Protocol 168985732ac8SCy Schubert# CCMP-256 = AES in Counter mode with CBC-MAC with 256-bit key 169085732ac8SCy Schubert# GCMP = Galois/counter mode protocol (GCMP-128) 169185732ac8SCy Schubert# GCMP-256 = Galois/counter mode protocol with 256-bit key 169239beb93cSSam Leffler# Group cipher suite (encryption algorithm for broadcast and multicast frames) 169339beb93cSSam Leffler# is automatically selected based on this configuration. If only CCMP is 169439beb93cSSam Leffler# allowed as the pairwise cipher, group cipher will also be CCMP. Otherwise, 169585732ac8SCy Schubert# TKIP will be used as the group cipher. The optional group_cipher parameter can 169685732ac8SCy Schubert# be used to override this automatic selection. 169785732ac8SCy Schubert# 169839beb93cSSam Leffler# (dot11RSNAConfigPairwiseCiphersTable) 169939beb93cSSam Leffler# Pairwise cipher for WPA (v1) (default: TKIP) 170039beb93cSSam Leffler#wpa_pairwise=TKIP CCMP 170139beb93cSSam Leffler# Pairwise cipher for RSN/WPA2 (default: use wpa_pairwise value) 170239beb93cSSam Leffler#rsn_pairwise=CCMP 170339beb93cSSam Leffler 170485732ac8SCy Schubert# Optional override for automatic group cipher selection 170585732ac8SCy Schubert# This can be used to select a specific group cipher regardless of which 170685732ac8SCy Schubert# pairwise ciphers were enabled for WPA and RSN. It should be noted that 170785732ac8SCy Schubert# overriding the group cipher with an unexpected value can result in 170885732ac8SCy Schubert# interoperability issues and in general, this parameter is mainly used for 170985732ac8SCy Schubert# testing purposes. 171085732ac8SCy Schubert#group_cipher=CCMP 171185732ac8SCy Schubert 171239beb93cSSam Leffler# Time interval for rekeying GTK (broadcast/multicast encryption keys) in 171339beb93cSSam Leffler# seconds. (dot11RSNAConfigGroupRekeyTime) 171485732ac8SCy Schubert# This defaults to 86400 seconds (once per day) when using CCMP/GCMP as the 171585732ac8SCy Schubert# group cipher and 600 seconds (once per 10 minutes) when using TKIP as the 171685732ac8SCy Schubert# group cipher. 171785732ac8SCy Schubert#wpa_group_rekey=86400 171839beb93cSSam Leffler 171939beb93cSSam Leffler# Rekey GTK when any STA that possesses the current GTK is leaving the BSS. 172039beb93cSSam Leffler# (dot11RSNAConfigGroupRekeyStrict) 172139beb93cSSam Leffler#wpa_strict_rekey=1 172239beb93cSSam Leffler 172385732ac8SCy Schubert# The number of times EAPOL-Key Message 1/2 in the RSN Group Key Handshake is 172485732ac8SCy Schubert#retried per GTK Handshake attempt. (dot11RSNAConfigGroupUpdateCount) 172585732ac8SCy Schubert# This value should only be increased when stations are constantly 172685732ac8SCy Schubert# deauthenticated during GTK rekeying with the log message 172785732ac8SCy Schubert# "group key handshake failed...". 172885732ac8SCy Schubert# You should consider to also increase wpa_pairwise_update_count then. 172985732ac8SCy Schubert# Range 1..4294967295; default: 4 173085732ac8SCy Schubert#wpa_group_update_count=4 173185732ac8SCy Schubert 173239beb93cSSam Leffler# Time interval for rekeying GMK (master key used internally to generate GTKs 173339beb93cSSam Leffler# (in seconds). 173439beb93cSSam Leffler#wpa_gmk_rekey=86400 173539beb93cSSam Leffler 173639beb93cSSam Leffler# Maximum lifetime for PTK in seconds. This can be used to enforce rekeying of 173739beb93cSSam Leffler# PTK to mitigate some attacks against TKIP deficiencies. 1738c1d255d3SCy Schubert# Warning: PTK rekeying is buggy with many drivers/devices and with such 1739c1d255d3SCy Schubert# devices, the only secure method to rekey the PTK without Extended Key ID 1740c1d255d3SCy Schubert# support requires a disconnection. Check the related parameter 1741c1d255d3SCy Schubert# wpa_deny_ptk0_rekey for details. 174239beb93cSSam Leffler#wpa_ptk_rekey=600 174339beb93cSSam Leffler 1744c1d255d3SCy Schubert# Workaround for PTK rekey issues 1745c1d255d3SCy Schubert# 1746c1d255d3SCy Schubert# PTK0 rekeys (rekeying the PTK without "Extended Key ID for Individually 1747c1d255d3SCy Schubert# Addressed Frames") can degrade the security and stability with some cards. 1748c1d255d3SCy Schubert# To avoid such issues hostapd can replace those PTK rekeys (including EAP 1749c1d255d3SCy Schubert# reauthentications) with disconnects. 1750c1d255d3SCy Schubert# 1751c1d255d3SCy Schubert# Available options: 1752c1d255d3SCy Schubert# 0 = always rekey when configured/instructed (default) 1753c1d255d3SCy Schubert# 1 = only rekey when the local driver is explicitly indicating it can perform 1754c1d255d3SCy Schubert# this operation without issues 1755c1d255d3SCy Schubert# 2 = never allow PTK0 rekeys 1756c1d255d3SCy Schubert#wpa_deny_ptk0_rekey=0 1757c1d255d3SCy Schubert 175885732ac8SCy Schubert# The number of times EAPOL-Key Message 1/4 and Message 3/4 in the RSN 4-Way 175985732ac8SCy Schubert# Handshake are retried per 4-Way Handshake attempt. 176085732ac8SCy Schubert# (dot11RSNAConfigPairwiseUpdateCount) 176185732ac8SCy Schubert# Range 1..4294967295; default: 4 176285732ac8SCy Schubert#wpa_pairwise_update_count=4 176385732ac8SCy Schubert 176485732ac8SCy Schubert# Workaround for key reinstallation attacks 176585732ac8SCy Schubert# 176685732ac8SCy Schubert# This parameter can be used to disable retransmission of EAPOL-Key frames that 176785732ac8SCy Schubert# are used to install keys (EAPOL-Key message 3/4 and group message 1/2). This 176885732ac8SCy Schubert# is similar to setting wpa_group_update_count=1 and 176985732ac8SCy Schubert# wpa_pairwise_update_count=1, but with no impact to message 1/4 and with 177085732ac8SCy Schubert# extended timeout on the response to avoid causing issues with stations that 177185732ac8SCy Schubert# may use aggressive power saving have very long time in replying to the 177285732ac8SCy Schubert# EAPOL-Key messages. 177385732ac8SCy Schubert# 177485732ac8SCy Schubert# This option can be used to work around key reinstallation attacks on the 177585732ac8SCy Schubert# station (supplicant) side in cases those station devices cannot be updated 177685732ac8SCy Schubert# for some reason. By removing the retransmissions the attacker cannot cause 177785732ac8SCy Schubert# key reinstallation with a delayed frame transmission. This is related to the 177885732ac8SCy Schubert# station side vulnerabilities CVE-2017-13077, CVE-2017-13078, CVE-2017-13079, 177985732ac8SCy Schubert# CVE-2017-13080, and CVE-2017-13081. 178085732ac8SCy Schubert# 178185732ac8SCy Schubert# This workaround might cause interoperability issues and reduced robustness of 178285732ac8SCy Schubert# key negotiation especially in environments with heavy traffic load due to the 178385732ac8SCy Schubert# number of attempts to perform the key exchange is reduced significantly. As 178485732ac8SCy Schubert# such, this workaround is disabled by default (unless overridden in build 178585732ac8SCy Schubert# configuration). To enable this, set the parameter to 1. 178685732ac8SCy Schubert#wpa_disable_eapol_key_retries=1 178785732ac8SCy Schubert 178839beb93cSSam Leffler# Enable IEEE 802.11i/RSN/WPA2 pre-authentication. This is used to speed up 178939beb93cSSam Leffler# roaming be pre-authenticating IEEE 802.1X/EAP part of the full RSN 179039beb93cSSam Leffler# authentication and key handshake before actually associating with a new AP. 179139beb93cSSam Leffler# (dot11RSNAPreauthenticationEnabled) 179239beb93cSSam Leffler#rsn_preauth=1 179339beb93cSSam Leffler# 179439beb93cSSam Leffler# Space separated list of interfaces from which pre-authentication frames are 179539beb93cSSam Leffler# accepted (e.g., 'eth0' or 'eth0 wlan0wds0'. This list should include all 179639beb93cSSam Leffler# interface that are used for connections to other APs. This could include 179739beb93cSSam Leffler# wired interfaces and WDS links. The normal wireless data interface towards 179839beb93cSSam Leffler# associated stations (e.g., wlan0) should not be added, since 179939beb93cSSam Leffler# pre-authentication is only used with APs other than the currently associated 180039beb93cSSam Leffler# one. 180139beb93cSSam Leffler#rsn_preauth_interfaces=eth0 180239beb93cSSam Leffler 180339beb93cSSam Leffler# ieee80211w: Whether management frame protection (MFP) is enabled 180439beb93cSSam Leffler# 0 = disabled (default) 180539beb93cSSam Leffler# 1 = optional 180639beb93cSSam Leffler# 2 = required 180739beb93cSSam Leffler#ieee80211w=0 1808c1d255d3SCy Schubert# The most common configuration options for this based on the PMF (protected 1809c1d255d3SCy Schubert# management frames) certification program are: 1810c1d255d3SCy Schubert# PMF enabled: ieee80211w=1 and wpa_key_mgmt=WPA-EAP WPA-EAP-SHA256 1811c1d255d3SCy Schubert# PMF required: ieee80211w=2 and wpa_key_mgmt=WPA-EAP-SHA256 1812c1d255d3SCy Schubert# (and similarly for WPA-PSK and WPA-PSK-SHA256 if WPA2-Personal is used) 1813c1d255d3SCy Schubert# WPA3-Personal-only mode: ieee80211w=2 and wpa_key_mgmt=SAE 181439beb93cSSam Leffler 18155b9c547cSRui Paulo# Group management cipher suite 18165b9c547cSRui Paulo# Default: AES-128-CMAC (BIP) 18175b9c547cSRui Paulo# Other options (depending on driver support): 18185b9c547cSRui Paulo# BIP-GMAC-128 18195b9c547cSRui Paulo# BIP-GMAC-256 18205b9c547cSRui Paulo# BIP-CMAC-256 18215b9c547cSRui Paulo# Note: All the stations connecting to the BSS will also need to support the 18225b9c547cSRui Paulo# selected cipher. The default AES-128-CMAC is the only option that is commonly 18235b9c547cSRui Paulo# available in deployed devices. 18245b9c547cSRui Paulo#group_mgmt_cipher=AES-128-CMAC 18255b9c547cSRui Paulo 1826c1d255d3SCy Schubert# Beacon Protection (management frame protection for Beacon frames) 1827c1d255d3SCy Schubert# This depends on management frame protection being enabled (ieee80211w != 0) 1828c1d255d3SCy Schubert# and beacon protection support indication from the driver. 1829c1d255d3SCy Schubert# 0 = disabled (default) 1830c1d255d3SCy Schubert# 1 = enabled 1831c1d255d3SCy Schubert#beacon_prot=0 1832c1d255d3SCy Schubert 183339beb93cSSam Leffler# Association SA Query maximum timeout (in TU = 1.024 ms; for MFP) 183439beb93cSSam Leffler# (maximum time to wait for a SA Query response) 183539beb93cSSam Leffler# dot11AssociationSAQueryMaximumTimeout, 1...4294967295 183639beb93cSSam Leffler#assoc_sa_query_max_timeout=1000 183739beb93cSSam Leffler 183839beb93cSSam Leffler# Association SA Query retry timeout (in TU = 1.024 ms; for MFP) 183939beb93cSSam Leffler# (time between two subsequent SA Query requests) 184039beb93cSSam Leffler# dot11AssociationSAQueryRetryTimeout, 1...4294967295 184139beb93cSSam Leffler#assoc_sa_query_retry_timeout=201 184239beb93cSSam Leffler 18434bc52338SCy Schubert# ocv: Operating Channel Validation 18444b72b91aSCy Schubert# This is a countermeasure against multi-channel on-path attacks. 1845c1d255d3SCy Schubert# Enabling this depends on the driver's support for OCV when the driver SME is 1846c1d255d3SCy Schubert# used. If hostapd SME is used, this will be enabled just based on this 1847c1d255d3SCy Schubert# configuration. 18484bc52338SCy Schubert# Enabling this automatically also enables ieee80211w, if not yet enabled. 18494bc52338SCy Schubert# 0 = disabled (default) 18504bc52338SCy Schubert# 1 = enabled 1851c1d255d3SCy Schubert# 2 = enabled in workaround mode - Allow STA that claims OCV capability to 1852c1d255d3SCy Schubert# connect even if the STA doesn't send OCI or negotiate PMF. This 1853c1d255d3SCy Schubert# workaround is to improve interoperability with legacy STAs which are 1854c1d255d3SCy Schubert# wrongly copying reserved bits of RSN capabilities from the AP's 1855c1d255d3SCy Schubert# RSNE into (Re)Association Request frames. When this configuration is 1856c1d255d3SCy Schubert# enabled, the AP considers STA is OCV capable only when the STA indicates 1857c1d255d3SCy Schubert# MFP capability in (Re)Association Request frames and sends OCI in 1858c1d255d3SCy Schubert# EAPOL-Key msg 2/4/FT Reassociation Request frame/FILS (Re)Association 1859c1d255d3SCy Schubert# Request frame; otherwise, the AP disables OCV for the current connection 1860c1d255d3SCy Schubert# with the STA. Enabling this workaround mode reduced OCV protection to 1861c1d255d3SCy Schubert# some extend since it allows misbehavior to go through. As such, this 1862c1d255d3SCy Schubert# should be enabled only if interoperability with misbehaving STAs is 1863c1d255d3SCy Schubert# needed. 18644bc52338SCy Schubert#ocv=1 18654bc52338SCy Schubert 1866f05cddf9SRui Paulo# disable_pmksa_caching: Disable PMKSA caching 1867f05cddf9SRui Paulo# This parameter can be used to disable caching of PMKSA created through EAP 1868f05cddf9SRui Paulo# authentication. RSN preauthentication may still end up using PMKSA caching if 1869f05cddf9SRui Paulo# it is enabled (rsn_preauth=1). 1870f05cddf9SRui Paulo# 0 = PMKSA caching enabled (default) 1871f05cddf9SRui Paulo# 1 = PMKSA caching disabled 1872f05cddf9SRui Paulo#disable_pmksa_caching=0 187339beb93cSSam Leffler 187439beb93cSSam Leffler# okc: Opportunistic Key Caching (aka Proactive Key Caching) 187539beb93cSSam Leffler# Allow PMK cache to be shared opportunistically among configured interfaces 187639beb93cSSam Leffler# and BSSes (i.e., all configurations within a single hostapd process). 187739beb93cSSam Leffler# 0 = disabled (default) 187839beb93cSSam Leffler# 1 = enabled 187939beb93cSSam Leffler#okc=1 188039beb93cSSam Leffler 188185732ac8SCy Schubert# SAE password 188285732ac8SCy Schubert# This parameter can be used to set passwords for SAE. By default, the 188385732ac8SCy Schubert# wpa_passphrase value is used if this separate parameter is not used, but 188485732ac8SCy Schubert# wpa_passphrase follows the WPA-PSK constraints (8..63 characters) even though 188585732ac8SCy Schubert# SAE passwords do not have such constraints. If the BSS enabled both SAE and 188685732ac8SCy Schubert# WPA-PSK and both values are set, SAE uses the sae_password values and WPA-PSK 188785732ac8SCy Schubert# uses the wpa_passphrase value. 188885732ac8SCy Schubert# 188985732ac8SCy Schubert# Each sae_password entry is added to a list of available passwords. This 189085732ac8SCy Schubert# corresponds to the dot11RSNAConfigPasswordValueEntry. sae_password value 189185732ac8SCy Schubert# starts with the password (dot11RSNAConfigPasswordCredential). That value can 189285732ac8SCy Schubert# be followed by optional peer MAC address (dot11RSNAConfigPasswordPeerMac) and 18934bc52338SCy Schubert# by optional password identifier (dot11RSNAConfigPasswordIdentifier). In 18944bc52338SCy Schubert# addition, an optional VLAN ID specification can be used to bind the station 1895c1d255d3SCy Schubert# to the specified VLAN whenever the specific SAE password entry is used. 18964bc52338SCy Schubert# 18974bc52338SCy Schubert# If the peer MAC address is not included or is set to the wildcard address 189885732ac8SCy Schubert# (ff:ff:ff:ff:ff:ff), the entry is available for any station to use. If a 189985732ac8SCy Schubert# specific peer MAC address is included, only a station with that MAC address 19004bc52338SCy Schubert# is allowed to use the entry. 19014bc52338SCy Schubert# 19024bc52338SCy Schubert# If the password identifier (with non-zero length) is included, the entry is 19034bc52338SCy Schubert# limited to be used only with that specified identifier. 19044bc52338SCy Schubert 19054bc52338SCy Schubert# The last matching (based on peer MAC address and identifier) entry is used to 19064bc52338SCy Schubert# select which password to use. Setting sae_password to an empty string has a 19074bc52338SCy Schubert# special meaning of removing all previously added entries. 19084bc52338SCy Schubert# 190985732ac8SCy Schubert# sae_password uses the following encoding: 1910c1d255d3SCy Schubert#<password/credential>[|mac=<peer mac>][|vlanid=<VLAN ID>] 1911c1d255d3SCy Schubert#[|pk=<m:ECPrivateKey-base64>][|id=<identifier>] 191285732ac8SCy Schubert# Examples: 191385732ac8SCy Schubert#sae_password=secret 191485732ac8SCy Schubert#sae_password=really secret|mac=ff:ff:ff:ff:ff:ff 191585732ac8SCy Schubert#sae_password=example secret|mac=02:03:04:05:06:07|id=pw identifier 19164bc52338SCy Schubert#sae_password=example secret|vlanid=3|id=pw identifier 191785732ac8SCy Schubert 19185b9c547cSRui Paulo# SAE threshold for anti-clogging mechanism (dot11RSNASAEAntiCloggingThreshold) 19195b9c547cSRui Paulo# This parameter defines how many open SAE instances can be in progress at the 19205b9c547cSRui Paulo# same time before the anti-clogging mechanism is taken into use. 1921c1d255d3SCy Schubert#sae_anti_clogging_threshold=5 (deprecated) 1922c1d255d3SCy Schubert#anti_clogging_threshold=5 19235b9c547cSRui Paulo 192485732ac8SCy Schubert# Maximum number of SAE synchronization errors (dot11RSNASAESync) 1925c1d255d3SCy Schubert# The offending SAE peer will be disconnected if more than this many 192685732ac8SCy Schubert# synchronization errors happen. 192785732ac8SCy Schubert#sae_sync=5 192885732ac8SCy Schubert 19295b9c547cSRui Paulo# Enabled SAE finite cyclic groups 19305b9c547cSRui Paulo# SAE implementation are required to support group 19 (ECC group defined over a 19314bc52338SCy Schubert# 256-bit prime order field). This configuration parameter can be used to 19324bc52338SCy Schubert# specify a set of allowed groups. If not included, only the mandatory group 19 19334bc52338SCy Schubert# is enabled. 19344bc52338SCy Schubert# The group values are listed in the IANA registry: 19355b9c547cSRui Paulo# http://www.iana.org/assignments/ipsec-registry/ipsec-registry.xml#ipsec-registry-9 19364bc52338SCy Schubert# Note that groups 1, 2, 5, 22, 23, and 24 should not be used in production 19374bc52338SCy Schubert# purposes due limited security (see RFC 8247). Groups that are not as strong as 19384bc52338SCy Schubert# group 19 (ECC, NIST P-256) are unlikely to be useful for production use cases 19394bc52338SCy Schubert# since all implementations are required to support group 19. 19404bc52338SCy Schubert#sae_groups=19 20 21 194139beb93cSSam Leffler 194285732ac8SCy Schubert# Require MFP for all associations using SAE 194385732ac8SCy Schubert# This parameter can be used to enforce negotiation of MFP for all associations 194485732ac8SCy Schubert# that negotiate use of SAE. This is used in cases where SAE-capable devices are 194585732ac8SCy Schubert# known to be MFP-capable and the BSS is configured with optional MFP 194685732ac8SCy Schubert# (ieee80211w=1) for legacy support. The non-SAE stations can connect without 194785732ac8SCy Schubert# MFP while SAE stations are required to negotiate MFP if sae_require_mfp=1. 194885732ac8SCy Schubert#sae_require_mfp=0 194985732ac8SCy Schubert 1950c1d255d3SCy Schubert# SAE Confirm behavior 1951c1d255d3SCy Schubert# By default, AP will send out only SAE Commit message in response to a received 1952c1d255d3SCy Schubert# SAE Commit message. This parameter can be set to 1 to override that behavior 1953c1d255d3SCy Schubert# to send both SAE Commit and SAE Confirm messages without waiting for the STA 1954c1d255d3SCy Schubert# to send its SAE Confirm message first. 1955c1d255d3SCy Schubert#sae_confirm_immediate=0 1956c1d255d3SCy Schubert 1957c1d255d3SCy Schubert# SAE mechanism for PWE derivation 1958c1d255d3SCy Schubert# 0 = hunting-and-pecking loop only (default without password identifier) 1959c1d255d3SCy Schubert# 1 = hash-to-element only (default with password identifier) 1960c1d255d3SCy Schubert# 2 = both hunting-and-pecking loop and hash-to-element enabled 1961c1d255d3SCy Schubert# Note: The default value is likely to change from 0 to 2 once the new 1962c1d255d3SCy Schubert# hash-to-element mechanism has received more interoperability testing. 1963c1d255d3SCy Schubert# When using SAE password identifier, the hash-to-element mechanism is used 1964c1d255d3SCy Schubert# regardless of the sae_pwe parameter value. 1965c1d255d3SCy Schubert#sae_pwe=0 1966c1d255d3SCy Schubert 196785732ac8SCy Schubert# FILS Cache Identifier (16-bit value in hexdump format) 196885732ac8SCy Schubert#fils_cache_id=0011 196985732ac8SCy Schubert 197085732ac8SCy Schubert# FILS Realm Information 197185732ac8SCy Schubert# One or more FILS realms need to be configured when FILS is enabled. This list 197285732ac8SCy Schubert# of realms is used to define which realms (used in keyName-NAI by the client) 197385732ac8SCy Schubert# can be used with FILS shared key authentication for ERP. 197485732ac8SCy Schubert#fils_realm=example.com 197585732ac8SCy Schubert#fils_realm=example.org 197685732ac8SCy Schubert 197785732ac8SCy Schubert# FILS DH Group for PFS 197885732ac8SCy Schubert# 0 = PFS disabled with FILS shared key authentication (default) 197985732ac8SCy Schubert# 1-65535 DH Group to use for FILS PFS 198085732ac8SCy Schubert#fils_dh_group=0 198185732ac8SCy Schubert 198285732ac8SCy Schubert# OWE DH groups 198385732ac8SCy Schubert# OWE implementations are required to support group 19 (NIST P-256). All groups 198485732ac8SCy Schubert# that are supported by the implementation (e.g., groups 19, 20, and 21 when 198585732ac8SCy Schubert# using OpenSSL) are enabled by default. This configuration parameter can be 198685732ac8SCy Schubert# used to specify a limited set of allowed groups. The group values are listed 198785732ac8SCy Schubert# in the IANA registry: 198885732ac8SCy Schubert# http://www.iana.org/assignments/ipsec-registry/ipsec-registry.xml#ipsec-registry-10 198985732ac8SCy Schubert#owe_groups=19 20 21 199085732ac8SCy Schubert 1991c1d255d3SCy Schubert# OWE PTK derivation workaround 1992c1d255d3SCy Schubert# Initial OWE implementation used SHA256 when deriving the PTK for all OWE 1993c1d255d3SCy Schubert# groups. This was supposed to change to SHA384 for group 20 and SHA512 for 1994c1d255d3SCy Schubert# group 21. This parameter can be used to enable workaround for interoperability 1995c1d255d3SCy Schubert# with stations that use SHA256 with groups 20 and 21. By default (0) only the 1996c1d255d3SCy Schubert# appropriate hash function is accepted. When workaround is enabled (1), the 1997c1d255d3SCy Schubert# appropriate hash function is tried first and if that fails, SHA256-based PTK 1998c1d255d3SCy Schubert# derivation is attempted. This workaround can result in reduced security for 1999c1d255d3SCy Schubert# groups 20 and 21, but is required for interoperability with older 2000c1d255d3SCy Schubert# implementations. There is no impact to group 19 behavior. The workaround is 2001c1d255d3SCy Schubert# disabled by default and can be enabled by uncommenting the following line. 2002c1d255d3SCy Schubert#owe_ptk_workaround=1 2003c1d255d3SCy Schubert 200485732ac8SCy Schubert# OWE transition mode configuration 200585732ac8SCy Schubert# Pointer to the matching open/OWE BSS 200685732ac8SCy Schubert#owe_transition_bssid=<bssid> 200785732ac8SCy Schubert# SSID in same format as ssid2 described above. 200885732ac8SCy Schubert#owe_transition_ssid=<SSID> 200985732ac8SCy Schubert# Alternatively, OWE transition mode BSSID/SSID can be configured with a 201085732ac8SCy Schubert# reference to a BSS operated by this hostapd process. 201185732ac8SCy Schubert#owe_transition_ifname=<ifname> 201285732ac8SCy Schubert 201385732ac8SCy Schubert# DHCP server for FILS HLP 201485732ac8SCy Schubert# If configured, hostapd will act as a DHCP relay for all FILS HLP requests 201585732ac8SCy Schubert# that include a DHCPDISCOVER message and send them to the specific DHCP 201685732ac8SCy Schubert# server for processing. hostapd will then wait for a response from that server 201785732ac8SCy Schubert# before replying with (Re)Association Response frame that encapsulates this 201885732ac8SCy Schubert# DHCP response. own_ip_addr is used as the local address for the communication 201985732ac8SCy Schubert# with the DHCP server. 202085732ac8SCy Schubert#dhcp_server=127.0.0.1 202185732ac8SCy Schubert 202285732ac8SCy Schubert# DHCP server UDP port 202385732ac8SCy Schubert# Default: 67 202485732ac8SCy Schubert#dhcp_server_port=67 202585732ac8SCy Schubert 202685732ac8SCy Schubert# DHCP relay UDP port on the local device 202785732ac8SCy Schubert# Default: 67; 0 means not to bind any specific port 202885732ac8SCy Schubert#dhcp_relay_port=67 202985732ac8SCy Schubert 203085732ac8SCy Schubert# DHCP rapid commit proxy 203185732ac8SCy Schubert# If set to 1, this enables hostapd to act as a DHCP rapid commit proxy to 203285732ac8SCy Schubert# allow the rapid commit options (two message DHCP exchange) to be used with a 203385732ac8SCy Schubert# server that supports only the four message DHCP exchange. This is disabled by 203485732ac8SCy Schubert# default (= 0) and can be enabled by setting this to 1. 203585732ac8SCy Schubert#dhcp_rapid_commit_proxy=0 203685732ac8SCy Schubert 203785732ac8SCy Schubert# Wait time for FILS HLP (dot11HLPWaitTime) in TUs 203885732ac8SCy Schubert# default: 30 TUs (= 30.72 milliseconds) 203985732ac8SCy Schubert#fils_hlp_wait_time=30 204085732ac8SCy Schubert 2041c1d255d3SCy Schubert# FILS Discovery frame transmission minimum and maximum interval settings. 2042c1d255d3SCy Schubert# If fils_discovery_max_interval is non-zero, the AP enables FILS Discovery 2043c1d255d3SCy Schubert# frame transmission. These values use TUs as the unit and have allowed range 2044c1d255d3SCy Schubert# of 0-10000. fils_discovery_min_interval defaults to 20. 2045c1d255d3SCy Schubert#fils_discovery_min_interval=20 2046c1d255d3SCy Schubert#fils_discovery_max_interval=0 2047c1d255d3SCy Schubert 2048c1d255d3SCy Schubert# Transition Disable indication 2049c1d255d3SCy Schubert# The AP can notify authenticated stations to disable transition mode in their 2050c1d255d3SCy Schubert# network profiles when the network has completed transition steps, i.e., once 2051c1d255d3SCy Schubert# sufficiently large number of APs in the ESS have been updated to support the 2052c1d255d3SCy Schubert# more secure alternative. When this indication is used, the stations are 2053c1d255d3SCy Schubert# expected to automatically disable transition mode and less secure security 2054c1d255d3SCy Schubert# options. This includes use of WEP, TKIP (including use of TKIP as the group 2055c1d255d3SCy Schubert# cipher), and connections without PMF. 2056c1d255d3SCy Schubert# Bitmap bits: 2057c1d255d3SCy Schubert# bit 0 (0x01): WPA3-Personal (i.e., disable WPA2-Personal = WPA-PSK and only 2058c1d255d3SCy Schubert# allow SAE to be used) 2059c1d255d3SCy Schubert# bit 1 (0x02): SAE-PK (disable SAE without use of SAE-PK) 2060c1d255d3SCy Schubert# bit 2 (0x04): WPA3-Enterprise (move to requiring PMF) 2061c1d255d3SCy Schubert# bit 3 (0x08): Enhanced Open (disable use of open network; require OWE) 2062c1d255d3SCy Schubert# (default: 0 = do not include Transition Disable KDE) 2063c1d255d3SCy Schubert#transition_disable=0x01 2064c1d255d3SCy Schubert 2065c1d255d3SCy Schubert# PASN ECDH groups 2066c1d255d3SCy Schubert# PASN implementations are required to support group 19 (NIST P-256). If this 2067c1d255d3SCy Schubert# parameter is not set, only group 19 is supported by default. This 2068c1d255d3SCy Schubert# configuration parameter can be used to specify a limited set of allowed 2069c1d255d3SCy Schubert# groups. The group values are listed in the IANA registry: 2070c1d255d3SCy Schubert# http://www.iana.org/assignments/ipsec-registry/ipsec-registry.xml#ipsec-registry-10 2071c1d255d3SCy Schubert#pasn_groups=19 20 21 2072c1d255d3SCy Schubert 2073c1d255d3SCy Schubert# PASN comeback after time in TUs 2074c1d255d3SCy Schubert# In case the AP is temporarily unable to handle a PASN authentication exchange 2075c1d255d3SCy Schubert# due to a too large number of parallel operations, this value indicates to the 2076c1d255d3SCy Schubert# peer after how many TUs it can try the PASN exchange again. 2077c1d255d3SCy Schubert# (default: 10 TUs) 2078c1d255d3SCy Schubert#pasn_comeback_after=10 2079c1d255d3SCy Schubert 208039beb93cSSam Leffler##### IEEE 802.11r configuration ############################################## 208139beb93cSSam Leffler 208239beb93cSSam Leffler# Mobility Domain identifier (dot11FTMobilityDomainID, MDID) 208339beb93cSSam Leffler# MDID is used to indicate a group of APs (within an ESS, i.e., sharing the 208439beb93cSSam Leffler# same SSID) between which a STA can use Fast BSS Transition. 208539beb93cSSam Leffler# 2-octet identifier as a hex string. 208639beb93cSSam Leffler#mobility_domain=a1b2 208739beb93cSSam Leffler 208839beb93cSSam Leffler# PMK-R0 Key Holder identifier (dot11FTR0KeyHolderID) 208939beb93cSSam Leffler# 1 to 48 octet identifier. 209039beb93cSSam Leffler# This is configured with nas_identifier (see RADIUS client section above). 209139beb93cSSam Leffler 209285732ac8SCy Schubert# Default lifetime of the PMK-R0 in seconds; range 60..4294967295 209385732ac8SCy Schubert# (default: 14 days / 1209600 seconds; 0 = disable timeout) 209439beb93cSSam Leffler# (dot11FTR0KeyLifetime) 209585732ac8SCy Schubert#ft_r0_key_lifetime=1209600 209685732ac8SCy Schubert 209785732ac8SCy Schubert# Maximum lifetime for PMK-R1; applied only if not zero 209885732ac8SCy Schubert# PMK-R1 is removed at latest after this limit. 209985732ac8SCy Schubert# Removing any PMK-R1 for expiry can be disabled by setting this to -1. 210085732ac8SCy Schubert# (default: 0) 210185732ac8SCy Schubert#r1_max_key_lifetime=0 210239beb93cSSam Leffler 210339beb93cSSam Leffler# PMK-R1 Key Holder identifier (dot11FTR1KeyHolderID) 210439beb93cSSam Leffler# 6-octet identifier as a hex string. 2105780fb4a2SCy Schubert# Defaults to BSSID. 210639beb93cSSam Leffler#r1_key_holder=000102030405 210739beb93cSSam Leffler 210839beb93cSSam Leffler# Reassociation deadline in time units (TUs / 1.024 ms; range 1000..65535) 210939beb93cSSam Leffler# (dot11FTReassociationDeadline) 211039beb93cSSam Leffler#reassociation_deadline=1000 211139beb93cSSam Leffler 211239beb93cSSam Leffler# List of R0KHs in the same Mobility Domain 211385732ac8SCy Schubert# format: <MAC address> <NAS Identifier> <256-bit key as hex string> 211439beb93cSSam Leffler# This list is used to map R0KH-ID (NAS Identifier) to a destination MAC 211539beb93cSSam Leffler# address when requesting PMK-R1 key from the R0KH that the STA used during the 211639beb93cSSam Leffler# Initial Mobility Domain Association. 211785732ac8SCy Schubert#r0kh=02:01:02:03:04:05 r0kh-1.example.com 000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f 211885732ac8SCy Schubert#r0kh=02:01:02:03:04:06 r0kh-2.example.com 00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff 211939beb93cSSam Leffler# And so on.. One line per R0KH. 212085732ac8SCy Schubert# Wildcard entry: 212185732ac8SCy Schubert# Upon receiving a response from R0KH, it will be added to this list, so 212285732ac8SCy Schubert# subsequent requests won't be broadcast. If R0KH does not reply, it will be 2123c1d255d3SCy Schubert# temporarily blocked (see rkh_neg_timeout). 212485732ac8SCy Schubert#r0kh=ff:ff:ff:ff:ff:ff * 00112233445566778899aabbccddeeff 212539beb93cSSam Leffler 212639beb93cSSam Leffler# List of R1KHs in the same Mobility Domain 212785732ac8SCy Schubert# format: <MAC address> <R1KH-ID> <256-bit key as hex string> 212839beb93cSSam Leffler# This list is used to map R1KH-ID to a destination MAC address when sending 212939beb93cSSam Leffler# PMK-R1 key from the R0KH. This is also the list of authorized R1KHs in the MD 213039beb93cSSam Leffler# that can request PMK-R1 keys. 213185732ac8SCy Schubert#r1kh=02:01:02:03:04:05 02:11:22:33:44:55 000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f 213285732ac8SCy Schubert#r1kh=02:01:02:03:04:06 02:11:22:33:44:66 00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff 213339beb93cSSam Leffler# And so on.. One line per R1KH. 213485732ac8SCy Schubert# Wildcard entry: 213585732ac8SCy Schubert# Upon receiving a request from an R1KH not yet known, it will be added to this 213685732ac8SCy Schubert# list and thus will receive push notifications. 213785732ac8SCy Schubert#r1kh=00:00:00:00:00:00 00:00:00:00:00:00 00112233445566778899aabbccddeeff 213885732ac8SCy Schubert 213985732ac8SCy Schubert# Timeout (seconds) for newly discovered R0KH/R1KH (see wildcard entries above) 214085732ac8SCy Schubert# Special values: 0 -> do not expire 214185732ac8SCy Schubert# Warning: do not cache implies no sequence number validation with wildcards 214285732ac8SCy Schubert#rkh_pos_timeout=86400 (default = 1 day) 214385732ac8SCy Schubert 214485732ac8SCy Schubert# Timeout (milliseconds) for requesting PMK-R1 from R0KH using PULL request 214585732ac8SCy Schubert# and number of retries. 214685732ac8SCy Schubert#rkh_pull_timeout=1000 (default = 1 second) 214785732ac8SCy Schubert#rkh_pull_retries=4 (default) 214885732ac8SCy Schubert 214985732ac8SCy Schubert# Timeout (seconds) for non replying R0KH (see wildcard entries above) 215085732ac8SCy Schubert# Special values: 0 -> do not cache 215185732ac8SCy Schubert# default: 60 seconds 215285732ac8SCy Schubert#rkh_neg_timeout=60 215385732ac8SCy Schubert 215485732ac8SCy Schubert# Note: The R0KH/R1KH keys used to be 128-bit in length before the message 215585732ac8SCy Schubert# format was changed. That shorter key length is still supported for backwards 215685732ac8SCy Schubert# compatibility of the configuration files. If such a shorter key is used, a 215785732ac8SCy Schubert# 256-bit key is derived from it. For new deployments, configuring the 256-bit 215885732ac8SCy Schubert# key is recommended. 215939beb93cSSam Leffler 216039beb93cSSam Leffler# Whether PMK-R1 push is enabled at R0KH 216139beb93cSSam Leffler# 0 = do not push PMK-R1 to all configured R1KHs (default) 216239beb93cSSam Leffler# 1 = push PMK-R1 to all configured R1KHs whenever a new PMK-R0 is derived 216339beb93cSSam Leffler#pmk_r1_push=1 216439beb93cSSam Leffler 2165325151a3SRui Paulo# Whether to enable FT-over-DS 2166325151a3SRui Paulo# 0 = FT-over-DS disabled 2167325151a3SRui Paulo# 1 = FT-over-DS enabled (default) 2168325151a3SRui Paulo#ft_over_ds=1 2169325151a3SRui Paulo 217085732ac8SCy Schubert# Whether to generate FT response locally for PSK networks 217185732ac8SCy Schubert# This avoids use of PMK-R1 push/pull from other APs with FT-PSK networks as 217285732ac8SCy Schubert# the required information (PSK and other session data) is already locally 217385732ac8SCy Schubert# available. 217485732ac8SCy Schubert# 0 = disabled (default) 217585732ac8SCy Schubert# 1 = enabled 217685732ac8SCy Schubert#ft_psk_generate_local=0 217785732ac8SCy Schubert 2178e28a4053SRui Paulo##### Neighbor table ########################################################## 2179c1d255d3SCy Schubert# Maximum number of entries kept in AP table (either for neighbor table or for 2180e28a4053SRui Paulo# detecting Overlapping Legacy BSS Condition). The oldest entry will be 218139beb93cSSam Leffler# removed when adding a new entry that would make the list grow over this 2182e28a4053SRui Paulo# limit. Note! WFA certification for IEEE 802.11g requires that OLBC is 218339beb93cSSam Leffler# enabled, so this field should not be set to 0 when using IEEE 802.11g. 218439beb93cSSam Leffler# default: 255 218539beb93cSSam Leffler#ap_table_max_size=255 218639beb93cSSam Leffler 218739beb93cSSam Leffler# Number of seconds of no frames received after which entries may be deleted 218839beb93cSSam Leffler# from the AP table. Since passive scanning is not usually performed frequently 218939beb93cSSam Leffler# this should not be set to very small value. In addition, there is no 219039beb93cSSam Leffler# guarantee that every scan cycle will receive beacon frames from the 219139beb93cSSam Leffler# neighboring APs. 219239beb93cSSam Leffler# default: 60 219339beb93cSSam Leffler#ap_table_expiration_time=3600 219439beb93cSSam Leffler 2195325151a3SRui Paulo# Maximum number of stations to track on the operating channel 2196325151a3SRui Paulo# This can be used to detect dualband capable stations before they have 2197325151a3SRui Paulo# associated, e.g., to provide guidance on which colocated BSS to use. 2198325151a3SRui Paulo# Default: 0 (disabled) 2199325151a3SRui Paulo#track_sta_max_num=100 2200325151a3SRui Paulo 2201325151a3SRui Paulo# Maximum age of a station tracking entry in seconds 2202325151a3SRui Paulo# Default: 180 2203325151a3SRui Paulo#track_sta_max_age=180 2204325151a3SRui Paulo 2205325151a3SRui Paulo# Do not reply to group-addressed Probe Request from a station that was seen on 2206325151a3SRui Paulo# another radio. 2207325151a3SRui Paulo# Default: Disabled 2208325151a3SRui Paulo# 2209325151a3SRui Paulo# This can be used with enabled track_sta_max_num configuration on another 2210325151a3SRui Paulo# interface controlled by the same hostapd process to restrict Probe Request 2211325151a3SRui Paulo# frame handling from replying to group-addressed Probe Request frames from a 2212325151a3SRui Paulo# station that has been detected to be capable of operating on another band, 2213325151a3SRui Paulo# e.g., to try to reduce likelihood of the station selecting a 2.4 GHz BSS when 2214325151a3SRui Paulo# the AP operates both a 2.4 GHz and 5 GHz BSS concurrently. 2215325151a3SRui Paulo# 2216325151a3SRui Paulo# Note: Enabling this can cause connectivity issues and increase latency for 2217325151a3SRui Paulo# discovering the AP. 2218325151a3SRui Paulo#no_probe_resp_if_seen_on=wlan1 2219325151a3SRui Paulo 2220325151a3SRui Paulo# Reject authentication from a station that was seen on another radio. 2221325151a3SRui Paulo# Default: Disabled 2222325151a3SRui Paulo# 2223325151a3SRui Paulo# This can be used with enabled track_sta_max_num configuration on another 2224325151a3SRui Paulo# interface controlled by the same hostapd process to reject authentication 2225325151a3SRui Paulo# attempts from a station that has been detected to be capable of operating on 2226325151a3SRui Paulo# another band, e.g., to try to reduce likelihood of the station selecting a 2227325151a3SRui Paulo# 2.4 GHz BSS when the AP operates both a 2.4 GHz and 5 GHz BSS concurrently. 2228325151a3SRui Paulo# 2229325151a3SRui Paulo# Note: Enabling this can cause connectivity issues and increase latency for 2230325151a3SRui Paulo# connecting with the AP. 2231325151a3SRui Paulo#no_auth_if_seen_on=wlan1 223239beb93cSSam Leffler 223339beb93cSSam Leffler##### Wi-Fi Protected Setup (WPS) ############################################# 223439beb93cSSam Leffler 223539beb93cSSam Leffler# WPS state 223639beb93cSSam Leffler# 0 = WPS disabled (default) 223739beb93cSSam Leffler# 1 = WPS enabled, not configured 223839beb93cSSam Leffler# 2 = WPS enabled, configured 223939beb93cSSam Leffler#wps_state=2 224039beb93cSSam Leffler 22415b9c547cSRui Paulo# Whether to manage this interface independently from other WPS interfaces 22425b9c547cSRui Paulo# By default, a single hostapd process applies WPS operations to all configured 22435b9c547cSRui Paulo# interfaces. This parameter can be used to disable that behavior for a subset 22445b9c547cSRui Paulo# of interfaces. If this is set to non-zero for an interface, WPS commands 22455b9c547cSRui Paulo# issued on that interface do not apply to other interfaces and WPS operations 22465b9c547cSRui Paulo# performed on other interfaces do not affect this interface. 22475b9c547cSRui Paulo#wps_independent=0 22485b9c547cSRui Paulo 224939beb93cSSam Leffler# AP can be configured into a locked state where new WPS Registrar are not 225039beb93cSSam Leffler# accepted, but previously authorized Registrars (including the internal one) 225139beb93cSSam Leffler# can continue to add new Enrollees. 225239beb93cSSam Leffler#ap_setup_locked=1 225339beb93cSSam Leffler 225439beb93cSSam Leffler# Universally Unique IDentifier (UUID; see RFC 4122) of the device 225539beb93cSSam Leffler# This value is used as the UUID for the internal WPS Registrar. If the AP 225639beb93cSSam Leffler# is also using UPnP, this value should be set to the device's UPnP UUID. 225739beb93cSSam Leffler# If not configured, UUID will be generated based on the local MAC address. 225839beb93cSSam Leffler#uuid=12345678-9abc-def0-1234-56789abcdef0 225939beb93cSSam Leffler 226039beb93cSSam Leffler# Note: If wpa_psk_file is set, WPS is used to generate random, per-device PSKs 226139beb93cSSam Leffler# that will be appended to the wpa_psk_file. If wpa_psk_file is not set, the 226239beb93cSSam Leffler# default PSK (wpa_psk/wpa_passphrase) will be delivered to Enrollees. Use of 226339beb93cSSam Leffler# per-device PSKs is recommended as the more secure option (i.e., make sure to 226439beb93cSSam Leffler# set wpa_psk_file when using WPS with WPA-PSK). 226539beb93cSSam Leffler 226639beb93cSSam Leffler# When an Enrollee requests access to the network with PIN method, the Enrollee 226739beb93cSSam Leffler# PIN will need to be entered for the Registrar. PIN request notifications are 226839beb93cSSam Leffler# sent to hostapd ctrl_iface monitor. In addition, they can be written to a 226939beb93cSSam Leffler# text file that could be used, e.g., to populate the AP administration UI with 227039beb93cSSam Leffler# pending PIN requests. If the following variable is set, the PIN requests will 227139beb93cSSam Leffler# be written to the configured file. 227239beb93cSSam Leffler#wps_pin_requests=/var/run/hostapd_wps_pin_requests 227339beb93cSSam Leffler 227439beb93cSSam Leffler# Device Name 227539beb93cSSam Leffler# User-friendly description of device; up to 32 octets encoded in UTF-8 227639beb93cSSam Leffler#device_name=Wireless AP 227739beb93cSSam Leffler 227839beb93cSSam Leffler# Manufacturer 227939beb93cSSam Leffler# The manufacturer of the device (up to 64 ASCII characters) 228039beb93cSSam Leffler#manufacturer=Company 228139beb93cSSam Leffler 228239beb93cSSam Leffler# Model Name 228339beb93cSSam Leffler# Model of the device (up to 32 ASCII characters) 228439beb93cSSam Leffler#model_name=WAP 228539beb93cSSam Leffler 228639beb93cSSam Leffler# Model Number 228739beb93cSSam Leffler# Additional device description (up to 32 ASCII characters) 228839beb93cSSam Leffler#model_number=123 228939beb93cSSam Leffler 229039beb93cSSam Leffler# Serial Number 229139beb93cSSam Leffler# Serial number of the device (up to 32 characters) 229239beb93cSSam Leffler#serial_number=12345 229339beb93cSSam Leffler 229439beb93cSSam Leffler# Primary Device Type 229539beb93cSSam Leffler# Used format: <categ>-<OUI>-<subcateg> 229639beb93cSSam Leffler# categ = Category as an integer value 229739beb93cSSam Leffler# OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for 229839beb93cSSam Leffler# default WPS OUI 229939beb93cSSam Leffler# subcateg = OUI-specific Sub Category as an integer value 230039beb93cSSam Leffler# Examples: 230139beb93cSSam Leffler# 1-0050F204-1 (Computer / PC) 230239beb93cSSam Leffler# 1-0050F204-2 (Computer / Server) 230339beb93cSSam Leffler# 5-0050F204-1 (Storage / NAS) 230439beb93cSSam Leffler# 6-0050F204-1 (Network Infrastructure / AP) 230539beb93cSSam Leffler#device_type=6-0050F204-1 230639beb93cSSam Leffler 230739beb93cSSam Leffler# OS Version 230839beb93cSSam Leffler# 4-octet operating system version number (hex string) 230939beb93cSSam Leffler#os_version=01020300 231039beb93cSSam Leffler 231139beb93cSSam Leffler# Config Methods 231239beb93cSSam Leffler# List of the supported configuration methods 2313e28a4053SRui Paulo# Available methods: usba ethernet label display ext_nfc_token int_nfc_token 2314f05cddf9SRui Paulo# nfc_interface push_button keypad virtual_display physical_display 2315f05cddf9SRui Paulo# virtual_push_button physical_push_button 2316f05cddf9SRui Paulo#config_methods=label virtual_display virtual_push_button keypad 2317f05cddf9SRui Paulo 2318f05cddf9SRui Paulo# WPS capability discovery workaround for PBC with Windows 7 2319f05cddf9SRui Paulo# Windows 7 uses incorrect way of figuring out AP's WPS capabilities by acting 2320f05cddf9SRui Paulo# as a Registrar and using M1 from the AP. The config methods attribute in that 2321f05cddf9SRui Paulo# message is supposed to indicate only the configuration method supported by 2322f05cddf9SRui Paulo# the AP in Enrollee role, i.e., to add an external Registrar. For that case, 2323f05cddf9SRui Paulo# PBC shall not be used and as such, the PushButton config method is removed 2324f05cddf9SRui Paulo# from M1 by default. If pbc_in_m1=1 is included in the configuration file, 2325f05cddf9SRui Paulo# the PushButton config method is left in M1 (if included in config_methods 2326f05cddf9SRui Paulo# parameter) to allow Windows 7 to use PBC instead of PIN (e.g., from a label 2327f05cddf9SRui Paulo# in the AP). 2328f05cddf9SRui Paulo#pbc_in_m1=1 232939beb93cSSam Leffler 2330e28a4053SRui Paulo# Static access point PIN for initial configuration and adding Registrars 233139beb93cSSam Leffler# If not set, hostapd will not allow external WPS Registrars to control the 2332e28a4053SRui Paulo# access point. The AP PIN can also be set at runtime with hostapd_cli 2333e28a4053SRui Paulo# wps_ap_pin command. Use of temporary (enabled by user action) and random 2334e28a4053SRui Paulo# AP PIN is much more secure than configuring a static AP PIN here. As such, 2335e28a4053SRui Paulo# use of the ap_pin parameter is not recommended if the AP device has means for 2336e28a4053SRui Paulo# displaying a random PIN. 233739beb93cSSam Leffler#ap_pin=12345670 233839beb93cSSam Leffler 233939beb93cSSam Leffler# Skip building of automatic WPS credential 234039beb93cSSam Leffler# This can be used to allow the automatically generated Credential attribute to 234139beb93cSSam Leffler# be replaced with pre-configured Credential(s). 234239beb93cSSam Leffler#skip_cred_build=1 234339beb93cSSam Leffler 234439beb93cSSam Leffler# Additional Credential attribute(s) 234539beb93cSSam Leffler# This option can be used to add pre-configured Credential attributes into M8 234639beb93cSSam Leffler# message when acting as a Registrar. If skip_cred_build=1, this data will also 234739beb93cSSam Leffler# be able to override the Credential attribute that would have otherwise been 234839beb93cSSam Leffler# automatically generated based on network configuration. This configuration 234939beb93cSSam Leffler# option points to an external file that much contain the WPS Credential 235039beb93cSSam Leffler# attribute(s) as binary data. 235139beb93cSSam Leffler#extra_cred=hostapd.cred 235239beb93cSSam Leffler 235339beb93cSSam Leffler# Credential processing 235439beb93cSSam Leffler# 0 = process received credentials internally (default) 235539beb93cSSam Leffler# 1 = do not process received credentials; just pass them over ctrl_iface to 235639beb93cSSam Leffler# external program(s) 235739beb93cSSam Leffler# 2 = process received credentials internally and pass them over ctrl_iface 235839beb93cSSam Leffler# to external program(s) 235939beb93cSSam Leffler# Note: With wps_cred_processing=1, skip_cred_build should be set to 1 and 236039beb93cSSam Leffler# extra_cred be used to provide the Credential data for Enrollees. 236139beb93cSSam Leffler# 236239beb93cSSam Leffler# wps_cred_processing=1 will disabled automatic updates of hostapd.conf file 236339beb93cSSam Leffler# both for Credential processing and for marking AP Setup Locked based on 236439beb93cSSam Leffler# validation failures of AP PIN. An external program is responsible on updating 236539beb93cSSam Leffler# the configuration appropriately in this case. 236639beb93cSSam Leffler#wps_cred_processing=0 236739beb93cSSam Leffler 23684bc52338SCy Schubert# Whether to enable SAE (WPA3-Personal transition mode) automatically for 23694bc52338SCy Schubert# WPA2-PSK credentials received using WPS. 23704bc52338SCy Schubert# 0 = only add the explicitly listed WPA2-PSK configuration (default) 23714bc52338SCy Schubert# 1 = add both the WPA2-PSK and SAE configuration and enable PMF so that the 23724bc52338SCy Schubert# AP gets configured in WPA3-Personal transition mode (supports both 23734bc52338SCy Schubert# WPA2-Personal (PSK) and WPA3-Personal (SAE) clients). 23744bc52338SCy Schubert#wps_cred_add_sae=0 23754bc52338SCy Schubert 237639beb93cSSam Leffler# AP Settings Attributes for M7 237739beb93cSSam Leffler# By default, hostapd generates the AP Settings Attributes for M7 based on the 237839beb93cSSam Leffler# current configuration. It is possible to override this by providing a file 237939beb93cSSam Leffler# with pre-configured attributes. This is similar to extra_cred file format, 238039beb93cSSam Leffler# but the AP Settings attributes are not encapsulated in a Credential 238139beb93cSSam Leffler# attribute. 238239beb93cSSam Leffler#ap_settings=hostapd.ap_settings 238339beb93cSSam Leffler 23844bc52338SCy Schubert# Multi-AP backhaul BSS config 23854bc52338SCy Schubert# Used in WPS when multi_ap=2 or 3. Defines "backhaul BSS" credentials. 23864bc52338SCy Schubert# These are passed in WPS M8 instead of the normal (fronthaul) credentials 23874bc52338SCy Schubert# if the Enrollee has the Multi-AP subelement set. Backhaul SSID is formatted 23884bc52338SCy Schubert# like ssid2. The key is set like wpa_psk or wpa_passphrase. 23894bc52338SCy Schubert#multi_ap_backhaul_ssid="backhaul" 23904bc52338SCy Schubert#multi_ap_backhaul_wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef 23914bc52338SCy Schubert#multi_ap_backhaul_wpa_passphrase=secret passphrase 23924bc52338SCy Schubert 239339beb93cSSam Leffler# WPS UPnP interface 239439beb93cSSam Leffler# If set, support for external Registrars is enabled. 239539beb93cSSam Leffler#upnp_iface=br0 239639beb93cSSam Leffler 239739beb93cSSam Leffler# Friendly Name (required for UPnP) 239839beb93cSSam Leffler# Short description for end use. Should be less than 64 characters. 239939beb93cSSam Leffler#friendly_name=WPS Access Point 240039beb93cSSam Leffler 240139beb93cSSam Leffler# Manufacturer URL (optional for UPnP) 240239beb93cSSam Leffler#manufacturer_url=http://www.example.com/ 240339beb93cSSam Leffler 240439beb93cSSam Leffler# Model Description (recommended for UPnP) 240539beb93cSSam Leffler# Long description for end user. Should be less than 128 characters. 240639beb93cSSam Leffler#model_description=Wireless Access Point 240739beb93cSSam Leffler 240839beb93cSSam Leffler# Model URL (optional for UPnP) 240939beb93cSSam Leffler#model_url=http://www.example.com/model/ 241039beb93cSSam Leffler 241139beb93cSSam Leffler# Universal Product Code (optional for UPnP) 241239beb93cSSam Leffler# 12-digit, all-numeric code that identifies the consumer package. 241339beb93cSSam Leffler#upc=123456789012 241439beb93cSSam Leffler 2415325151a3SRui Paulo# WPS RF Bands (a = 5G, b = 2.4G, g = 2.4G, ag = dual band, ad = 60 GHz) 2416f05cddf9SRui Paulo# This value should be set according to RF band(s) supported by the AP if 2417f05cddf9SRui Paulo# hw_mode is not set. For dual band dual concurrent devices, this needs to be 2418f05cddf9SRui Paulo# set to ag to allow both RF bands to be advertized. 2419f05cddf9SRui Paulo#wps_rf_bands=ag 2420f05cddf9SRui Paulo 2421f05cddf9SRui Paulo# NFC password token for WPS 2422f05cddf9SRui Paulo# These parameters can be used to configure a fixed NFC password token for the 2423f05cddf9SRui Paulo# AP. This can be generated, e.g., with nfc_pw_token from wpa_supplicant. When 2424f05cddf9SRui Paulo# these parameters are used, the AP is assumed to be deployed with a NFC tag 2425f05cddf9SRui Paulo# that includes the matching NFC password token (e.g., written based on the 2426f05cddf9SRui Paulo# NDEF record from nfc_pw_token). 2427f05cddf9SRui Paulo# 2428f05cddf9SRui Paulo#wps_nfc_dev_pw_id: Device Password ID (16..65535) 2429f05cddf9SRui Paulo#wps_nfc_dh_pubkey: Hexdump of DH Public Key 2430f05cddf9SRui Paulo#wps_nfc_dh_privkey: Hexdump of DH Private Key 2431f05cddf9SRui Paulo#wps_nfc_dev_pw: Hexdump of Device Password 2432f05cddf9SRui Paulo 2433c1d255d3SCy Schubert# Application Extension attribute for Beacon and Probe Response frames 2434c1d255d3SCy Schubert# This parameter can be used to add application extension into WPS IE. The 2435c1d255d3SCy Schubert# contents of this parameter starts with 16-octet (32 hexdump characters) of 2436c1d255d3SCy Schubert# UUID to identify the specific application and that is followed by the actual 2437c1d255d3SCy Schubert# application specific data. 2438c1d255d3SCy Schubert#wps_application_ext=<hexdump> 2439c1d255d3SCy Schubert 2440f05cddf9SRui Paulo##### Wi-Fi Direct (P2P) ###################################################### 2441f05cddf9SRui Paulo 2442f05cddf9SRui Paulo# Enable P2P Device management 2443f05cddf9SRui Paulo#manage_p2p=1 2444f05cddf9SRui Paulo 2445f05cddf9SRui Paulo# Allow cross connection 2446f05cddf9SRui Paulo#allow_cross_connection=1 2447f05cddf9SRui Paulo 2448c1d255d3SCy Schubert##### Device Provisioning Protocol (DPP) ###################################### 2449c1d255d3SCy Schubert 2450c1d255d3SCy Schubert# Name for Enrollee's DPP Configuration Request 2451c1d255d3SCy Schubert#dpp_name=Test 2452c1d255d3SCy Schubert 2453c1d255d3SCy Schubert# MUD URL for Enrollee's DPP Configuration Request (optional) 2454c1d255d3SCy Schubert#dpp_mud_url=https://example.com/mud 2455c1d255d3SCy Schubert 2456c1d255d3SCy Schubert#dpp_connector 2457c1d255d3SCy Schubert#dpp_netaccesskey 2458c1d255d3SCy Schubert#dpp_netaccesskey_expiry 2459c1d255d3SCy Schubert#dpp_csign 2460c1d255d3SCy Schubert#dpp_controller 2461c1d255d3SCy Schubert 2462c1d255d3SCy Schubert# Configurator Connectivity indication 2463c1d255d3SCy Schubert# 0: no Configurator is currently connected (default) 2464c1d255d3SCy Schubert# 1: advertise that a Configurator is available 2465c1d255d3SCy Schubert#dpp_configurator_connectivity=0 2466c1d255d3SCy Schubert 2467c1d255d3SCy Schubert# DPP PFS 2468c1d255d3SCy Schubert# 0: allow PFS to be used or not used (default) 2469c1d255d3SCy Schubert# 1: require PFS to be used (note: not compatible with DPP R1) 2470c1d255d3SCy Schubert# 2: do not allow PFS to be used 2471c1d255d3SCy Schubert#dpp_pfs=0 2472c1d255d3SCy Schubert 2473f05cddf9SRui Paulo#### TDLS (IEEE 802.11z-2010) ################################################# 2474f05cddf9SRui Paulo 2475f05cddf9SRui Paulo# Prohibit use of TDLS in this BSS 2476f05cddf9SRui Paulo#tdls_prohibit=1 2477f05cddf9SRui Paulo 2478f05cddf9SRui Paulo# Prohibit use of TDLS Channel Switching in this BSS 2479f05cddf9SRui Paulo#tdls_prohibit_chan_switch=1 2480f05cddf9SRui Paulo 2481f05cddf9SRui Paulo##### IEEE 802.11v-2011 ####################################################### 2482f05cddf9SRui Paulo 2483f05cddf9SRui Paulo# Time advertisement 2484f05cddf9SRui Paulo# 0 = disabled (default) 2485f05cddf9SRui Paulo# 2 = UTC time at which the TSF timer is 0 2486f05cddf9SRui Paulo#time_advertisement=2 2487f05cddf9SRui Paulo 2488f05cddf9SRui Paulo# Local time zone as specified in 8.3 of IEEE Std 1003.1-2004: 2489f05cddf9SRui Paulo# stdoffset[dst[offset][,start[/time],end[/time]]] 2490f05cddf9SRui Paulo#time_zone=EST5 2491f05cddf9SRui Paulo 2492f05cddf9SRui Paulo# WNM-Sleep Mode (extended sleep mode for stations) 2493f05cddf9SRui Paulo# 0 = disabled (default) 2494f05cddf9SRui Paulo# 1 = enabled (allow stations to use WNM-Sleep Mode) 2495f05cddf9SRui Paulo#wnm_sleep_mode=1 2496f05cddf9SRui Paulo 249785732ac8SCy Schubert# WNM-Sleep Mode GTK/IGTK workaround 249885732ac8SCy Schubert# Normally, WNM-Sleep Mode exit with management frame protection negotiated 249985732ac8SCy Schubert# would result in the current GTK/IGTK getting added into the WNM-Sleep Mode 250085732ac8SCy Schubert# Response frame. Some station implementations may have a vulnerability that 250185732ac8SCy Schubert# results in GTK/IGTK reinstallation based on this frame being replayed. This 250285732ac8SCy Schubert# configuration parameter can be used to disable that behavior and use EAPOL-Key 250385732ac8SCy Schubert# frames for GTK/IGTK update instead. This would likely be only used with 250485732ac8SCy Schubert# wpa_disable_eapol_key_retries=1 that enables a workaround for similar issues 250585732ac8SCy Schubert# with EAPOL-Key. This is related to station side vulnerabilities CVE-2017-13087 250685732ac8SCy Schubert# and CVE-2017-13088. To enable this AP-side workaround, set the parameter to 1. 250785732ac8SCy Schubert#wnm_sleep_mode_no_keys=0 250885732ac8SCy Schubert 2509f05cddf9SRui Paulo# BSS Transition Management 2510f05cddf9SRui Paulo# 0 = disabled (default) 2511f05cddf9SRui Paulo# 1 = enabled 2512f05cddf9SRui Paulo#bss_transition=1 2513f05cddf9SRui Paulo 25145b9c547cSRui Paulo# Proxy ARP 25155b9c547cSRui Paulo# 0 = disabled (default) 25165b9c547cSRui Paulo# 1 = enabled 25175b9c547cSRui Paulo#proxy_arp=1 25185b9c547cSRui Paulo 2519325151a3SRui Paulo# IPv6 Neighbor Advertisement multicast-to-unicast conversion 2520325151a3SRui Paulo# This can be used with Proxy ARP to allow multicast NAs to be forwarded to 2521325151a3SRui Paulo# associated STAs using link layer unicast delivery. 2522325151a3SRui Paulo# 0 = disabled (default) 2523325151a3SRui Paulo# 1 = enabled 2524325151a3SRui Paulo#na_mcast_to_ucast=0 2525325151a3SRui Paulo 2526f05cddf9SRui Paulo##### IEEE 802.11u-2011 ####################################################### 2527f05cddf9SRui Paulo 2528f05cddf9SRui Paulo# Enable Interworking service 2529f05cddf9SRui Paulo#interworking=1 2530f05cddf9SRui Paulo 2531f05cddf9SRui Paulo# Access Network Type 2532f05cddf9SRui Paulo# 0 = Private network 2533f05cddf9SRui Paulo# 1 = Private network with guest access 2534f05cddf9SRui Paulo# 2 = Chargeable public network 2535f05cddf9SRui Paulo# 3 = Free public network 2536f05cddf9SRui Paulo# 4 = Personal device network 2537f05cddf9SRui Paulo# 5 = Emergency services only network 2538f05cddf9SRui Paulo# 14 = Test or experimental 2539f05cddf9SRui Paulo# 15 = Wildcard 2540f05cddf9SRui Paulo#access_network_type=0 2541f05cddf9SRui Paulo 2542f05cddf9SRui Paulo# Whether the network provides connectivity to the Internet 2543f05cddf9SRui Paulo# 0 = Unspecified 2544f05cddf9SRui Paulo# 1 = Network provides connectivity to the Internet 2545f05cddf9SRui Paulo#internet=1 2546f05cddf9SRui Paulo 2547f05cddf9SRui Paulo# Additional Step Required for Access 2548f05cddf9SRui Paulo# Note: This is only used with open network, i.e., ASRA shall ne set to 0 if 2549f05cddf9SRui Paulo# RSN is used. 2550f05cddf9SRui Paulo#asra=0 2551f05cddf9SRui Paulo 2552f05cddf9SRui Paulo# Emergency services reachable 2553f05cddf9SRui Paulo#esr=0 2554f05cddf9SRui Paulo 2555f05cddf9SRui Paulo# Unauthenticated emergency service accessible 2556f05cddf9SRui Paulo#uesa=0 2557f05cddf9SRui Paulo 2558f05cddf9SRui Paulo# Venue Info (optional) 2559f05cddf9SRui Paulo# The available values are defined in IEEE Std 802.11u-2011, 7.3.1.34. 2560f05cddf9SRui Paulo# Example values (group,type): 2561f05cddf9SRui Paulo# 0,0 = Unspecified 2562f05cddf9SRui Paulo# 1,7 = Convention Center 2563f05cddf9SRui Paulo# 1,13 = Coffee Shop 2564f05cddf9SRui Paulo# 2,0 = Unspecified Business 2565f05cddf9SRui Paulo# 7,1 Private Residence 2566f05cddf9SRui Paulo#venue_group=7 2567f05cddf9SRui Paulo#venue_type=1 2568f05cddf9SRui Paulo 2569f05cddf9SRui Paulo# Homogeneous ESS identifier (optional; dot11HESSID) 2570f05cddf9SRui Paulo# If set, this shall be identifical to one of the BSSIDs in the homogeneous 2571f05cddf9SRui Paulo# ESS and this shall be set to the same value across all BSSs in homogeneous 2572f05cddf9SRui Paulo# ESS. 2573f05cddf9SRui Paulo#hessid=02:03:04:05:06:07 2574f05cddf9SRui Paulo 2575f05cddf9SRui Paulo# Roaming Consortium List 2576f05cddf9SRui Paulo# Arbitrary number of Roaming Consortium OIs can be configured with each line 2577f05cddf9SRui Paulo# adding a new OI to the list. The first three entries are available through 2578f05cddf9SRui Paulo# Beacon and Probe Response frames. Any additional entry will be available only 2579f05cddf9SRui Paulo# through ANQP queries. Each OI is between 3 and 15 octets and is configured as 2580f05cddf9SRui Paulo# a hexstring. 2581f05cddf9SRui Paulo#roaming_consortium=021122 2582f05cddf9SRui Paulo#roaming_consortium=2233445566 2583f05cddf9SRui Paulo 2584f05cddf9SRui Paulo# Venue Name information 2585f05cddf9SRui Paulo# This parameter can be used to configure one or more Venue Name Duples for 2586f05cddf9SRui Paulo# Venue Name ANQP information. Each entry has a two or three character language 2587f05cddf9SRui Paulo# code (ISO-639) separated by colon from the venue name string. 2588f05cddf9SRui Paulo# Note that venue_group and venue_type have to be set for Venue Name 2589f05cddf9SRui Paulo# information to be complete. 2590f05cddf9SRui Paulo#venue_name=eng:Example venue 2591f05cddf9SRui Paulo#venue_name=fin:Esimerkkipaikka 25925b9c547cSRui Paulo# Alternative format for language:value strings: 25935b9c547cSRui Paulo# (double quoted string, printf-escaped string) 25945b9c547cSRui Paulo#venue_name=P"eng:Example\nvenue" 2595f05cddf9SRui Paulo 259685732ac8SCy Schubert# Venue URL information 259785732ac8SCy Schubert# This parameter can be used to configure one or more Venue URL Duples to 259885732ac8SCy Schubert# provide additional information corresponding to Venue Name information. 259985732ac8SCy Schubert# Each entry has a Venue Number value separated by colon from the Venue URL 260085732ac8SCy Schubert# string. Venue Number indicates the corresponding venue_name entry (1 = 1st 260185732ac8SCy Schubert# venue_name, 2 = 2nd venue_name, and so on; 0 = no matching venue_name) 260285732ac8SCy Schubert#venue_url=1:http://www.example.com/info-eng 260385732ac8SCy Schubert#venue_url=2:http://www.example.com/info-fin 260485732ac8SCy Schubert 2605f05cddf9SRui Paulo# Network Authentication Type 2606f05cddf9SRui Paulo# This parameter indicates what type of network authentication is used in the 2607f05cddf9SRui Paulo# network. 2608f05cddf9SRui Paulo# format: <network auth type indicator (1-octet hex str)> [redirect URL] 2609f05cddf9SRui Paulo# Network Authentication Type Indicator values: 2610f05cddf9SRui Paulo# 00 = Acceptance of terms and conditions 2611f05cddf9SRui Paulo# 01 = On-line enrollment supported 2612f05cddf9SRui Paulo# 02 = http/https redirection 2613f05cddf9SRui Paulo# 03 = DNS redirection 2614f05cddf9SRui Paulo#network_auth_type=00 2615f05cddf9SRui Paulo#network_auth_type=02http://www.example.com/redirect/me/here/ 2616f05cddf9SRui Paulo 2617f05cddf9SRui Paulo# IP Address Type Availability 2618f05cddf9SRui Paulo# format: <1-octet encoded value as hex str> 2619f05cddf9SRui Paulo# (ipv4_type & 0x3f) << 2 | (ipv6_type & 0x3) 2620f05cddf9SRui Paulo# ipv4_type: 2621f05cddf9SRui Paulo# 0 = Address type not available 2622f05cddf9SRui Paulo# 1 = Public IPv4 address available 2623f05cddf9SRui Paulo# 2 = Port-restricted IPv4 address available 2624f05cddf9SRui Paulo# 3 = Single NATed private IPv4 address available 2625f05cddf9SRui Paulo# 4 = Double NATed private IPv4 address available 2626f05cddf9SRui Paulo# 5 = Port-restricted IPv4 address and single NATed IPv4 address available 2627f05cddf9SRui Paulo# 6 = Port-restricted IPv4 address and double NATed IPv4 address available 2628f05cddf9SRui Paulo# 7 = Availability of the address type is not known 2629f05cddf9SRui Paulo# ipv6_type: 2630f05cddf9SRui Paulo# 0 = Address type not available 2631f05cddf9SRui Paulo# 1 = Address type available 2632f05cddf9SRui Paulo# 2 = Availability of the address type not known 2633f05cddf9SRui Paulo#ipaddr_type_availability=14 2634f05cddf9SRui Paulo 2635f05cddf9SRui Paulo# Domain Name 2636f05cddf9SRui Paulo# format: <variable-octet str>[,<variable-octet str>] 2637f05cddf9SRui Paulo#domain_name=example.com,another.example.com,yet-another.example.com 2638f05cddf9SRui Paulo 2639f05cddf9SRui Paulo# 3GPP Cellular Network information 2640f05cddf9SRui Paulo# format: <MCC1,MNC1>[;<MCC2,MNC2>][;...] 2641f05cddf9SRui Paulo#anqp_3gpp_cell_net=244,91;310,026;234,56 2642f05cddf9SRui Paulo 2643f05cddf9SRui Paulo# NAI Realm information 2644f05cddf9SRui Paulo# One or more realm can be advertised. Each nai_realm line adds a new realm to 2645f05cddf9SRui Paulo# the set. These parameters provide information for stations using Interworking 2646f05cddf9SRui Paulo# network selection to allow automatic connection to a network based on 2647f05cddf9SRui Paulo# credentials. 2648f05cddf9SRui Paulo# format: <encoding>,<NAI Realm(s)>[,<EAP Method 1>][,<EAP Method 2>][,...] 2649f05cddf9SRui Paulo# encoding: 2650f05cddf9SRui Paulo# 0 = Realm formatted in accordance with IETF RFC 4282 2651f05cddf9SRui Paulo# 1 = UTF-8 formatted character string that is not formatted in 2652f05cddf9SRui Paulo# accordance with IETF RFC 4282 2653f05cddf9SRui Paulo# NAI Realm(s): Semi-colon delimited NAI Realm(s) 2654f05cddf9SRui Paulo# EAP Method: <EAP Method>[:<[AuthParam1:Val1]>][<[AuthParam2:Val2]>][...] 26555b9c547cSRui Paulo# EAP Method types, see: 26565b9c547cSRui Paulo# http://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml#eap-numbers-4 2657f05cddf9SRui Paulo# AuthParam (Table 8-188 in IEEE Std 802.11-2012): 2658f05cddf9SRui Paulo# ID 2 = Non-EAP Inner Authentication Type 2659f05cddf9SRui Paulo# 1 = PAP, 2 = CHAP, 3 = MSCHAP, 4 = MSCHAPV2 2660f05cddf9SRui Paulo# ID 3 = Inner authentication EAP Method Type 2661f05cddf9SRui Paulo# ID 5 = Credential Type 2662f05cddf9SRui Paulo# 1 = SIM, 2 = USIM, 3 = NFC Secure Element, 4 = Hardware Token, 2663f05cddf9SRui Paulo# 5 = Softoken, 6 = Certificate, 7 = username/password, 9 = Anonymous, 2664f05cddf9SRui Paulo# 10 = Vendor Specific 2665f05cddf9SRui Paulo#nai_realm=0,example.com;example.net 2666f05cddf9SRui Paulo# EAP methods EAP-TLS with certificate and EAP-TTLS/MSCHAPv2 with 2667f05cddf9SRui Paulo# username/password 2668f05cddf9SRui Paulo#nai_realm=0,example.org,13[5:6],21[2:4][5:7] 2669f05cddf9SRui Paulo 2670780fb4a2SCy Schubert# Arbitrary ANQP-element configuration 2671780fb4a2SCy Schubert# Additional ANQP-elements with arbitrary values can be defined by specifying 2672780fb4a2SCy Schubert# their contents in raw format as a hexdump of the payload. Note that these 2673780fb4a2SCy Schubert# values will override ANQP-element contents that may have been specified in the 2674780fb4a2SCy Schubert# more higher layer configuration parameters listed above. 2675780fb4a2SCy Schubert# format: anqp_elem=<InfoID>:<hexdump of payload> 2676780fb4a2SCy Schubert# For example, AP Geospatial Location ANQP-element with unknown location: 2677780fb4a2SCy Schubert#anqp_elem=265:0000 2678780fb4a2SCy Schubert# For example, AP Civic Location ANQP-element with unknown location: 2679780fb4a2SCy Schubert#anqp_elem=266:000000 2680780fb4a2SCy Schubert 2681780fb4a2SCy Schubert# GAS Address 3 behavior 2682780fb4a2SCy Schubert# 0 = P2P specification (Address3 = AP BSSID) workaround enabled by default 2683780fb4a2SCy Schubert# based on GAS request Address3 2684780fb4a2SCy Schubert# 1 = IEEE 802.11 standard compliant regardless of GAS request Address3 2685780fb4a2SCy Schubert# 2 = Force non-compliant behavior (Address3 = AP BSSID for all cases) 2686780fb4a2SCy Schubert#gas_address3=0 2687780fb4a2SCy Schubert 26885b9c547cSRui Paulo# QoS Map Set configuration 26895b9c547cSRui Paulo# 26905b9c547cSRui Paulo# Comma delimited QoS Map Set in decimal values 26915b9c547cSRui Paulo# (see IEEE Std 802.11-2012, 8.4.2.97) 26925b9c547cSRui Paulo# 26935b9c547cSRui Paulo# format: 26945b9c547cSRui Paulo# [<DSCP Exceptions[DSCP,UP]>,]<UP 0 range[low,high]>,...<UP 7 range[low,high]> 26955b9c547cSRui Paulo# 26965b9c547cSRui Paulo# There can be up to 21 optional DSCP Exceptions which are pairs of DSCP Value 26975b9c547cSRui Paulo# (0..63 or 255) and User Priority (0..7). This is followed by eight DSCP Range 26985b9c547cSRui Paulo# descriptions with DSCP Low Value and DSCP High Value pairs (0..63 or 255) for 26995b9c547cSRui Paulo# each UP starting from 0. If both low and high value are set to 255, the 27005b9c547cSRui Paulo# corresponding UP is not used. 27015b9c547cSRui Paulo# 27025b9c547cSRui Paulo# default: not set 27035b9c547cSRui Paulo#qos_map_set=53,2,22,6,8,15,0,7,255,255,16,31,32,39,255,255,40,47,255,255 27045b9c547cSRui Paulo 2705f05cddf9SRui Paulo##### Hotspot 2.0 ############################################################# 2706f05cddf9SRui Paulo 2707f05cddf9SRui Paulo# Enable Hotspot 2.0 support 2708f05cddf9SRui Paulo#hs20=1 2709f05cddf9SRui Paulo 2710f05cddf9SRui Paulo# Disable Downstream Group-Addressed Forwarding (DGAF) 2711f05cddf9SRui Paulo# This can be used to configure a network where no group-addressed frames are 2712f05cddf9SRui Paulo# allowed. The AP will not forward any group-address frames to the stations and 2713f05cddf9SRui Paulo# random GTKs are issued for each station to prevent associated stations from 2714f05cddf9SRui Paulo# forging such frames to other stations in the BSS. 2715f05cddf9SRui Paulo#disable_dgaf=1 2716f05cddf9SRui Paulo 27175b9c547cSRui Paulo# OSU Server-Only Authenticated L2 Encryption Network 27185b9c547cSRui Paulo#osen=1 27195b9c547cSRui Paulo 27205b9c547cSRui Paulo# ANQP Domain ID (0..65535) 27215b9c547cSRui Paulo# An identifier for a set of APs in an ESS that share the same common ANQP 27225b9c547cSRui Paulo# information. 0 = Some of the ANQP information is unique to this AP (default). 27235b9c547cSRui Paulo#anqp_domain_id=1234 27245b9c547cSRui Paulo 27255b9c547cSRui Paulo# Deauthentication request timeout 27265b9c547cSRui Paulo# If the RADIUS server indicates that the station is not allowed to connect to 27275b9c547cSRui Paulo# the BSS/ESS, the AP can allow the station some time to download a 27285b9c547cSRui Paulo# notification page (URL included in the message). This parameter sets that 27295b9c547cSRui Paulo# timeout in seconds. 27305b9c547cSRui Paulo#hs20_deauth_req_timeout=60 27315b9c547cSRui Paulo 2732f05cddf9SRui Paulo# Operator Friendly Name 2733f05cddf9SRui Paulo# This parameter can be used to configure one or more Operator Friendly Name 2734f05cddf9SRui Paulo# Duples. Each entry has a two or three character language code (ISO-639) 2735f05cddf9SRui Paulo# separated by colon from the operator friendly name string. 2736f05cddf9SRui Paulo#hs20_oper_friendly_name=eng:Example operator 2737f05cddf9SRui Paulo#hs20_oper_friendly_name=fin:Esimerkkioperaattori 2738f05cddf9SRui Paulo 2739f05cddf9SRui Paulo# Connection Capability 2740f05cddf9SRui Paulo# This can be used to advertise what type of IP traffic can be sent through the 2741f05cddf9SRui Paulo# hotspot (e.g., due to firewall allowing/blocking protocols/ports). 2742f05cddf9SRui Paulo# format: <IP Protocol>:<Port Number>:<Status> 2743f05cddf9SRui Paulo# IP Protocol: 1 = ICMP, 6 = TCP, 17 = UDP 2744f05cddf9SRui Paulo# Port Number: 0..65535 2745f05cddf9SRui Paulo# Status: 0 = Closed, 1 = Open, 2 = Unknown 2746f05cddf9SRui Paulo# Each hs20_conn_capab line is added to the list of advertised tuples. 2747f05cddf9SRui Paulo#hs20_conn_capab=1:0:2 2748f05cddf9SRui Paulo#hs20_conn_capab=6:22:1 2749f05cddf9SRui Paulo#hs20_conn_capab=17:5060:0 2750f05cddf9SRui Paulo 2751f05cddf9SRui Paulo# WAN Metrics 2752f05cddf9SRui Paulo# format: <WAN Info>:<DL Speed>:<UL Speed>:<DL Load>:<UL Load>:<LMD> 2753f05cddf9SRui Paulo# WAN Info: B0-B1: Link Status, B2: Symmetric Link, B3: At Capabity 2754f05cddf9SRui Paulo# (encoded as two hex digits) 2755f05cddf9SRui Paulo# Link Status: 1 = Link up, 2 = Link down, 3 = Link in test state 2756f05cddf9SRui Paulo# Downlink Speed: Estimate of WAN backhaul link current downlink speed in kbps; 2757f05cddf9SRui Paulo# 1..4294967295; 0 = unknown 2758f05cddf9SRui Paulo# Uplink Speed: Estimate of WAN backhaul link current uplink speed in kbps 2759f05cddf9SRui Paulo# 1..4294967295; 0 = unknown 2760f05cddf9SRui Paulo# Downlink Load: Current load of downlink WAN connection (scaled to 255 = 100%) 2761f05cddf9SRui Paulo# Uplink Load: Current load of uplink WAN connection (scaled to 255 = 100%) 2762f05cddf9SRui Paulo# Load Measurement Duration: Duration for measuring downlink/uplink load in 2763f05cddf9SRui Paulo# tenths of a second (1..65535); 0 if load cannot be determined 2764f05cddf9SRui Paulo#hs20_wan_metrics=01:8000:1000:80:240:3000 2765f05cddf9SRui Paulo 2766f05cddf9SRui Paulo# Operating Class Indication 2767f05cddf9SRui Paulo# List of operating classes the BSSes in this ESS use. The Global operating 2768f05cddf9SRui Paulo# classes in Table E-4 of IEEE Std 802.11-2012 Annex E define the values that 2769f05cddf9SRui Paulo# can be used in this. 2770f05cddf9SRui Paulo# format: hexdump of operating class octets 2771f05cddf9SRui Paulo# for example, operating classes 81 (2.4 GHz channels 1-13) and 115 (5 GHz 2772f05cddf9SRui Paulo# channels 36-48): 2773f05cddf9SRui Paulo#hs20_operating_class=5173 2774f05cddf9SRui Paulo 277585732ac8SCy Schubert# Terms and Conditions information 277685732ac8SCy Schubert# 277785732ac8SCy Schubert# hs20_t_c_filename contains the Terms and Conditions filename that the AP 277885732ac8SCy Schubert# indicates in RADIUS Access-Request messages. 277985732ac8SCy Schubert#hs20_t_c_filename=terms-and-conditions 278085732ac8SCy Schubert# 278185732ac8SCy Schubert# hs20_t_c_timestamp contains the Terms and Conditions timestamp that the AP 278285732ac8SCy Schubert# indicates in RADIUS Access-Request messages. Usually, this contains the number 278385732ac8SCy Schubert# of seconds since January 1, 1970 00:00 UTC showing the time when the file was 278485732ac8SCy Schubert# last modified. 278585732ac8SCy Schubert#hs20_t_c_timestamp=1234567 278685732ac8SCy Schubert# 278785732ac8SCy Schubert# hs20_t_c_server_url contains a template for the Terms and Conditions server 278885732ac8SCy Schubert# URL. This template is used to generate the URL for a STA that needs to 278985732ac8SCy Schubert# acknowledge Terms and Conditions. Unlike the other hs20_t_c_* parameters, this 279085732ac8SCy Schubert# parameter is used on the authentication server, not the AP. 279185732ac8SCy Schubert# Macros: 279285732ac8SCy Schubert# @1@ = MAC address of the STA (colon separated hex octets) 279385732ac8SCy Schubert#hs20_t_c_server_url=https://example.com/t_and_c?addr=@1@&ap=123 279485732ac8SCy Schubert 279585732ac8SCy Schubert# OSU and Operator icons 27965b9c547cSRui Paulo# <Icon Width>:<Icon Height>:<Language code>:<Icon Type>:<Name>:<file path> 27975b9c547cSRui Paulo#hs20_icon=32:32:eng:image/png:icon32:/tmp/icon32.png 27985b9c547cSRui Paulo#hs20_icon=64:64:eng:image/png:icon64:/tmp/icon64.png 27995b9c547cSRui Paulo 28005b9c547cSRui Paulo# OSU SSID (see ssid2 for format description) 28015b9c547cSRui Paulo# This is the SSID used for all OSU connections to all the listed OSU Providers. 28025b9c547cSRui Paulo#osu_ssid="example" 28035b9c547cSRui Paulo 28045b9c547cSRui Paulo# OSU Providers 28055b9c547cSRui Paulo# One or more sets of following parameter. Each OSU provider is started by the 28065b9c547cSRui Paulo# mandatory osu_server_uri item. The other parameters add information for the 280785732ac8SCy Schubert# last added OSU provider. osu_nai specifies the OSU_NAI value for OSEN 280885732ac8SCy Schubert# authentication when using a standalone OSU BSS. osu_nai2 specifies the OSU_NAI 280985732ac8SCy Schubert# value for OSEN authentication when using a shared BSS (Single SSID) for OSU. 28105b9c547cSRui Paulo# 28115b9c547cSRui Paulo#osu_server_uri=https://example.com/osu/ 28125b9c547cSRui Paulo#osu_friendly_name=eng:Example operator 28135b9c547cSRui Paulo#osu_friendly_name=fin:Esimerkkipalveluntarjoaja 28145b9c547cSRui Paulo#osu_nai=anonymous@example.com 281585732ac8SCy Schubert#osu_nai2=anonymous@example.com 28165b9c547cSRui Paulo#osu_method_list=1 0 28175b9c547cSRui Paulo#osu_icon=icon32 28185b9c547cSRui Paulo#osu_icon=icon64 28195b9c547cSRui Paulo#osu_service_desc=eng:Example services 28205b9c547cSRui Paulo#osu_service_desc=fin:Esimerkkipalveluja 28215b9c547cSRui Paulo# 28225b9c547cSRui Paulo#osu_server_uri=... 28235b9c547cSRui Paulo 282485732ac8SCy Schubert# Operator Icons 282585732ac8SCy Schubert# Operator icons are specified using references to the hs20_icon entries 282685732ac8SCy Schubert# (Name subfield). This information, if present, is advertsised in the 282785732ac8SCy Schubert# Operator Icon Metadata ANQO-element. 282885732ac8SCy Schubert#operator_icon=icon32 282985732ac8SCy Schubert#operator_icon=icon64 283085732ac8SCy Schubert 283185732ac8SCy Schubert##### Multiband Operation (MBO) ############################################### 283285732ac8SCy Schubert# 283385732ac8SCy Schubert# MBO enabled 283485732ac8SCy Schubert# 0 = disabled (default) 283585732ac8SCy Schubert# 1 = enabled 283685732ac8SCy Schubert#mbo=1 283785732ac8SCy Schubert# 283885732ac8SCy Schubert# Cellular data connection preference 283985732ac8SCy Schubert# 0 = Excluded - AP does not want STA to use the cellular data connection 284085732ac8SCy Schubert# 1 = AP prefers the STA not to use cellular data connection 284185732ac8SCy Schubert# 255 = AP prefers the STA to use cellular data connection 284285732ac8SCy Schubert#mbo_cell_data_conn_pref=1 284385732ac8SCy Schubert 284485732ac8SCy Schubert##### Optimized Connectivity Experience (OCE) ################################# 284585732ac8SCy Schubert# 284685732ac8SCy Schubert# Enable OCE specific features (bitmap) 284785732ac8SCy Schubert# BIT(0) - Reserved 284885732ac8SCy Schubert# Set BIT(1) (= 2) to enable OCE in STA-CFON mode 284985732ac8SCy Schubert# Set BIT(2) (= 4) to enable OCE in AP mode 285085732ac8SCy Schubert# Default is 0 = OCE disabled 285185732ac8SCy Schubert#oce=0 285285732ac8SCy Schubert 2853c1d255d3SCy Schubert# RSSI-based association rejection 28544bc52338SCy Schubert# 28554bc52338SCy Schubert# Reject STA association if RSSI is below given threshold (in dBm) 28564bc52338SCy Schubert# Allowed range: -60 to -90 dBm; default = 0 (rejection disabled) 28574bc52338SCy Schubert# Note: This rejection happens based on a signal strength detected while 28584bc52338SCy Schubert# receiving a single frame and as such, there is significant risk of the value 28594bc52338SCy Schubert# not being accurate and this resulting in valid stations being rejected. As 28604bc52338SCy Schubert# such, this functionality is not recommended to be used for purposes other than 28614bc52338SCy Schubert# testing. 28624bc52338SCy Schubert#rssi_reject_assoc_rssi=-75 28634bc52338SCy Schubert# 28644bc52338SCy Schubert# Association retry delay in seconds allowed by the STA if RSSI has not met the 28654bc52338SCy Schubert# threshold (range: 0..255, default=30). 28664bc52338SCy Schubert#rssi_reject_assoc_timeout=30 28674bc52338SCy Schubert 2868c1d255d3SCy Schubert# Ignore Probe Request frames if RSSI is below given threshold (in dBm) 2869c1d255d3SCy Schubert# Allowed range: -60 to -90 dBm; default = 0 (rejection disabled) 2870c1d255d3SCy Schubert#rssi_ignore_probe_request=-75 2871c1d255d3SCy Schubert 2872325151a3SRui Paulo##### Fast Session Transfer (FST) support ##################################### 2873325151a3SRui Paulo# 2874325151a3SRui Paulo# The options in this section are only available when the build configuration 2875325151a3SRui Paulo# option CONFIG_FST is set while compiling hostapd. They allow this interface 2876325151a3SRui Paulo# to be a part of FST setup. 2877325151a3SRui Paulo# 2878325151a3SRui Paulo# FST is the transfer of a session from a channel to another channel, in the 2879325151a3SRui Paulo# same or different frequency bands. 2880325151a3SRui Paulo# 2881325151a3SRui Paulo# For detals, see IEEE Std 802.11ad-2012. 2882325151a3SRui Paulo 2883325151a3SRui Paulo# Identifier of an FST Group the interface belongs to. 2884325151a3SRui Paulo#fst_group_id=bond0 2885325151a3SRui Paulo 2886325151a3SRui Paulo# Interface priority within the FST Group. 2887325151a3SRui Paulo# Announcing a higher priority for an interface means declaring it more 2888325151a3SRui Paulo# preferable for FST switch. 2889325151a3SRui Paulo# fst_priority is in 1..255 range with 1 being the lowest priority. 2890325151a3SRui Paulo#fst_priority=100 2891325151a3SRui Paulo 2892325151a3SRui Paulo# Default LLT value for this interface in milliseconds. The value used in case 2893325151a3SRui Paulo# no value provided during session setup. Default is 50 ms. 2894325151a3SRui Paulo# fst_llt is in 1..4294967 range (due to spec limitation, see 10.32.2.2 2895325151a3SRui Paulo# Transitioning between states). 2896325151a3SRui Paulo#fst_llt=100 2897325151a3SRui Paulo 2898780fb4a2SCy Schubert##### Radio measurements / location ########################################### 2899780fb4a2SCy Schubert 2900780fb4a2SCy Schubert# The content of a LCI measurement subelement 2901780fb4a2SCy Schubert#lci=<Hexdump of binary data of the LCI report> 2902780fb4a2SCy Schubert 2903780fb4a2SCy Schubert# The content of a location civic measurement subelement 2904780fb4a2SCy Schubert#civic=<Hexdump of binary data of the location civic report> 2905780fb4a2SCy Schubert 2906780fb4a2SCy Schubert# Enable neighbor report via radio measurements 2907780fb4a2SCy Schubert#rrm_neighbor_report=1 2908780fb4a2SCy Schubert 290985732ac8SCy Schubert# Enable beacon report via radio measurements 291085732ac8SCy Schubert#rrm_beacon_report=1 291185732ac8SCy Schubert 2912780fb4a2SCy Schubert# Publish fine timing measurement (FTM) responder functionality 2913780fb4a2SCy Schubert# This parameter only controls publishing via Extended Capabilities element. 2914780fb4a2SCy Schubert# Actual functionality is managed outside hostapd. 2915780fb4a2SCy Schubert#ftm_responder=0 2916780fb4a2SCy Schubert 2917780fb4a2SCy Schubert# Publish fine timing measurement (FTM) initiator functionality 2918780fb4a2SCy Schubert# This parameter only controls publishing via Extended Capabilities element. 2919780fb4a2SCy Schubert# Actual functionality is managed outside hostapd. 2920780fb4a2SCy Schubert#ftm_initiator=0 292185732ac8SCy Schubert# 292285732ac8SCy Schubert# Stationary AP config indicates that the AP doesn't move hence location data 292385732ac8SCy Schubert# can be considered as always up to date. If configured, LCI data will be sent 292485732ac8SCy Schubert# as a radio measurement even if the request doesn't contain a max age element 292585732ac8SCy Schubert# that allows sending of such data. Default: 0. 292685732ac8SCy Schubert#stationary_ap=0 2927780fb4a2SCy Schubert 29284b72b91aSCy Schubert# Enable reduced neighbor reporting (RNR) 29294b72b91aSCy Schubert#rnr=0 29304b72b91aSCy Schubert 2931206b73d0SCy Schubert##### Airtime policy configuration ########################################### 2932206b73d0SCy Schubert 2933206b73d0SCy Schubert# Set the airtime policy operating mode: 2934206b73d0SCy Schubert# 0 = disabled (default) 2935206b73d0SCy Schubert# 1 = static config 2936206b73d0SCy Schubert# 2 = per-BSS dynamic config 2937206b73d0SCy Schubert# 3 = per-BSS limit mode 2938206b73d0SCy Schubert#airtime_mode=0 2939206b73d0SCy Schubert 2940206b73d0SCy Schubert# Interval (in milliseconds) to poll the kernel for updated station activity in 2941206b73d0SCy Schubert# dynamic and limit modes 2942206b73d0SCy Schubert#airtime_update_interval=200 2943206b73d0SCy Schubert 2944206b73d0SCy Schubert# Static configuration of station weights (when airtime_mode=1). Kernel default 2945206b73d0SCy Schubert# weight is 256; set higher for larger airtime share, lower for smaller share. 2946206b73d0SCy Schubert# Each entry is a MAC address followed by a weight. 2947206b73d0SCy Schubert#airtime_sta_weight=02:01:02:03:04:05 256 2948206b73d0SCy Schubert#airtime_sta_weight=02:01:02:03:04:06 512 2949206b73d0SCy Schubert 2950206b73d0SCy Schubert# Per-BSS airtime weight. In multi-BSS mode, set for each BSS and hostapd will 2951206b73d0SCy Schubert# configure station weights to enforce the correct ratio between BSS weights 2952206b73d0SCy Schubert# depending on the number of active stations. The *ratios* between different 2953206b73d0SCy Schubert# BSSes is what's important, not the absolute numbers. 2954206b73d0SCy Schubert# Must be set for all BSSes if airtime_mode=2 or 3, has no effect otherwise. 2955206b73d0SCy Schubert#airtime_bss_weight=1 2956206b73d0SCy Schubert 2957206b73d0SCy Schubert# Whether the current BSS should be limited (when airtime_mode=3). 2958206b73d0SCy Schubert# 2959206b73d0SCy Schubert# If set, the BSS weight ratio will be applied in the case where the current BSS 2960206b73d0SCy Schubert# would exceed the share defined by the BSS weight ratio. E.g., if two BSSes are 2961206b73d0SCy Schubert# set to the same weights, and one is set to limited, the limited BSS will get 2962206b73d0SCy Schubert# no more than half the available airtime, but if the non-limited BSS has more 2963206b73d0SCy Schubert# stations active, that *will* be allowed to exceed its half of the available 2964206b73d0SCy Schubert# airtime. 2965206b73d0SCy Schubert#airtime_bss_limit=1 2966206b73d0SCy Schubert 2967c1d255d3SCy Schubert##### EDMG support ############################################################ 2968c1d255d3SCy Schubert# 2969c1d255d3SCy Schubert# Enable EDMG capability for AP mode in the 60 GHz band. Default value is false. 2970c1d255d3SCy Schubert# To configure channel bonding for an EDMG AP use edmg_channel below. 2971c1d255d3SCy Schubert# If enable_edmg is set and edmg_channel is not set, EDMG CB1 will be 2972c1d255d3SCy Schubert# configured. 2973c1d255d3SCy Schubert#enable_edmg=1 2974c1d255d3SCy Schubert# 2975c1d255d3SCy Schubert# Configure channel bonding for AP mode in the 60 GHz band. 2976c1d255d3SCy Schubert# This parameter is relevant only if enable_edmg is set. 2977c1d255d3SCy Schubert# Default value is 0 (no channel bonding). 2978c1d255d3SCy Schubert#edmg_channel=9 2979c1d255d3SCy Schubert 29805b9c547cSRui Paulo##### TESTING OPTIONS ######################################################### 29815b9c547cSRui Paulo# 29825b9c547cSRui Paulo# The options in this section are only available when the build configuration 29835b9c547cSRui Paulo# option CONFIG_TESTING_OPTIONS is set while compiling hostapd. They allow 29845b9c547cSRui Paulo# testing some scenarios that are otherwise difficult to reproduce. 29855b9c547cSRui Paulo# 29865b9c547cSRui Paulo# Ignore probe requests sent to hostapd with the given probability, must be a 29875b9c547cSRui Paulo# floating point number in the range [0, 1). 29885b9c547cSRui Paulo#ignore_probe_probability=0.0 29895b9c547cSRui Paulo# 29905b9c547cSRui Paulo# Ignore authentication frames with the given probability 29915b9c547cSRui Paulo#ignore_auth_probability=0.0 29925b9c547cSRui Paulo# 29935b9c547cSRui Paulo# Ignore association requests with the given probability 29945b9c547cSRui Paulo#ignore_assoc_probability=0.0 29955b9c547cSRui Paulo# 29965b9c547cSRui Paulo# Ignore reassociation requests with the given probability 29975b9c547cSRui Paulo#ignore_reassoc_probability=0.0 29985b9c547cSRui Paulo# 29995b9c547cSRui Paulo# Corrupt Key MIC in GTK rekey EAPOL-Key frames with the given probability 30005b9c547cSRui Paulo#corrupt_gtk_rekey_mic_probability=0.0 3001780fb4a2SCy Schubert# 3002780fb4a2SCy Schubert# Include only ECSA IE without CSA IE where possible 3003780fb4a2SCy Schubert# (channel switch operating class is needed) 3004780fb4a2SCy Schubert#ecsa_ie_only=0 30055b9c547cSRui Paulo 300639beb93cSSam Leffler##### Multiple BSSID support ################################################## 300739beb93cSSam Leffler# 300839beb93cSSam Leffler# Above configuration is using the default interface (wlan#, or multi-SSID VLAN 300939beb93cSSam Leffler# interfaces). Other BSSIDs can be added by using separator 'bss' with 301039beb93cSSam Leffler# default interface name to be allocated for the data packets of the new BSS. 301139beb93cSSam Leffler# 301239beb93cSSam Leffler# hostapd will generate BSSID mask based on the BSSIDs that are 301339beb93cSSam Leffler# configured. hostapd will verify that dev_addr & MASK == dev_addr. If this is 301439beb93cSSam Leffler# not the case, the MAC address of the radio must be changed before starting 3015e28a4053SRui Paulo# hostapd (ifconfig wlan0 hw ether <MAC addr>). If a BSSID is configured for 3016e28a4053SRui Paulo# every secondary BSS, this limitation is not applied at hostapd and other 3017e28a4053SRui Paulo# masks may be used if the driver supports them (e.g., swap the locally 3018e28a4053SRui Paulo# administered bit) 301939beb93cSSam Leffler# 302039beb93cSSam Leffler# BSSIDs are assigned in order to each BSS, unless an explicit BSSID is 302139beb93cSSam Leffler# specified using the 'bssid' parameter. 302239beb93cSSam Leffler# If an explicit BSSID is specified, it must be chosen such that it: 302339beb93cSSam Leffler# - results in a valid MASK that covers it and the dev_addr 302439beb93cSSam Leffler# - is not the same as the MAC address of the radio 302539beb93cSSam Leffler# - is not the same as any other explicitly specified BSSID 302639beb93cSSam Leffler# 3027780fb4a2SCy Schubert# Alternatively, the 'use_driver_iface_addr' parameter can be used to request 3028780fb4a2SCy Schubert# hostapd to use the driver auto-generated interface address (e.g., to use the 3029780fb4a2SCy Schubert# exact MAC addresses allocated to the device). 3030780fb4a2SCy Schubert# 30315b9c547cSRui Paulo# Not all drivers support multiple BSSes. The exact mechanism for determining 30325b9c547cSRui Paulo# the driver capabilities is driver specific. With the current (i.e., a recent 30335b9c547cSRui Paulo# kernel) drivers using nl80211, this information can be checked with "iw list" 30345b9c547cSRui Paulo# (search for "valid interface combinations"). 30355b9c547cSRui Paulo# 303639beb93cSSam Leffler# Please note that hostapd uses some of the values configured for the first BSS 303739beb93cSSam Leffler# as the defaults for the following BSSes. However, it is recommended that all 303839beb93cSSam Leffler# BSSes include explicit configuration of all relevant configuration items. 303939beb93cSSam Leffler# 304039beb93cSSam Leffler#bss=wlan0_0 304139beb93cSSam Leffler#ssid=test2 304239beb93cSSam Leffler# most of the above items can be used here (apart from radio interface specific 304339beb93cSSam Leffler# items, like channel) 304439beb93cSSam Leffler 304539beb93cSSam Leffler#bss=wlan0_1 304639beb93cSSam Leffler#bssid=00:13:10:95:fe:0b 304739beb93cSSam Leffler# ... 3048