1*d870e050SAndroid Build Coastguard Worker# 2*d870e050SAndroid Build Coastguard Worker#* Copyright (C) 2016 The Android Open Source Project 3*d870e050SAndroid Build Coastguard Worker#* 4*d870e050SAndroid Build Coastguard Worker#* Licensed under the Apache License, Version 2.0 (the "License"); 5*d870e050SAndroid Build Coastguard Worker#* you may not use this file except in compliance with the License. 6*d870e050SAndroid Build Coastguard Worker#* You may obtain a copy of the License at 7*d870e050SAndroid Build Coastguard Worker#* 8*d870e050SAndroid Build Coastguard Worker#* http://www.apache.org/licenses/LICENSE-2.0 9*d870e050SAndroid Build Coastguard Worker#* 10*d870e050SAndroid Build Coastguard Worker#* Unless required by applicable law or agreed to in writing, software 11*d870e050SAndroid Build Coastguard Worker#* distributed under the License is distributed on an "AS IS" BASIS, 12*d870e050SAndroid Build Coastguard Worker#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*d870e050SAndroid Build Coastguard Worker#* See the License for the specific language governing permissions and 14*d870e050SAndroid Build Coastguard Worker#* limitations under the License. 15*d870e050SAndroid Build Coastguard Worker# 16*d870e050SAndroid Build Coastguard Worker##### hostapd configuration file ############################################## 17*d870e050SAndroid Build Coastguard Worker# Empty lines and lines starting with # are ignored 18*d870e050SAndroid Build Coastguard Worker 19*d870e050SAndroid Build Coastguard Worker# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for 20*d870e050SAndroid Build Coastguard Worker# management frames); ath0 for madwifi 21*d870e050SAndroid Build Coastguard Workerinterface=wlan1 22*d870e050SAndroid Build Coastguard Worker 23*d870e050SAndroid Build Coastguard Worker# In case of madwifi, atheros, and nl80211 driver interfaces, an additional 24*d870e050SAndroid Build Coastguard Worker# configuration parameter, bridge, may be used to notify hostapd if the 25*d870e050SAndroid Build Coastguard Worker# interface is included in a bridge. This parameter is not used with Host AP 26*d870e050SAndroid Build Coastguard Worker# driver. If the bridge parameter is not set, the drivers will automatically 27*d870e050SAndroid Build Coastguard Worker# figure out the bridge interface (assuming sysfs is enabled and mounted to 28*d870e050SAndroid Build Coastguard Worker# /sys) and this parameter may not be needed. 29*d870e050SAndroid Build Coastguard Worker# 30*d870e050SAndroid Build Coastguard Worker# For nl80211, this parameter can be used to request the AP interface to be 31*d870e050SAndroid Build Coastguard Worker# added to the bridge automatically (brctl may refuse to do this before hostapd 32*d870e050SAndroid Build Coastguard Worker# has been started to change the interface mode). If needed, the bridge 33*d870e050SAndroid Build Coastguard Worker# interface is also created. 34*d870e050SAndroid Build Coastguard Worker#bridge=br0 35*d870e050SAndroid Build Coastguard Worker 36*d870e050SAndroid Build Coastguard Worker# Driver interface type (hostap/wired/madwifi/test/none/nl80211/bsd/); 37*d870e050SAndroid Build Coastguard Worker# default: hostap). nl80211 is used with all Linux mac80211 drivers. 38*d870e050SAndroid Build Coastguard Worker# Use driver=none if building hostapd as a standalone RADIUS server that does 39*d870e050SAndroid Build Coastguard Worker# not control any wireless/wired driver. 40*d870e050SAndroid Build Coastguard Worker# driver=hostap 41*d870e050SAndroid Build Coastguard Workerdriver=virtio_wifi 42*d870e050SAndroid Build Coastguard Worker# hostapd event logger configuration 43*d870e050SAndroid Build Coastguard Worker# 44*d870e050SAndroid Build Coastguard Worker# Two output method: syslog and stdout (only usable if not forking to 45*d870e050SAndroid Build Coastguard Worker# background). 46*d870e050SAndroid Build Coastguard Worker# 47*d870e050SAndroid Build Coastguard Worker# Module bitfield (ORed bitfield of modules that will be logged; -1 = all 48*d870e050SAndroid Build Coastguard Worker# modules): 49*d870e050SAndroid Build Coastguard Worker# bit 0 (1) = IEEE 802.11 50*d870e050SAndroid Build Coastguard Worker# bit 1 (2) = IEEE 802.1X 51*d870e050SAndroid Build Coastguard Worker# bit 2 (4) = RADIUS 52*d870e050SAndroid Build Coastguard Worker# bit 3 (8) = WPA 53*d870e050SAndroid Build Coastguard Worker# bit 4 (16) = driver interface 54*d870e050SAndroid Build Coastguard Worker# bit 5 (32) = IAPP 55*d870e050SAndroid Build Coastguard Worker# bit 6 (64) = MLME 56*d870e050SAndroid Build Coastguard Worker# 57*d870e050SAndroid Build Coastguard Worker# Levels (minimum value for logged events): 58*d870e050SAndroid Build Coastguard Worker# 0 = verbose debugging 59*d870e050SAndroid Build Coastguard Worker# 1 = debugging 60*d870e050SAndroid Build Coastguard Worker# 2 = informational messages 61*d870e050SAndroid Build Coastguard Worker# 3 = notification 62*d870e050SAndroid Build Coastguard Worker# 4 = warning 63*d870e050SAndroid Build Coastguard Worker# 64*d870e050SAndroid Build Coastguard Worker#logger_syslog=-1 65*d870e050SAndroid Build Coastguard Worker#logger_syslog_level=2 66*d870e050SAndroid Build Coastguard Worker#logger_stdout=-1 67*d870e050SAndroid Build Coastguard Worker#logger_stdout_level=2 68*d870e050SAndroid Build Coastguard Worker 69*d870e050SAndroid Build Coastguard Worker# Interface for separate control program. If this is specified, hostapd 70*d870e050SAndroid Build Coastguard Worker# will create this directory and a UNIX domain socket for listening to requests 71*d870e050SAndroid Build Coastguard Worker# from external programs (CLI/GUI, etc.) for status information and 72*d870e050SAndroid Build Coastguard Worker# configuration. The socket file will be named based on the interface name, so 73*d870e050SAndroid Build Coastguard Worker# multiple hostapd processes/interfaces can be run at the same time if more 74*d870e050SAndroid Build Coastguard Worker# than one interface is used. 75*d870e050SAndroid Build Coastguard Worker# /var/run/hostapd is the recommended directory for sockets and by default, 76*d870e050SAndroid Build Coastguard Worker# hostapd_cli will use it when trying to connect with hostapd. 77*d870e050SAndroid Build Coastguard Worker#ctrl_interface=/data/local/wifi/sockets 78*d870e050SAndroid Build Coastguard Worker 79*d870e050SAndroid Build Coastguard Worker# Access control for the control interface can be configured by setting the 80*d870e050SAndroid Build Coastguard Worker# directory to allow only members of a group to use sockets. This way, it is 81*d870e050SAndroid Build Coastguard Worker# possible to run hostapd as root (since it needs to change network 82*d870e050SAndroid Build Coastguard Worker# configuration and open raw sockets) and still allow GUI/CLI components to be 83*d870e050SAndroid Build Coastguard Worker# run as non-root users. However, since the control interface can be used to 84*d870e050SAndroid Build Coastguard Worker# change the network configuration, this access needs to be protected in many 85*d870e050SAndroid Build Coastguard Worker# cases. By default, hostapd is configured to use gid 0 (root). If you 86*d870e050SAndroid Build Coastguard Worker# want to allow non-root users to use the contron interface, add a new group 87*d870e050SAndroid Build Coastguard Worker# and change this value to match with that group. Add users that should have 88*d870e050SAndroid Build Coastguard Worker# control interface access to this group. 89*d870e050SAndroid Build Coastguard Worker# 90*d870e050SAndroid Build Coastguard Worker# This variable can be a group name or gid. 91*d870e050SAndroid Build Coastguard Worker#ctrl_interface_group=wheel 92*d870e050SAndroid Build Coastguard Worker#ctrl_interface_group=0 93*d870e050SAndroid Build Coastguard Worker 94*d870e050SAndroid Build Coastguard Worker 95*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11 related configuration ####################################### 96*d870e050SAndroid Build Coastguard Worker 97*d870e050SAndroid Build Coastguard Worker# SSID to be used in IEEE 802.11 management frames 98*d870e050SAndroid Build Coastguard Workerbssid=00:13:10:95:fe:0b 99*d870e050SAndroid Build Coastguard Workerssid=AndroidWifi 100*d870e050SAndroid Build Coastguard Worker 101*d870e050SAndroid Build Coastguard Worker# Alternative formats for configuring SSID 102*d870e050SAndroid Build Coastguard Worker# (double quoted string, hexdump, printf-escaped string) 103*d870e050SAndroid Build Coastguard Worker#ssid2="test" 104*d870e050SAndroid Build Coastguard Worker#ssid2=74657374 105*d870e050SAndroid Build Coastguard Worker#ssid2=P"hello\nthere" 106*d870e050SAndroid Build Coastguard Worker 107*d870e050SAndroid Build Coastguard Worker# UTF-8 SSID: Whether the SSID is to be interpreted using UTF-8 encoding 108*d870e050SAndroid Build Coastguard Worker#utf8_ssid=1 109*d870e050SAndroid Build Coastguard Worker 110*d870e050SAndroid Build Coastguard Worker# Country code (ISO/IEC 3166-1). Used to set regulatory domain. 111*d870e050SAndroid Build Coastguard Worker# Set as needed to indicate country in which device is operating. 112*d870e050SAndroid Build Coastguard Worker# This can limit available channels and transmit power. 113*d870e050SAndroid Build Coastguard Workercountry_code=US 114*d870e050SAndroid Build Coastguard Worker 115*d870e050SAndroid Build Coastguard Worker# Enable IEEE 802.11d. This advertises the country_code and the set of allowed 116*d870e050SAndroid Build Coastguard Worker# channels and transmit power levels based on the regulatory limits. The 117*d870e050SAndroid Build Coastguard Worker# country_code setting must be configured with the correct country for 118*d870e050SAndroid Build Coastguard Worker# IEEE 802.11d functions. 119*d870e050SAndroid Build Coastguard Worker# (default: 0 = disabled) 120*d870e050SAndroid Build Coastguard Worker#ieee80211d=1 121*d870e050SAndroid Build Coastguard Worker 122*d870e050SAndroid Build Coastguard Worker# Enable IEEE 802.11h. This enables radar detection and DFS support if 123*d870e050SAndroid Build Coastguard Worker# available. DFS support is required on outdoor 5 GHz channels in most countries 124*d870e050SAndroid Build Coastguard Worker# of the world. This can be used only with ieee80211d=1. 125*d870e050SAndroid Build Coastguard Worker# (default: 0 = disabled) 126*d870e050SAndroid Build Coastguard Worker#ieee80211h=1 127*d870e050SAndroid Build Coastguard Worker 128*d870e050SAndroid Build Coastguard Worker# Add Power Constraint element to Beacon and Probe Response frames 129*d870e050SAndroid Build Coastguard Worker# This config option adds Power Constraint element when applicable and Country 130*d870e050SAndroid Build Coastguard Worker# element is added. Power Constraint element is required by Transmit Power 131*d870e050SAndroid Build Coastguard Worker# Control. This can be used only with ieee80211d=1. 132*d870e050SAndroid Build Coastguard Worker# Valid values are 0..255. 133*d870e050SAndroid Build Coastguard Worker#local_pwr_constraint=3 134*d870e050SAndroid Build Coastguard Worker 135*d870e050SAndroid Build Coastguard Worker# Set Spectrum Management subfield in the Capability Information field. 136*d870e050SAndroid Build Coastguard Worker# This config option forces the Spectrum Management bit to be set. When this 137*d870e050SAndroid Build Coastguard Worker# option is not set, the value of the Spectrum Management bit depends on whether 138*d870e050SAndroid Build Coastguard Worker# DFS or TPC is required by regulatory authorities. This can be used only with 139*d870e050SAndroid Build Coastguard Worker# ieee80211d=1 and local_pwr_constraint configured. 140*d870e050SAndroid Build Coastguard Worker#spectrum_mgmt_required=1 141*d870e050SAndroid Build Coastguard Worker 142*d870e050SAndroid Build Coastguard Worker# Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g, 143*d870e050SAndroid Build Coastguard Worker# ad = IEEE 802.11ad (60 GHz); a/g options are used with IEEE 802.11n, too, to 144*d870e050SAndroid Build Coastguard Worker# specify band) 145*d870e050SAndroid Build Coastguard Worker# Default: IEEE 802.11b 146*d870e050SAndroid Build Coastguard Workerhw_mode=g 147*d870e050SAndroid Build Coastguard Worker 148*d870e050SAndroid Build Coastguard Worker# Channel number (IEEE 802.11) 149*d870e050SAndroid Build Coastguard Worker# (default: 0, i.e., not set) 150*d870e050SAndroid Build Coastguard Worker# Please note that some drivers do not use this value from hostapd and the 151*d870e050SAndroid Build Coastguard Worker# channel will need to be configured separately with iwconfig. 152*d870e050SAndroid Build Coastguard Worker# 153*d870e050SAndroid Build Coastguard Worker# If CONFIG_ACS build option is enabled, the channel can be selected 154*d870e050SAndroid Build Coastguard Worker# automatically at run time by setting channel=acs_survey or channel=0, both of 155*d870e050SAndroid Build Coastguard Worker# which will enable the ACS survey based algorithm. 156*d870e050SAndroid Build Coastguard Workerchannel=8 157*d870e050SAndroid Build Coastguard Worker 158*d870e050SAndroid Build Coastguard Worker# ACS tuning - Automatic Channel Selection 159*d870e050SAndroid Build Coastguard Worker# See: http://wireless.kernel.org/en/users/Documentation/acs 160*d870e050SAndroid Build Coastguard Worker# 161*d870e050SAndroid Build Coastguard Worker# You can customize the ACS survey algorithm with following variables: 162*d870e050SAndroid Build Coastguard Worker# 163*d870e050SAndroid Build Coastguard Worker# acs_num_scans requirement is 1..100 - number of scans to be performed that 164*d870e050SAndroid Build Coastguard Worker# are used to trigger survey data gathering of an underlying device driver. 165*d870e050SAndroid Build Coastguard Worker# Scans are passive and typically take a little over 100ms (depending on the 166*d870e050SAndroid Build Coastguard Worker# driver) on each available channel for given hw_mode. Increasing this value 167*d870e050SAndroid Build Coastguard Worker# means sacrificing startup time and gathering more data wrt channel 168*d870e050SAndroid Build Coastguard Worker# interference that may help choosing a better channel. This can also help fine 169*d870e050SAndroid Build Coastguard Worker# tune the ACS scan time in case a driver has different scan dwell times. 170*d870e050SAndroid Build Coastguard Worker# 171*d870e050SAndroid Build Coastguard Worker# Defaults: 172*d870e050SAndroid Build Coastguard Worker#acs_num_scans=5 173*d870e050SAndroid Build Coastguard Worker 174*d870e050SAndroid Build Coastguard Worker# Channel list restriction. This option allows hostapd to select one of the 175*d870e050SAndroid Build Coastguard Worker# provided channels when a channel should be automatically selected. This 176*d870e050SAndroid Build Coastguard Worker# is currently only used for DFS when the current channels becomes unavailable 177*d870e050SAndroid Build Coastguard Worker# due to radar interference, and is currently only useful when ieee80211h=1 is 178*d870e050SAndroid Build Coastguard Worker# set. 179*d870e050SAndroid Build Coastguard Worker# Default: not set (allow any enabled channel to be selected) 180*d870e050SAndroid Build Coastguard Worker#chanlist=100 104 108 112 116 181*d870e050SAndroid Build Coastguard Worker 182*d870e050SAndroid Build Coastguard Worker# Beacon interval in kus (1.024 ms) (default: 100; range 15..65535) 183*d870e050SAndroid Build Coastguard Workerbeacon_int=1000 184*d870e050SAndroid Build Coastguard Worker 185*d870e050SAndroid Build Coastguard Worker# DTIM (delivery traffic information message) period (range 1..255): 186*d870e050SAndroid Build Coastguard Worker# number of beacons between DTIMs (1 = every beacon includes DTIM element) 187*d870e050SAndroid Build Coastguard Worker# (default: 2) 188*d870e050SAndroid Build Coastguard Workerdtim_period=2 189*d870e050SAndroid Build Coastguard Worker 190*d870e050SAndroid Build Coastguard Worker# Maximum number of stations allowed in station table. New stations will be 191*d870e050SAndroid Build Coastguard Worker# rejected after the station table is full. IEEE 802.11 has a limit of 2007 192*d870e050SAndroid Build Coastguard Worker# different association IDs, so this number should not be larger than that. 193*d870e050SAndroid Build Coastguard Worker# (default: 2007) 194*d870e050SAndroid Build Coastguard Workermax_num_sta=255 195*d870e050SAndroid Build Coastguard Worker 196*d870e050SAndroid Build Coastguard Worker# RTS/CTS threshold; 2347 = disabled (default); range 0..2347 197*d870e050SAndroid Build Coastguard Worker# If this field is not included in hostapd.conf, hostapd will not control 198*d870e050SAndroid Build Coastguard Worker# RTS threshold and 'iwconfig wlan# rts <val>' can be used to set it. 199*d870e050SAndroid Build Coastguard Workerrts_threshold=2347 200*d870e050SAndroid Build Coastguard Worker 201*d870e050SAndroid Build Coastguard Worker# Fragmentation threshold; 2346 = disabled (default); range 256..2346 202*d870e050SAndroid Build Coastguard Worker# If this field is not included in hostapd.conf, hostapd will not control 203*d870e050SAndroid Build Coastguard Worker# fragmentation threshold and 'iwconfig wlan# frag <val>' can be used to set 204*d870e050SAndroid Build Coastguard Worker# it. 205*d870e050SAndroid Build Coastguard Workerfragm_threshold=2346 206*d870e050SAndroid Build Coastguard Worker 207*d870e050SAndroid Build Coastguard Worker# Rate configuration 208*d870e050SAndroid Build Coastguard Worker# Default is to enable all rates supported by the hardware. This configuration 209*d870e050SAndroid Build Coastguard Worker# item allows this list be filtered so that only the listed rates will be left 210*d870e050SAndroid Build Coastguard Worker# in the list. If the list is empty, all rates are used. This list can have 211*d870e050SAndroid Build Coastguard Worker# entries that are not in the list of rates the hardware supports (such entries 212*d870e050SAndroid Build Coastguard Worker# are ignored). The entries in this list are in 100 kbps, i.e., 11 Mbps = 110. 213*d870e050SAndroid Build Coastguard Worker# If this item is present, at least one rate have to be matching with the rates 214*d870e050SAndroid Build Coastguard Worker# hardware supports. 215*d870e050SAndroid Build Coastguard Worker# default: use the most common supported rate setting for the selected 216*d870e050SAndroid Build Coastguard Worker# hw_mode (i.e., this line can be removed from configuration file in most 217*d870e050SAndroid Build Coastguard Worker# cases) 218*d870e050SAndroid Build Coastguard Worker#supported_rates=10 20 55 110 60 90 120 180 240 360 480 540 219*d870e050SAndroid Build Coastguard Worker 220*d870e050SAndroid Build Coastguard Worker# Basic rate set configuration 221*d870e050SAndroid Build Coastguard Worker# List of rates (in 100 kbps) that are included in the basic rate set. 222*d870e050SAndroid Build Coastguard Worker# If this item is not included, usually reasonable default set is used. 223*d870e050SAndroid Build Coastguard Worker#basic_rates=10 20 224*d870e050SAndroid Build Coastguard Worker#basic_rates=10 20 55 110 225*d870e050SAndroid Build Coastguard Worker#basic_rates=60 120 240 226*d870e050SAndroid Build Coastguard Worker 227*d870e050SAndroid Build Coastguard Worker# Short Preamble 228*d870e050SAndroid Build Coastguard Worker# This parameter can be used to enable optional use of short preamble for 229*d870e050SAndroid Build Coastguard Worker# frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance. 230*d870e050SAndroid Build Coastguard Worker# This applies only to IEEE 802.11b-compatible networks and this should only be 231*d870e050SAndroid Build Coastguard Worker# enabled if the local hardware supports use of short preamble. If any of the 232*d870e050SAndroid Build Coastguard Worker# associated STAs do not support short preamble, use of short preamble will be 233*d870e050SAndroid Build Coastguard Worker# disabled (and enabled when such STAs disassociate) dynamically. 234*d870e050SAndroid Build Coastguard Worker# 0 = do not allow use of short preamble (default) 235*d870e050SAndroid Build Coastguard Worker# 1 = allow use of short preamble 236*d870e050SAndroid Build Coastguard Worker#preamble=1 237*d870e050SAndroid Build Coastguard Worker 238*d870e050SAndroid Build Coastguard Worker# Station MAC address -based authentication 239*d870e050SAndroid Build Coastguard Worker# Please note that this kind of access control requires a driver that uses 240*d870e050SAndroid Build Coastguard Worker# hostapd to take care of management frame processing and as such, this can be 241*d870e050SAndroid Build Coastguard Worker# used with driver=hostap or driver=nl80211, but not with driver=madwifi. 242*d870e050SAndroid Build Coastguard Worker# 0 = accept unless in deny list 243*d870e050SAndroid Build Coastguard Worker# 1 = deny unless in accept list 244*d870e050SAndroid Build Coastguard Worker# 2 = use external RADIUS server (accept/deny lists are searched first) 245*d870e050SAndroid Build Coastguard Workermacaddr_acl=0 246*d870e050SAndroid Build Coastguard Worker 247*d870e050SAndroid Build Coastguard Worker# Accept/deny lists are read from separate files (containing list of 248*d870e050SAndroid Build Coastguard Worker# MAC addresses, one per line). Use absolute path name to make sure that the 249*d870e050SAndroid Build Coastguard Worker# files can be read on SIGHUP configuration reloads. 250*d870e050SAndroid Build Coastguard Worker#accept_mac_file=/etc/hostapd.accept 251*d870e050SAndroid Build Coastguard Worker#deny_mac_file=/etc/hostapd.deny 252*d870e050SAndroid Build Coastguard Worker 253*d870e050SAndroid Build Coastguard Worker# IEEE 802.11 specifies two authentication algorithms. hostapd can be 254*d870e050SAndroid Build Coastguard Worker# configured to allow both of these or only one. Open system authentication 255*d870e050SAndroid Build Coastguard Worker# should be used with IEEE 802.1X. 256*d870e050SAndroid Build Coastguard Worker# Bit fields of allowed authentication algorithms: 257*d870e050SAndroid Build Coastguard Worker# bit 0 = Open System Authentication 258*d870e050SAndroid Build Coastguard Worker# bit 1 = Shared Key Authentication (requires WEP) 259*d870e050SAndroid Build Coastguard Workerauth_algs=3 260*d870e050SAndroid Build Coastguard Worker 261*d870e050SAndroid Build Coastguard Worker# Send empty SSID in beacons and ignore probe request frames that do not 262*d870e050SAndroid Build Coastguard Worker# specify full SSID, i.e., require stations to know SSID. 263*d870e050SAndroid Build Coastguard Worker# default: disabled (0) 264*d870e050SAndroid Build Coastguard Worker# 1 = send empty (length=0) SSID in beacon and ignore probe request for 265*d870e050SAndroid Build Coastguard Worker# broadcast SSID 266*d870e050SAndroid Build Coastguard Worker# 2 = clear SSID (ASCII 0), but keep the original length (this may be required 267*d870e050SAndroid Build Coastguard Worker# with some clients that do not support empty SSID) and ignore probe 268*d870e050SAndroid Build Coastguard Worker# requests for broadcast SSID 269*d870e050SAndroid Build Coastguard Workerignore_broadcast_ssid=0 270*d870e050SAndroid Build Coastguard Worker 271*d870e050SAndroid Build Coastguard Worker# Additional vendor specific elements for Beacon and Probe Response frames 272*d870e050SAndroid Build Coastguard Worker# This parameter can be used to add additional vendor specific element(s) into 273*d870e050SAndroid Build Coastguard Worker# the end of the Beacon and Probe Response frames. The format for these 274*d870e050SAndroid Build Coastguard Worker# element(s) is a hexdump of the raw information elements (id+len+payload for 275*d870e050SAndroid Build Coastguard Worker# one or more elements) 276*d870e050SAndroid Build Coastguard Worker#vendor_elements=dd0411223301 277*d870e050SAndroid Build Coastguard Worker 278*d870e050SAndroid Build Coastguard Worker# TX queue parameters (EDCF / bursting) 279*d870e050SAndroid Build Coastguard Worker# tx_queue_<queue name>_<param> 280*d870e050SAndroid Build Coastguard Worker# queues: data0, data1, data2, data3, after_beacon, beacon 281*d870e050SAndroid Build Coastguard Worker# (data0 is the highest priority queue) 282*d870e050SAndroid Build Coastguard Worker# parameters: 283*d870e050SAndroid Build Coastguard Worker# aifs: AIFS (default 2) 284*d870e050SAndroid Build Coastguard Worker# cwmin: cwMin (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023) 285*d870e050SAndroid Build Coastguard Worker# cwmax: cwMax (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023); cwMax >= cwMin 286*d870e050SAndroid Build Coastguard Worker# burst: maximum length (in milliseconds with precision of up to 0.1 ms) for 287*d870e050SAndroid Build Coastguard Worker# bursting 288*d870e050SAndroid Build Coastguard Worker# 289*d870e050SAndroid Build Coastguard Worker# Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e): 290*d870e050SAndroid Build Coastguard Worker# These parameters are used by the access point when transmitting frames 291*d870e050SAndroid Build Coastguard Worker# to the clients. 292*d870e050SAndroid Build Coastguard Worker# 293*d870e050SAndroid Build Coastguard Worker# Low priority / AC_BK = background 294*d870e050SAndroid Build Coastguard Worker#tx_queue_data3_aifs=7 295*d870e050SAndroid Build Coastguard Worker#tx_queue_data3_cwmin=15 296*d870e050SAndroid Build Coastguard Worker#tx_queue_data3_cwmax=1023 297*d870e050SAndroid Build Coastguard Worker#tx_queue_data3_burst=0 298*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0 299*d870e050SAndroid Build Coastguard Worker# 300*d870e050SAndroid Build Coastguard Worker# Normal priority / AC_BE = best effort 301*d870e050SAndroid Build Coastguard Worker#tx_queue_data2_aifs=3 302*d870e050SAndroid Build Coastguard Worker#tx_queue_data2_cwmin=15 303*d870e050SAndroid Build Coastguard Worker#tx_queue_data2_cwmax=63 304*d870e050SAndroid Build Coastguard Worker#tx_queue_data2_burst=0 305*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=31 cWmax=127 burst=0 306*d870e050SAndroid Build Coastguard Worker# 307*d870e050SAndroid Build Coastguard Worker# High priority / AC_VI = video 308*d870e050SAndroid Build Coastguard Worker#tx_queue_data1_aifs=1 309*d870e050SAndroid Build Coastguard Worker#tx_queue_data1_cwmin=7 310*d870e050SAndroid Build Coastguard Worker#tx_queue_data1_cwmax=15 311*d870e050SAndroid Build Coastguard Worker#tx_queue_data1_burst=3.0 312*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=15 cWmax=31 burst=6.0 313*d870e050SAndroid Build Coastguard Worker# 314*d870e050SAndroid Build Coastguard Worker# Highest priority / AC_VO = voice 315*d870e050SAndroid Build Coastguard Worker#tx_queue_data0_aifs=1 316*d870e050SAndroid Build Coastguard Worker#tx_queue_data0_cwmin=3 317*d870e050SAndroid Build Coastguard Worker#tx_queue_data0_cwmax=7 318*d870e050SAndroid Build Coastguard Worker#tx_queue_data0_burst=1.5 319*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=7 cWmax=15 burst=3.3 320*d870e050SAndroid Build Coastguard Worker 321*d870e050SAndroid Build Coastguard Worker# 802.1D Tag (= UP) to AC mappings 322*d870e050SAndroid Build Coastguard Worker# WMM specifies following mapping of data frames to different ACs. This mapping 323*d870e050SAndroid Build Coastguard Worker# can be configured using Linux QoS/tc and sch_pktpri.o module. 324*d870e050SAndroid Build Coastguard Worker# 802.1D Tag 802.1D Designation Access Category WMM Designation 325*d870e050SAndroid Build Coastguard Worker# 1 BK AC_BK Background 326*d870e050SAndroid Build Coastguard Worker# 2 - AC_BK Background 327*d870e050SAndroid Build Coastguard Worker# 0 BE AC_BE Best Effort 328*d870e050SAndroid Build Coastguard Worker# 3 EE AC_BE Best Effort 329*d870e050SAndroid Build Coastguard Worker# 4 CL AC_VI Video 330*d870e050SAndroid Build Coastguard Worker# 5 VI AC_VI Video 331*d870e050SAndroid Build Coastguard Worker# 6 VO AC_VO Voice 332*d870e050SAndroid Build Coastguard Worker# 7 NC AC_VO Voice 333*d870e050SAndroid Build Coastguard Worker# Data frames with no priority information: AC_BE 334*d870e050SAndroid Build Coastguard Worker# Management frames: AC_VO 335*d870e050SAndroid Build Coastguard Worker# PS-Poll frames: AC_BE 336*d870e050SAndroid Build Coastguard Worker 337*d870e050SAndroid Build Coastguard Worker# Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e): 338*d870e050SAndroid Build Coastguard Worker# for 802.11a or 802.11g networks 339*d870e050SAndroid Build Coastguard Worker# These parameters are sent to WMM clients when they associate. 340*d870e050SAndroid Build Coastguard Worker# The parameters will be used by WMM clients for frames transmitted to the 341*d870e050SAndroid Build Coastguard Worker# access point. 342*d870e050SAndroid Build Coastguard Worker# 343*d870e050SAndroid Build Coastguard Worker# note - txop_limit is in units of 32microseconds 344*d870e050SAndroid Build Coastguard Worker# note - acm is admission control mandatory flag. 0 = admission control not 345*d870e050SAndroid Build Coastguard Worker# required, 1 = mandatory 346*d870e050SAndroid Build Coastguard Worker# note - here cwMin and cmMax are in exponent form. the actual cw value used 347*d870e050SAndroid Build Coastguard Worker# will be (2^n)-1 where n is the value given here 348*d870e050SAndroid Build Coastguard Worker# 349*d870e050SAndroid Build Coastguard Workerwmm_enabled=0 350*d870e050SAndroid Build Coastguard Worker# 351*d870e050SAndroid Build Coastguard Worker# WMM-PS Unscheduled Automatic Power Save Delivery [U-APSD] 352*d870e050SAndroid Build Coastguard Worker# Enable this flag if U-APSD supported outside hostapd (eg., Firmware/driver) 353*d870e050SAndroid Build Coastguard Worker#uapsd_advertisement_enabled=1 354*d870e050SAndroid Build Coastguard Worker# 355*d870e050SAndroid Build Coastguard Worker# Low priority / AC_BK = background 356*d870e050SAndroid Build Coastguard Workerwmm_ac_bk_cwmin=4 357*d870e050SAndroid Build Coastguard Workerwmm_ac_bk_cwmax=10 358*d870e050SAndroid Build Coastguard Workerwmm_ac_bk_aifs=7 359*d870e050SAndroid Build Coastguard Workerwmm_ac_bk_txop_limit=0 360*d870e050SAndroid Build Coastguard Workerwmm_ac_bk_acm=0 361*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=5 cWmax=10 362*d870e050SAndroid Build Coastguard Worker# 363*d870e050SAndroid Build Coastguard Worker# Normal priority / AC_BE = best effort 364*d870e050SAndroid Build Coastguard Workerwmm_ac_be_aifs=3 365*d870e050SAndroid Build Coastguard Workerwmm_ac_be_cwmin=4 366*d870e050SAndroid Build Coastguard Workerwmm_ac_be_cwmax=10 367*d870e050SAndroid Build Coastguard Workerwmm_ac_be_txop_limit=0 368*d870e050SAndroid Build Coastguard Workerwmm_ac_be_acm=0 369*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=5 cWmax=7 370*d870e050SAndroid Build Coastguard Worker# 371*d870e050SAndroid Build Coastguard Worker# High priority / AC_VI = video 372*d870e050SAndroid Build Coastguard Workerwmm_ac_vi_aifs=2 373*d870e050SAndroid Build Coastguard Workerwmm_ac_vi_cwmin=3 374*d870e050SAndroid Build Coastguard Workerwmm_ac_vi_cwmax=4 375*d870e050SAndroid Build Coastguard Workerwmm_ac_vi_txop_limit=94 376*d870e050SAndroid Build Coastguard Workerwmm_ac_vi_acm=0 377*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188 378*d870e050SAndroid Build Coastguard Worker# 379*d870e050SAndroid Build Coastguard Worker# Highest priority / AC_VO = voice 380*d870e050SAndroid Build Coastguard Workerwmm_ac_vo_aifs=2 381*d870e050SAndroid Build Coastguard Workerwmm_ac_vo_cwmin=2 382*d870e050SAndroid Build Coastguard Workerwmm_ac_vo_cwmax=3 383*d870e050SAndroid Build Coastguard Workerwmm_ac_vo_txop_limit=47 384*d870e050SAndroid Build Coastguard Workerwmm_ac_vo_acm=0 385*d870e050SAndroid Build Coastguard Worker# Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102 386*d870e050SAndroid Build Coastguard Worker 387*d870e050SAndroid Build Coastguard Worker# Static WEP key configuration 388*d870e050SAndroid Build Coastguard Worker# 389*d870e050SAndroid Build Coastguard Worker# The key number to use when transmitting. 390*d870e050SAndroid Build Coastguard Worker# It must be between 0 and 3, and the corresponding key must be set. 391*d870e050SAndroid Build Coastguard Worker# default: not set 392*d870e050SAndroid Build Coastguard Worker#wep_default_key=0 393*d870e050SAndroid Build Coastguard Worker# The WEP keys to use. 394*d870e050SAndroid Build Coastguard Worker# A key may be a quoted string or unquoted hexadecimal digits. 395*d870e050SAndroid Build Coastguard Worker# The key length should be 5, 13, or 16 characters, or 10, 26, or 32 396*d870e050SAndroid Build Coastguard Worker# digits, depending on whether 40-bit (64-bit), 104-bit (128-bit), or 397*d870e050SAndroid Build Coastguard Worker# 128-bit (152-bit) WEP is used. 398*d870e050SAndroid Build Coastguard Worker# Only the default key must be supplied; the others are optional. 399*d870e050SAndroid Build Coastguard Worker# default: not set 400*d870e050SAndroid Build Coastguard Worker#wep_key0=123456789a 401*d870e050SAndroid Build Coastguard Worker#wep_key1="vwxyz" 402*d870e050SAndroid Build Coastguard Worker#wep_key2=0102030405060708090a0b0c0d 403*d870e050SAndroid Build Coastguard Worker#wep_key3=".2.4.6.8.0.23" 404*d870e050SAndroid Build Coastguard Worker 405*d870e050SAndroid Build Coastguard Worker# Station inactivity limit 406*d870e050SAndroid Build Coastguard Worker# 407*d870e050SAndroid Build Coastguard Worker# If a station does not send anything in ap_max_inactivity seconds, an 408*d870e050SAndroid Build Coastguard Worker# empty data frame is sent to it in order to verify whether it is 409*d870e050SAndroid Build Coastguard Worker# still in range. If this frame is not ACKed, the station will be 410*d870e050SAndroid Build Coastguard Worker# disassociated and then deauthenticated. This feature is used to 411*d870e050SAndroid Build Coastguard Worker# clear station table of old entries when the STAs move out of the 412*d870e050SAndroid Build Coastguard Worker# range. 413*d870e050SAndroid Build Coastguard Worker# 414*d870e050SAndroid Build Coastguard Worker# The station can associate again with the AP if it is still in range; 415*d870e050SAndroid Build Coastguard Worker# this inactivity poll is just used as a nicer way of verifying 416*d870e050SAndroid Build Coastguard Worker# inactivity; i.e., client will not report broken connection because 417*d870e050SAndroid Build Coastguard Worker# disassociation frame is not sent immediately without first polling 418*d870e050SAndroid Build Coastguard Worker# the STA with a data frame. 419*d870e050SAndroid Build Coastguard Worker# default: 300 (i.e., 5 minutes) 420*d870e050SAndroid Build Coastguard Worker#ap_max_inactivity=300 421*d870e050SAndroid Build Coastguard Worker# 422*d870e050SAndroid Build Coastguard Worker# The inactivity polling can be disabled to disconnect stations based on 423*d870e050SAndroid Build Coastguard Worker# inactivity timeout so that idle stations are more likely to be disconnected 424*d870e050SAndroid Build Coastguard Worker# even if they are still in range of the AP. This can be done by setting 425*d870e050SAndroid Build Coastguard Worker# skip_inactivity_poll to 1 (default 0). 426*d870e050SAndroid Build Coastguard Worker#skip_inactivity_poll=0 427*d870e050SAndroid Build Coastguard Worker 428*d870e050SAndroid Build Coastguard Worker# Disassociate stations based on excessive transmission failures or other 429*d870e050SAndroid Build Coastguard Worker# indications of connection loss. This depends on the driver capabilities and 430*d870e050SAndroid Build Coastguard Worker# may not be available with all drivers. 431*d870e050SAndroid Build Coastguard Worker#disassoc_low_ack=1 432*d870e050SAndroid Build Coastguard Worker 433*d870e050SAndroid Build Coastguard Worker# Maximum allowed Listen Interval (how many Beacon periods STAs are allowed to 434*d870e050SAndroid Build Coastguard Worker# remain asleep). Default: 65535 (no limit apart from field size) 435*d870e050SAndroid Build Coastguard Worker#max_listen_interval=100 436*d870e050SAndroid Build Coastguard Worker 437*d870e050SAndroid Build Coastguard Worker# WDS (4-address frame) mode with per-station virtual interfaces 438*d870e050SAndroid Build Coastguard Worker# (only supported with driver=nl80211) 439*d870e050SAndroid Build Coastguard Worker# This mode allows associated stations to use 4-address frames to allow layer 2 440*d870e050SAndroid Build Coastguard Worker# bridging to be used. 441*d870e050SAndroid Build Coastguard Worker#wds_sta=1 442*d870e050SAndroid Build Coastguard Worker 443*d870e050SAndroid Build Coastguard Worker# If bridge parameter is set, the WDS STA interface will be added to the same 444*d870e050SAndroid Build Coastguard Worker# bridge by default. This can be overridden with the wds_bridge parameter to 445*d870e050SAndroid Build Coastguard Worker# use a separate bridge. 446*d870e050SAndroid Build Coastguard Worker#wds_bridge=wds-br0 447*d870e050SAndroid Build Coastguard Worker 448*d870e050SAndroid Build Coastguard Worker# Start the AP with beaconing disabled by default. 449*d870e050SAndroid Build Coastguard Worker#start_disabled=0 450*d870e050SAndroid Build Coastguard Worker 451*d870e050SAndroid Build Coastguard Worker# Client isolation can be used to prevent low-level bridging of frames between 452*d870e050SAndroid Build Coastguard Worker# associated stations in the BSS. By default, this bridging is allowed. 453*d870e050SAndroid Build Coastguard Worker#ap_isolate=1 454*d870e050SAndroid Build Coastguard Worker 455*d870e050SAndroid Build Coastguard Worker# Fixed BSS Load value for testing purposes 456*d870e050SAndroid Build Coastguard Worker# This field can be used to configure hostapd to add a fixed BSS Load element 457*d870e050SAndroid Build Coastguard Worker# into Beacon and Probe Response frames for testing purposes. The format is 458*d870e050SAndroid Build Coastguard Worker# <station count>:<channel utilization>:<available admission capacity> 459*d870e050SAndroid Build Coastguard Worker#bss_load_test=12:80:20000 460*d870e050SAndroid Build Coastguard Worker 461*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11n related configuration ###################################### 462*d870e050SAndroid Build Coastguard Worker 463*d870e050SAndroid Build Coastguard Worker# ieee80211n: Whether IEEE 802.11n (HT) is enabled 464*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 465*d870e050SAndroid Build Coastguard Worker# 1 = enabled 466*d870e050SAndroid Build Coastguard Worker# Note: You will also need to enable WMM for full HT functionality. 467*d870e050SAndroid Build Coastguard Workerieee80211n=1 468*d870e050SAndroid Build Coastguard Worker 469*d870e050SAndroid Build Coastguard Worker# ht_capab: HT capabilities (list of flags) 470*d870e050SAndroid Build Coastguard Worker# LDPC coding capability: [LDPC] = supported 471*d870e050SAndroid Build Coastguard Worker# Supported channel width set: [HT40-] = both 20 MHz and 40 MHz with secondary 472*d870e050SAndroid Build Coastguard Worker# channel below the primary channel; [HT40+] = both 20 MHz and 40 MHz 473*d870e050SAndroid Build Coastguard Worker# with secondary channel above the primary channel 474*d870e050SAndroid Build Coastguard Worker# (20 MHz only if neither is set) 475*d870e050SAndroid Build Coastguard Worker# Note: There are limits on which channels can be used with HT40- and 476*d870e050SAndroid Build Coastguard Worker# HT40+. Following table shows the channels that may be available for 477*d870e050SAndroid Build Coastguard Worker# HT40- and HT40+ use per IEEE 802.11n Annex J: 478*d870e050SAndroid Build Coastguard Worker# freq HT40- HT40+ 479*d870e050SAndroid Build Coastguard Worker# 2.4 GHz 5-13 1-7 (1-9 in Europe/Japan) 480*d870e050SAndroid Build Coastguard Worker# 5 GHz 40,48,56,64 36,44,52,60 481*d870e050SAndroid Build Coastguard Worker# (depending on the location, not all of these channels may be available 482*d870e050SAndroid Build Coastguard Worker# for use) 483*d870e050SAndroid Build Coastguard Worker# Please note that 40 MHz channels may switch their primary and secondary 484*d870e050SAndroid Build Coastguard Worker# channels if needed or creation of 40 MHz channel maybe rejected based 485*d870e050SAndroid Build Coastguard Worker# on overlapping BSSes. These changes are done automatically when hostapd 486*d870e050SAndroid Build Coastguard Worker# is setting up the 40 MHz channel. 487*d870e050SAndroid Build Coastguard Worker# Spatial Multiplexing (SM) Power Save: [SMPS-STATIC] or [SMPS-DYNAMIC] 488*d870e050SAndroid Build Coastguard Worker# (SMPS disabled if neither is set) 489*d870e050SAndroid Build Coastguard Worker# HT-greenfield: [GF] (disabled if not set) 490*d870e050SAndroid Build Coastguard Worker# Short GI for 20 MHz: [SHORT-GI-20] (disabled if not set) 491*d870e050SAndroid Build Coastguard Worker# Short GI for 40 MHz: [SHORT-GI-40] (disabled if not set) 492*d870e050SAndroid Build Coastguard Worker# Tx STBC: [TX-STBC] (disabled if not set) 493*d870e050SAndroid Build Coastguard Worker# Rx STBC: [RX-STBC1] (one spatial stream), [RX-STBC12] (one or two spatial 494*d870e050SAndroid Build Coastguard Worker# streams), or [RX-STBC123] (one, two, or three spatial streams); Rx STBC 495*d870e050SAndroid Build Coastguard Worker# disabled if none of these set 496*d870e050SAndroid Build Coastguard Worker# HT-delayed Block Ack: [DELAYED-BA] (disabled if not set) 497*d870e050SAndroid Build Coastguard Worker# Maximum A-MSDU length: [MAX-AMSDU-7935] for 7935 octets (3839 octets if not 498*d870e050SAndroid Build Coastguard Worker# set) 499*d870e050SAndroid Build Coastguard Worker# DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set) 500*d870e050SAndroid Build Coastguard Worker# 40 MHz intolerant [40-INTOLERANT] (not advertised if not set) 501*d870e050SAndroid Build Coastguard Worker# L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set) 502*d870e050SAndroid Build Coastguard Worker#ht_capab=[HT40-][DSSS_CCK-40][SHORT-GI-40] 503*d870e050SAndroid Build Coastguard Worker 504*d870e050SAndroid Build Coastguard Worker# Require stations to support HT PHY (reject association if they do not) 505*d870e050SAndroid Build Coastguard Worker#require_ht=1 506*d870e050SAndroid Build Coastguard Worker 507*d870e050SAndroid Build Coastguard Worker# If set non-zero, require stations to perform scans of overlapping 508*d870e050SAndroid Build Coastguard Worker# channels to test for stations which would be affected by 40 MHz traffic. 509*d870e050SAndroid Build Coastguard Worker# This parameter sets the interval in seconds between these scans. This 510*d870e050SAndroid Build Coastguard Worker# is useful only for testing that stations properly set the OBSS interval, 511*d870e050SAndroid Build Coastguard Worker# since the other parameters in the OBSS scan parameters IE are set to 0. 512*d870e050SAndroid Build Coastguard Worker#obss_interval=0 513*d870e050SAndroid Build Coastguard Worker 514*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11ac related configuration ##################################### 515*d870e050SAndroid Build Coastguard Worker 516*d870e050SAndroid Build Coastguard Worker# ieee80211ac: Whether IEEE 802.11ac (VHT) is enabled 517*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 518*d870e050SAndroid Build Coastguard Worker# 1 = enabled 519*d870e050SAndroid Build Coastguard Worker# Note: You will also need to enable WMM for full VHT functionality. 520*d870e050SAndroid Build Coastguard Worker#ieee80211ac=1 521*d870e050SAndroid Build Coastguard Worker 522*d870e050SAndroid Build Coastguard Worker# vht_capab: VHT capabilities (list of flags) 523*d870e050SAndroid Build Coastguard Worker# 524*d870e050SAndroid Build Coastguard Worker# vht_max_mpdu_len: [MAX-MPDU-7991] [MAX-MPDU-11454] 525*d870e050SAndroid Build Coastguard Worker# Indicates maximum MPDU length 526*d870e050SAndroid Build Coastguard Worker# 0 = 3895 octets (default) 527*d870e050SAndroid Build Coastguard Worker# 1 = 7991 octets 528*d870e050SAndroid Build Coastguard Worker# 2 = 11454 octets 529*d870e050SAndroid Build Coastguard Worker# 3 = reserved 530*d870e050SAndroid Build Coastguard Worker# 531*d870e050SAndroid Build Coastguard Worker# supported_chan_width: [VHT160] [VHT160-80PLUS80] 532*d870e050SAndroid Build Coastguard Worker# Indicates supported Channel widths 533*d870e050SAndroid Build Coastguard Worker# 0 = 160 MHz & 80+80 channel widths are not supported (default) 534*d870e050SAndroid Build Coastguard Worker# 1 = 160 MHz channel width is supported 535*d870e050SAndroid Build Coastguard Worker# 2 = 160 MHz & 80+80 channel widths are supported 536*d870e050SAndroid Build Coastguard Worker# 3 = reserved 537*d870e050SAndroid Build Coastguard Worker# 538*d870e050SAndroid Build Coastguard Worker# Rx LDPC coding capability: [RXLDPC] 539*d870e050SAndroid Build Coastguard Worker# Indicates support for receiving LDPC coded pkts 540*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 541*d870e050SAndroid Build Coastguard Worker# 1 = Supported 542*d870e050SAndroid Build Coastguard Worker# 543*d870e050SAndroid Build Coastguard Worker# Short GI for 80 MHz: [SHORT-GI-80] 544*d870e050SAndroid Build Coastguard Worker# Indicates short GI support for reception of packets transmitted with TXVECTOR 545*d870e050SAndroid Build Coastguard Worker# params format equal to VHT and CBW = 80Mhz 546*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 547*d870e050SAndroid Build Coastguard Worker# 1 = Supported 548*d870e050SAndroid Build Coastguard Worker# 549*d870e050SAndroid Build Coastguard Worker# Short GI for 160 MHz: [SHORT-GI-160] 550*d870e050SAndroid Build Coastguard Worker# Indicates short GI support for reception of packets transmitted with TXVECTOR 551*d870e050SAndroid Build Coastguard Worker# params format equal to VHT and CBW = 160Mhz 552*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 553*d870e050SAndroid Build Coastguard Worker# 1 = Supported 554*d870e050SAndroid Build Coastguard Worker# 555*d870e050SAndroid Build Coastguard Worker# Tx STBC: [TX-STBC-2BY1] 556*d870e050SAndroid Build Coastguard Worker# Indicates support for the transmission of at least 2x1 STBC 557*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 558*d870e050SAndroid Build Coastguard Worker# 1 = Supported 559*d870e050SAndroid Build Coastguard Worker# 560*d870e050SAndroid Build Coastguard Worker# Rx STBC: [RX-STBC-1] [RX-STBC-12] [RX-STBC-123] [RX-STBC-1234] 561*d870e050SAndroid Build Coastguard Worker# Indicates support for the reception of PPDUs using STBC 562*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 563*d870e050SAndroid Build Coastguard Worker# 1 = support of one spatial stream 564*d870e050SAndroid Build Coastguard Worker# 2 = support of one and two spatial streams 565*d870e050SAndroid Build Coastguard Worker# 3 = support of one, two and three spatial streams 566*d870e050SAndroid Build Coastguard Worker# 4 = support of one, two, three and four spatial streams 567*d870e050SAndroid Build Coastguard Worker# 5,6,7 = reserved 568*d870e050SAndroid Build Coastguard Worker# 569*d870e050SAndroid Build Coastguard Worker# SU Beamformer Capable: [SU-BEAMFORMER] 570*d870e050SAndroid Build Coastguard Worker# Indicates support for operation as a single user beamformer 571*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 572*d870e050SAndroid Build Coastguard Worker# 1 = Supported 573*d870e050SAndroid Build Coastguard Worker# 574*d870e050SAndroid Build Coastguard Worker# SU Beamformee Capable: [SU-BEAMFORMEE] 575*d870e050SAndroid Build Coastguard Worker# Indicates support for operation as a single user beamformee 576*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 577*d870e050SAndroid Build Coastguard Worker# 1 = Supported 578*d870e050SAndroid Build Coastguard Worker# 579*d870e050SAndroid Build Coastguard Worker# Compressed Steering Number of Beamformer Antennas Supported: [BF-ANTENNA-2] 580*d870e050SAndroid Build Coastguard Worker# Beamformee's capability indicating the maximum number of beamformer 581*d870e050SAndroid Build Coastguard Worker# antennas the beamformee can support when sending compressed beamforming 582*d870e050SAndroid Build Coastguard Worker# feedback 583*d870e050SAndroid Build Coastguard Worker# If SU beamformer capable, set to maximum value minus 1 584*d870e050SAndroid Build Coastguard Worker# else reserved (default) 585*d870e050SAndroid Build Coastguard Worker# 586*d870e050SAndroid Build Coastguard Worker# Number of Sounding Dimensions: [SOUNDING-DIMENSION-2] 587*d870e050SAndroid Build Coastguard Worker# Beamformer's capability indicating the maximum value of the NUM_STS parameter 588*d870e050SAndroid Build Coastguard Worker# in the TXVECTOR of a VHT NDP 589*d870e050SAndroid Build Coastguard Worker# If SU beamformer capable, set to maximum value minus 1 590*d870e050SAndroid Build Coastguard Worker# else reserved (default) 591*d870e050SAndroid Build Coastguard Worker# 592*d870e050SAndroid Build Coastguard Worker# MU Beamformer Capable: [MU-BEAMFORMER] 593*d870e050SAndroid Build Coastguard Worker# Indicates support for operation as an MU beamformer 594*d870e050SAndroid Build Coastguard Worker# 0 = Not supported or sent by Non-AP STA (default) 595*d870e050SAndroid Build Coastguard Worker# 1 = Supported 596*d870e050SAndroid Build Coastguard Worker# 597*d870e050SAndroid Build Coastguard Worker# MU Beamformee Capable: [MU-BEAMFORMEE] 598*d870e050SAndroid Build Coastguard Worker# Indicates support for operation as an MU beamformee 599*d870e050SAndroid Build Coastguard Worker# 0 = Not supported or sent by AP (default) 600*d870e050SAndroid Build Coastguard Worker# 1 = Supported 601*d870e050SAndroid Build Coastguard Worker# 602*d870e050SAndroid Build Coastguard Worker# VHT TXOP PS: [VHT-TXOP-PS] 603*d870e050SAndroid Build Coastguard Worker# Indicates whether or not the AP supports VHT TXOP Power Save Mode 604*d870e050SAndroid Build Coastguard Worker# or whether or not the STA is in VHT TXOP Power Save mode 605*d870e050SAndroid Build Coastguard Worker# 0 = VHT AP doesnt support VHT TXOP PS mode (OR) VHT Sta not in VHT TXOP PS 606*d870e050SAndroid Build Coastguard Worker# mode 607*d870e050SAndroid Build Coastguard Worker# 1 = VHT AP supports VHT TXOP PS mode (OR) VHT Sta is in VHT TXOP power save 608*d870e050SAndroid Build Coastguard Worker# mode 609*d870e050SAndroid Build Coastguard Worker# 610*d870e050SAndroid Build Coastguard Worker# +HTC-VHT Capable: [HTC-VHT] 611*d870e050SAndroid Build Coastguard Worker# Indicates whether or not the STA supports receiving a VHT variant HT Control 612*d870e050SAndroid Build Coastguard Worker# field. 613*d870e050SAndroid Build Coastguard Worker# 0 = Not supported (default) 614*d870e050SAndroid Build Coastguard Worker# 1 = supported 615*d870e050SAndroid Build Coastguard Worker# 616*d870e050SAndroid Build Coastguard Worker# Maximum A-MPDU Length Exponent: [MAX-A-MPDU-LEN-EXP0]..[MAX-A-MPDU-LEN-EXP7] 617*d870e050SAndroid Build Coastguard Worker# Indicates the maximum length of A-MPDU pre-EOF padding that the STA can recv 618*d870e050SAndroid Build Coastguard Worker# This field is an integer in the range of 0 to 7. 619*d870e050SAndroid Build Coastguard Worker# The length defined by this field is equal to 620*d870e050SAndroid Build Coastguard Worker# 2 pow(13 + Maximum A-MPDU Length Exponent) -1 octets 621*d870e050SAndroid Build Coastguard Worker# 622*d870e050SAndroid Build Coastguard Worker# VHT Link Adaptation Capable: [VHT-LINK-ADAPT2] [VHT-LINK-ADAPT3] 623*d870e050SAndroid Build Coastguard Worker# Indicates whether or not the STA supports link adaptation using VHT variant 624*d870e050SAndroid Build Coastguard Worker# HT Control field 625*d870e050SAndroid Build Coastguard Worker# If +HTC-VHTcapable is 1 626*d870e050SAndroid Build Coastguard Worker# 0 = (no feedback) if the STA does not provide VHT MFB (default) 627*d870e050SAndroid Build Coastguard Worker# 1 = reserved 628*d870e050SAndroid Build Coastguard Worker# 2 = (Unsolicited) if the STA provides only unsolicited VHT MFB 629*d870e050SAndroid Build Coastguard Worker# 3 = (Both) if the STA can provide VHT MFB in response to VHT MRQ and if the 630*d870e050SAndroid Build Coastguard Worker# STA provides unsolicited VHT MFB 631*d870e050SAndroid Build Coastguard Worker# Reserved if +HTC-VHTcapable is 0 632*d870e050SAndroid Build Coastguard Worker# 633*d870e050SAndroid Build Coastguard Worker# Rx Antenna Pattern Consistency: [RX-ANTENNA-PATTERN] 634*d870e050SAndroid Build Coastguard Worker# Indicates the possibility of Rx antenna pattern change 635*d870e050SAndroid Build Coastguard Worker# 0 = Rx antenna pattern might change during the lifetime of an association 636*d870e050SAndroid Build Coastguard Worker# 1 = Rx antenna pattern does not change during the lifetime of an association 637*d870e050SAndroid Build Coastguard Worker# 638*d870e050SAndroid Build Coastguard Worker# Tx Antenna Pattern Consistency: [TX-ANTENNA-PATTERN] 639*d870e050SAndroid Build Coastguard Worker# Indicates the possibility of Tx antenna pattern change 640*d870e050SAndroid Build Coastguard Worker# 0 = Tx antenna pattern might change during the lifetime of an association 641*d870e050SAndroid Build Coastguard Worker# 1 = Tx antenna pattern does not change during the lifetime of an association 642*d870e050SAndroid Build Coastguard Worker#vht_capab=[SHORT-GI-80][HTC-VHT] 643*d870e050SAndroid Build Coastguard Worker# 644*d870e050SAndroid Build Coastguard Worker# Require stations to support VHT PHY (reject association if they do not) 645*d870e050SAndroid Build Coastguard Worker#require_vht=1 646*d870e050SAndroid Build Coastguard Worker 647*d870e050SAndroid Build Coastguard Worker# 0 = 20 or 40 MHz operating Channel width 648*d870e050SAndroid Build Coastguard Worker# 1 = 80 MHz channel width 649*d870e050SAndroid Build Coastguard Worker# 2 = 160 MHz channel width 650*d870e050SAndroid Build Coastguard Worker# 3 = 80+80 MHz channel width 651*d870e050SAndroid Build Coastguard Worker#vht_oper_chwidth=1 652*d870e050SAndroid Build Coastguard Worker# 653*d870e050SAndroid Build Coastguard Worker# center freq = 5 GHz + (5 * index) 654*d870e050SAndroid Build Coastguard Worker# So index 42 gives center freq 5.210 GHz 655*d870e050SAndroid Build Coastguard Worker# which is channel 42 in 5G band 656*d870e050SAndroid Build Coastguard Worker# 657*d870e050SAndroid Build Coastguard Worker#vht_oper_centr_freq_seg0_idx=42 658*d870e050SAndroid Build Coastguard Worker# 659*d870e050SAndroid Build Coastguard Worker# center freq = 5 GHz + (5 * index) 660*d870e050SAndroid Build Coastguard Worker# So index 159 gives center freq 5.795 GHz 661*d870e050SAndroid Build Coastguard Worker# which is channel 159 in 5G band 662*d870e050SAndroid Build Coastguard Worker# 663*d870e050SAndroid Build Coastguard Worker#vht_oper_centr_freq_seg1_idx=159 664*d870e050SAndroid Build Coastguard Worker 665*d870e050SAndroid Build Coastguard Worker##### IEEE 802.1X-2004 related configuration ################################## 666*d870e050SAndroid Build Coastguard Worker 667*d870e050SAndroid Build Coastguard Worker# Require IEEE 802.1X authorization 668*d870e050SAndroid Build Coastguard Worker#ieee8021x=1 669*d870e050SAndroid Build Coastguard Worker 670*d870e050SAndroid Build Coastguard Worker# IEEE 802.1X/EAPOL version 671*d870e050SAndroid Build Coastguard Worker# hostapd is implemented based on IEEE Std 802.1X-2004 which defines EAPOL 672*d870e050SAndroid Build Coastguard Worker# version 2. However, there are many client implementations that do not handle 673*d870e050SAndroid Build Coastguard Worker# the new version number correctly (they seem to drop the frames completely). 674*d870e050SAndroid Build Coastguard Worker# In order to make hostapd interoperate with these clients, the version number 675*d870e050SAndroid Build Coastguard Worker# can be set to the older version (1) with this configuration value. 676*d870e050SAndroid Build Coastguard Worker#eapol_version=2 677*d870e050SAndroid Build Coastguard Worker 678*d870e050SAndroid Build Coastguard Worker# Optional displayable message sent with EAP Request-Identity. The first \0 679*d870e050SAndroid Build Coastguard Worker# in this string will be converted to ASCII-0 (nul). This can be used to 680*d870e050SAndroid Build Coastguard Worker# separate network info (comma separated list of attribute=value pairs); see, 681*d870e050SAndroid Build Coastguard Worker# e.g., RFC 4284. 682*d870e050SAndroid Build Coastguard Worker#eap_message=hello 683*d870e050SAndroid Build Coastguard Worker#eap_message=hello\0networkid=netw,nasid=foo,portid=0,NAIRealms=example.com 684*d870e050SAndroid Build Coastguard Worker 685*d870e050SAndroid Build Coastguard Worker# WEP rekeying (disabled if key lengths are not set or are set to 0) 686*d870e050SAndroid Build Coastguard Worker# Key lengths for default/broadcast and individual/unicast keys: 687*d870e050SAndroid Build Coastguard Worker# 5 = 40-bit WEP (also known as 64-bit WEP with 40 secret bits) 688*d870e050SAndroid Build Coastguard Worker# 13 = 104-bit WEP (also known as 128-bit WEP with 104 secret bits) 689*d870e050SAndroid Build Coastguard Worker#wep_key_len_broadcast=5 690*d870e050SAndroid Build Coastguard Worker#wep_key_len_unicast=5 691*d870e050SAndroid Build Coastguard Worker# Rekeying period in seconds. 0 = do not rekey (i.e., set keys only once) 692*d870e050SAndroid Build Coastguard Worker#wep_rekey_period=300 693*d870e050SAndroid Build Coastguard Worker 694*d870e050SAndroid Build Coastguard Worker# EAPOL-Key index workaround (set bit7) for WinXP Supplicant (needed only if 695*d870e050SAndroid Build Coastguard Worker# only broadcast keys are used) 696*d870e050SAndroid Build Coastguard Workereapol_key_index_workaround=0 697*d870e050SAndroid Build Coastguard Worker 698*d870e050SAndroid Build Coastguard Worker# EAP reauthentication period in seconds (default: 3600 seconds; 0 = disable 699*d870e050SAndroid Build Coastguard Worker# reauthentication). 700*d870e050SAndroid Build Coastguard Worker#eap_reauth_period=3600 701*d870e050SAndroid Build Coastguard Worker 702*d870e050SAndroid Build Coastguard Worker# Use PAE group address (01:80:c2:00:00:03) instead of individual target 703*d870e050SAndroid Build Coastguard Worker# address when sending EAPOL frames with driver=wired. This is the most common 704*d870e050SAndroid Build Coastguard Worker# mechanism used in wired authentication, but it also requires that the port 705*d870e050SAndroid Build Coastguard Worker# is only used by one station. 706*d870e050SAndroid Build Coastguard Worker#use_pae_group_addr=1 707*d870e050SAndroid Build Coastguard Worker 708*d870e050SAndroid Build Coastguard Worker##### Integrated EAP server ################################################### 709*d870e050SAndroid Build Coastguard Worker 710*d870e050SAndroid Build Coastguard Worker# Optionally, hostapd can be configured to use an integrated EAP server 711*d870e050SAndroid Build Coastguard Worker# to process EAP authentication locally without need for an external RADIUS 712*d870e050SAndroid Build Coastguard Worker# server. This functionality can be used both as a local authentication server 713*d870e050SAndroid Build Coastguard Worker# for IEEE 802.1X/EAPOL and as a RADIUS server for other devices. 714*d870e050SAndroid Build Coastguard Worker 715*d870e050SAndroid Build Coastguard Worker# Use integrated EAP server instead of external RADIUS authentication 716*d870e050SAndroid Build Coastguard Worker# server. This is also needed if hostapd is configured to act as a RADIUS 717*d870e050SAndroid Build Coastguard Worker# authentication server. 718*d870e050SAndroid Build Coastguard Worker#eap_server=0 719*d870e050SAndroid Build Coastguard Worker 720*d870e050SAndroid Build Coastguard Worker# Path for EAP server user database 721*d870e050SAndroid Build Coastguard Worker# If SQLite support is included, this can be set to "sqlite:/path/to/sqlite.db" 722*d870e050SAndroid Build Coastguard Worker# to use SQLite database instead of a text file. 723*d870e050SAndroid Build Coastguard Worker#eap_user_file=/etc/hostapd.eap_user 724*d870e050SAndroid Build Coastguard Worker 725*d870e050SAndroid Build Coastguard Worker# CA certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS 726*d870e050SAndroid Build Coastguard Worker#ca_cert=/etc/hostapd.ca.pem 727*d870e050SAndroid Build Coastguard Worker 728*d870e050SAndroid Build Coastguard Worker# Server certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS 729*d870e050SAndroid Build Coastguard Worker#server_cert=/etc/hostapd.server.pem 730*d870e050SAndroid Build Coastguard Worker 731*d870e050SAndroid Build Coastguard Worker# Private key matching with the server certificate for EAP-TLS/PEAP/TTLS 732*d870e050SAndroid Build Coastguard Worker# This may point to the same file as server_cert if both certificate and key 733*d870e050SAndroid Build Coastguard Worker# are included in a single file. PKCS#12 (PFX) file (.p12/.pfx) can also be 734*d870e050SAndroid Build Coastguard Worker# used by commenting out server_cert and specifying the PFX file as the 735*d870e050SAndroid Build Coastguard Worker# private_key. 736*d870e050SAndroid Build Coastguard Worker#private_key=/etc/hostapd.server.prv 737*d870e050SAndroid Build Coastguard Worker 738*d870e050SAndroid Build Coastguard Worker# Passphrase for private key 739*d870e050SAndroid Build Coastguard Worker#private_key_passwd=secret passphrase 740*d870e050SAndroid Build Coastguard Worker 741*d870e050SAndroid Build Coastguard Worker# Server identity 742*d870e050SAndroid Build Coastguard Worker# EAP methods that provide mechanism for authenticated server identity delivery 743*d870e050SAndroid Build Coastguard Worker# use this value. If not set, "hostapd" is used as a default. 744*d870e050SAndroid Build Coastguard Worker#server_id=server.example.com 745*d870e050SAndroid Build Coastguard Worker 746*d870e050SAndroid Build Coastguard Worker# Enable CRL verification. 747*d870e050SAndroid Build Coastguard Worker# Note: hostapd does not yet support CRL downloading based on CDP. Thus, a 748*d870e050SAndroid Build Coastguard Worker# valid CRL signed by the CA is required to be included in the ca_cert file. 749*d870e050SAndroid Build Coastguard Worker# This can be done by using PEM format for CA certificate and CRL and 750*d870e050SAndroid Build Coastguard Worker# concatenating these into one file. Whenever CRL changes, hostapd needs to be 751*d870e050SAndroid Build Coastguard Worker# restarted to take the new CRL into use. 752*d870e050SAndroid Build Coastguard Worker# 0 = do not verify CRLs (default) 753*d870e050SAndroid Build Coastguard Worker# 1 = check the CRL of the user certificate 754*d870e050SAndroid Build Coastguard Worker# 2 = check all CRLs in the certificate path 755*d870e050SAndroid Build Coastguard Worker#check_crl=1 756*d870e050SAndroid Build Coastguard Worker 757*d870e050SAndroid Build Coastguard Worker# Cached OCSP stapling response (DER encoded) 758*d870e050SAndroid Build Coastguard Worker# If set, this file is sent as a certificate status response by the EAP server 759*d870e050SAndroid Build Coastguard Worker# if the EAP peer requests certificate status in the ClientHello message. 760*d870e050SAndroid Build Coastguard Worker# This cache file can be updated, e.g., by running following command 761*d870e050SAndroid Build Coastguard Worker# periodically to get an update from the OCSP responder: 762*d870e050SAndroid Build Coastguard Worker# openssl ocsp \ 763*d870e050SAndroid Build Coastguard Worker# -no_nonce \ 764*d870e050SAndroid Build Coastguard Worker# -CAfile /etc/hostapd.ca.pem \ 765*d870e050SAndroid Build Coastguard Worker# -issuer /etc/hostapd.ca.pem \ 766*d870e050SAndroid Build Coastguard Worker# -cert /etc/hostapd.server.pem \ 767*d870e050SAndroid Build Coastguard Worker# -url http://ocsp.example.com:8888/ \ 768*d870e050SAndroid Build Coastguard Worker# -respout /tmp/ocsp-cache.der 769*d870e050SAndroid Build Coastguard Worker#ocsp_stapling_response=/tmp/ocsp-cache.der 770*d870e050SAndroid Build Coastguard Worker 771*d870e050SAndroid Build Coastguard Worker# dh_file: File path to DH/DSA parameters file (in PEM format) 772*d870e050SAndroid Build Coastguard Worker# This is an optional configuration file for setting parameters for an 773*d870e050SAndroid Build Coastguard Worker# ephemeral DH key exchange. In most cases, the default RSA authentication does 774*d870e050SAndroid Build Coastguard Worker# not use this configuration. However, it is possible setup RSA to use 775*d870e050SAndroid Build Coastguard Worker# ephemeral DH key exchange. In addition, ciphers with DSA keys always use 776*d870e050SAndroid Build Coastguard Worker# ephemeral DH keys. This can be used to achieve forward secrecy. If the file 777*d870e050SAndroid Build Coastguard Worker# is in DSA parameters format, it will be automatically converted into DH 778*d870e050SAndroid Build Coastguard Worker# params. This parameter is required if anonymous EAP-FAST is used. 779*d870e050SAndroid Build Coastguard Worker# You can generate DH parameters file with OpenSSL, e.g., 780*d870e050SAndroid Build Coastguard Worker# "openssl dhparam -out /etc/hostapd.dh.pem 1024" 781*d870e050SAndroid Build Coastguard Worker#dh_file=/etc/hostapd.dh.pem 782*d870e050SAndroid Build Coastguard Worker 783*d870e050SAndroid Build Coastguard Worker# Fragment size for EAP methods 784*d870e050SAndroid Build Coastguard Worker#fragment_size=1400 785*d870e050SAndroid Build Coastguard Worker 786*d870e050SAndroid Build Coastguard Worker# Finite cyclic group for EAP-pwd. Number maps to group of domain parameters 787*d870e050SAndroid Build Coastguard Worker# using the IANA repository for IKE (RFC 2409). 788*d870e050SAndroid Build Coastguard Worker#pwd_group=19 789*d870e050SAndroid Build Coastguard Worker 790*d870e050SAndroid Build Coastguard Worker# Configuration data for EAP-SIM database/authentication gateway interface. 791*d870e050SAndroid Build Coastguard Worker# This is a text string in implementation specific format. The example 792*d870e050SAndroid Build Coastguard Worker# implementation in eap_sim_db.c uses this as the UNIX domain socket name for 793*d870e050SAndroid Build Coastguard Worker# the HLR/AuC gateway (e.g., hlr_auc_gw). In this case, the path uses "unix:" 794*d870e050SAndroid Build Coastguard Worker# prefix. If hostapd is built with SQLite support (CONFIG_SQLITE=y in .config), 795*d870e050SAndroid Build Coastguard Worker# database file can be described with an optional db=<path> parameter. 796*d870e050SAndroid Build Coastguard Worker#eap_sim_db=unix:/tmp/hlr_auc_gw.sock 797*d870e050SAndroid Build Coastguard Worker#eap_sim_db=unix:/tmp/hlr_auc_gw.sock db=/tmp/hostapd.db 798*d870e050SAndroid Build Coastguard Worker 799*d870e050SAndroid Build Coastguard Worker# Encryption key for EAP-FAST PAC-Opaque values. This key must be a secret, 800*d870e050SAndroid Build Coastguard Worker# random value. It is configured as a 16-octet value in hex format. It can be 801*d870e050SAndroid Build Coastguard Worker# generated, e.g., with the following command: 802*d870e050SAndroid Build Coastguard Worker# od -tx1 -v -N16 /dev/random | colrm 1 8 | tr -d ' ' 803*d870e050SAndroid Build Coastguard Worker#pac_opaque_encr_key=000102030405060708090a0b0c0d0e0f 804*d870e050SAndroid Build Coastguard Worker 805*d870e050SAndroid Build Coastguard Worker# EAP-FAST authority identity (A-ID) 806*d870e050SAndroid Build Coastguard Worker# A-ID indicates the identity of the authority that issues PACs. The A-ID 807*d870e050SAndroid Build Coastguard Worker# should be unique across all issuing servers. In theory, this is a variable 808*d870e050SAndroid Build Coastguard Worker# length field, but due to some existing implementations requiring A-ID to be 809*d870e050SAndroid Build Coastguard Worker# 16 octets in length, it is strongly recommended to use that length for the 810*d870e050SAndroid Build Coastguard Worker# field to provid interoperability with deployed peer implementations. This 811*d870e050SAndroid Build Coastguard Worker# field is configured in hex format. 812*d870e050SAndroid Build Coastguard Worker#eap_fast_a_id=101112131415161718191a1b1c1d1e1f 813*d870e050SAndroid Build Coastguard Worker 814*d870e050SAndroid Build Coastguard Worker# EAP-FAST authority identifier information (A-ID-Info) 815*d870e050SAndroid Build Coastguard Worker# This is a user-friendly name for the A-ID. For example, the enterprise name 816*d870e050SAndroid Build Coastguard Worker# and server name in a human-readable format. This field is encoded as UTF-8. 817*d870e050SAndroid Build Coastguard Worker#eap_fast_a_id_info=test server 818*d870e050SAndroid Build Coastguard Worker 819*d870e050SAndroid Build Coastguard Worker# Enable/disable different EAP-FAST provisioning modes: 820*d870e050SAndroid Build Coastguard Worker#0 = provisioning disabled 821*d870e050SAndroid Build Coastguard Worker#1 = only anonymous provisioning allowed 822*d870e050SAndroid Build Coastguard Worker#2 = only authenticated provisioning allowed 823*d870e050SAndroid Build Coastguard Worker#3 = both provisioning modes allowed (default) 824*d870e050SAndroid Build Coastguard Worker#eap_fast_prov=3 825*d870e050SAndroid Build Coastguard Worker 826*d870e050SAndroid Build Coastguard Worker# EAP-FAST PAC-Key lifetime in seconds (hard limit) 827*d870e050SAndroid Build Coastguard Worker#pac_key_lifetime=604800 828*d870e050SAndroid Build Coastguard Worker 829*d870e050SAndroid Build Coastguard Worker# EAP-FAST PAC-Key refresh time in seconds (soft limit on remaining hard 830*d870e050SAndroid Build Coastguard Worker# limit). The server will generate a new PAC-Key when this number of seconds 831*d870e050SAndroid Build Coastguard Worker# (or fewer) of the lifetime remains. 832*d870e050SAndroid Build Coastguard Worker#pac_key_refresh_time=86400 833*d870e050SAndroid Build Coastguard Worker 834*d870e050SAndroid Build Coastguard Worker# EAP-SIM and EAP-AKA protected success/failure indication using AT_RESULT_IND 835*d870e050SAndroid Build Coastguard Worker# (default: 0 = disabled). 836*d870e050SAndroid Build Coastguard Worker#eap_sim_aka_result_ind=1 837*d870e050SAndroid Build Coastguard Worker 838*d870e050SAndroid Build Coastguard Worker# Trusted Network Connect (TNC) 839*d870e050SAndroid Build Coastguard Worker# If enabled, TNC validation will be required before the peer is allowed to 840*d870e050SAndroid Build Coastguard Worker# connect. Note: This is only used with EAP-TTLS and EAP-FAST. If any other 841*d870e050SAndroid Build Coastguard Worker# EAP method is enabled, the peer will be allowed to connect without TNC. 842*d870e050SAndroid Build Coastguard Worker#tnc=1 843*d870e050SAndroid Build Coastguard Worker 844*d870e050SAndroid Build Coastguard Worker 845*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11f - Inter-Access Point Protocol (IAPP) ####################### 846*d870e050SAndroid Build Coastguard Worker 847*d870e050SAndroid Build Coastguard Worker# Interface to be used for IAPP broadcast packets 848*d870e050SAndroid Build Coastguard Worker#iapp_interface=eth0 849*d870e050SAndroid Build Coastguard Worker 850*d870e050SAndroid Build Coastguard Worker 851*d870e050SAndroid Build Coastguard Worker##### RADIUS client configuration ############################################# 852*d870e050SAndroid Build Coastguard Worker# for IEEE 802.1X with external Authentication Server, IEEE 802.11 853*d870e050SAndroid Build Coastguard Worker# authentication with external ACL for MAC addresses, and accounting 854*d870e050SAndroid Build Coastguard Worker 855*d870e050SAndroid Build Coastguard Worker# The own IP address of the access point (used as NAS-IP-Address) 856*d870e050SAndroid Build Coastguard Worker#own_ip_addr=192.168.100.1 857*d870e050SAndroid Build Coastguard Worker 858*d870e050SAndroid Build Coastguard Worker# Optional NAS-Identifier string for RADIUS messages. When used, this should be 859*d870e050SAndroid Build Coastguard Worker# a unique to the NAS within the scope of the RADIUS server. For example, a 860*d870e050SAndroid Build Coastguard Worker# fully qualified domain name can be used here. 861*d870e050SAndroid Build Coastguard Worker# When using IEEE 802.11r, nas_identifier must be set and must be between 1 and 862*d870e050SAndroid Build Coastguard Worker# 48 octets long. 863*d870e050SAndroid Build Coastguard Worker#nas_identifier=ap.example.com 864*d870e050SAndroid Build Coastguard Worker 865*d870e050SAndroid Build Coastguard Worker# RADIUS authentication server 866*d870e050SAndroid Build Coastguard Worker#auth_server_addr=127.0.0.1 867*d870e050SAndroid Build Coastguard Worker#auth_server_port=1812 868*d870e050SAndroid Build Coastguard Worker#auth_server_shared_secret=secret 869*d870e050SAndroid Build Coastguard Worker 870*d870e050SAndroid Build Coastguard Worker# RADIUS accounting server 871*d870e050SAndroid Build Coastguard Worker#acct_server_addr=127.0.0.1 872*d870e050SAndroid Build Coastguard Worker#acct_server_port=1813 873*d870e050SAndroid Build Coastguard Worker#acct_server_shared_secret=secret 874*d870e050SAndroid Build Coastguard Worker 875*d870e050SAndroid Build Coastguard Worker# Secondary RADIUS servers; to be used if primary one does not reply to 876*d870e050SAndroid Build Coastguard Worker# RADIUS packets. These are optional and there can be more than one secondary 877*d870e050SAndroid Build Coastguard Worker# server listed. 878*d870e050SAndroid Build Coastguard Worker#auth_server_addr=127.0.0.2 879*d870e050SAndroid Build Coastguard Worker#auth_server_port=1812 880*d870e050SAndroid Build Coastguard Worker#auth_server_shared_secret=secret2 881*d870e050SAndroid Build Coastguard Worker# 882*d870e050SAndroid Build Coastguard Worker#acct_server_addr=127.0.0.2 883*d870e050SAndroid Build Coastguard Worker#acct_server_port=1813 884*d870e050SAndroid Build Coastguard Worker#acct_server_shared_secret=secret2 885*d870e050SAndroid Build Coastguard Worker 886*d870e050SAndroid Build Coastguard Worker# Retry interval for trying to return to the primary RADIUS server (in 887*d870e050SAndroid Build Coastguard Worker# seconds). RADIUS client code will automatically try to use the next server 888*d870e050SAndroid Build Coastguard Worker# when the current server is not replying to requests. If this interval is set, 889*d870e050SAndroid Build Coastguard Worker# primary server will be retried after configured amount of time even if the 890*d870e050SAndroid Build Coastguard Worker# currently used secondary server is still working. 891*d870e050SAndroid Build Coastguard Worker#radius_retry_primary_interval=600 892*d870e050SAndroid Build Coastguard Worker 893*d870e050SAndroid Build Coastguard Worker 894*d870e050SAndroid Build Coastguard Worker# Interim accounting update interval 895*d870e050SAndroid Build Coastguard Worker# If this is set (larger than 0) and acct_server is configured, hostapd will 896*d870e050SAndroid Build Coastguard Worker# send interim accounting updates every N seconds. Note: if set, this overrides 897*d870e050SAndroid Build Coastguard Worker# possible Acct-Interim-Interval attribute in Access-Accept message. Thus, this 898*d870e050SAndroid Build Coastguard Worker# value should not be configured in hostapd.conf, if RADIUS server is used to 899*d870e050SAndroid Build Coastguard Worker# control the interim interval. 900*d870e050SAndroid Build Coastguard Worker# This value should not be less 600 (10 minutes) and must not be less than 901*d870e050SAndroid Build Coastguard Worker# 60 (1 minute). 902*d870e050SAndroid Build Coastguard Worker#radius_acct_interim_interval=600 903*d870e050SAndroid Build Coastguard Worker 904*d870e050SAndroid Build Coastguard Worker# Request Chargeable-User-Identity (RFC 4372) 905*d870e050SAndroid Build Coastguard Worker# This parameter can be used to configure hostapd to request CUI from the 906*d870e050SAndroid Build Coastguard Worker# RADIUS server by including Chargeable-User-Identity attribute into 907*d870e050SAndroid Build Coastguard Worker# Access-Request packets. 908*d870e050SAndroid Build Coastguard Worker#radius_request_cui=1 909*d870e050SAndroid Build Coastguard Worker 910*d870e050SAndroid Build Coastguard Worker# Dynamic VLAN mode; allow RADIUS authentication server to decide which VLAN 911*d870e050SAndroid Build Coastguard Worker# is used for the stations. This information is parsed from following RADIUS 912*d870e050SAndroid Build Coastguard Worker# attributes based on RFC 3580 and RFC 2868: Tunnel-Type (value 13 = VLAN), 913*d870e050SAndroid Build Coastguard Worker# Tunnel-Medium-Type (value 6 = IEEE 802), Tunnel-Private-Group-ID (value 914*d870e050SAndroid Build Coastguard Worker# VLANID as a string). Optionally, the local MAC ACL list (accept_mac_file) can 915*d870e050SAndroid Build Coastguard Worker# be used to set static client MAC address to VLAN ID mapping. 916*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 917*d870e050SAndroid Build Coastguard Worker# 1 = option; use default interface if RADIUS server does not include VLAN ID 918*d870e050SAndroid Build Coastguard Worker# 2 = required; reject authentication if RADIUS server does not include VLAN ID 919*d870e050SAndroid Build Coastguard Worker#dynamic_vlan=0 920*d870e050SAndroid Build Coastguard Worker 921*d870e050SAndroid Build Coastguard Worker# VLAN interface list for dynamic VLAN mode is read from a separate text file. 922*d870e050SAndroid Build Coastguard Worker# This list is used to map VLAN ID from the RADIUS server to a network 923*d870e050SAndroid Build Coastguard Worker# interface. Each station is bound to one interface in the same way as with 924*d870e050SAndroid Build Coastguard Worker# multiple BSSIDs or SSIDs. Each line in this text file is defining a new 925*d870e050SAndroid Build Coastguard Worker# interface and the line must include VLAN ID and interface name separated by 926*d870e050SAndroid Build Coastguard Worker# white space (space or tab). 927*d870e050SAndroid Build Coastguard Worker# If no entries are provided by this file, the station is statically mapped 928*d870e050SAndroid Build Coastguard Worker# to <bss-iface>.<vlan-id> interfaces. 929*d870e050SAndroid Build Coastguard Worker#vlan_file=/etc/hostapd.vlan 930*d870e050SAndroid Build Coastguard Worker 931*d870e050SAndroid Build Coastguard Worker# Interface where 802.1q tagged packets should appear when a RADIUS server is 932*d870e050SAndroid Build Coastguard Worker# used to determine which VLAN a station is on. hostapd creates a bridge for 933*d870e050SAndroid Build Coastguard Worker# each VLAN. Then hostapd adds a VLAN interface (associated with the interface 934*d870e050SAndroid Build Coastguard Worker# indicated by 'vlan_tagged_interface') and the appropriate wireless interface 935*d870e050SAndroid Build Coastguard Worker# to the bridge. 936*d870e050SAndroid Build Coastguard Worker#vlan_tagged_interface=eth0 937*d870e050SAndroid Build Coastguard Worker 938*d870e050SAndroid Build Coastguard Worker# Bridge (prefix) to add the wifi and the tagged interface to. This gets the 939*d870e050SAndroid Build Coastguard Worker# VLAN ID appended. It defaults to brvlan%d if no tagged interface is given 940*d870e050SAndroid Build Coastguard Worker# and br%s.%d if a tagged interface is given, provided %s = tagged interface 941*d870e050SAndroid Build Coastguard Worker# and %d = VLAN ID. 942*d870e050SAndroid Build Coastguard Worker#vlan_bridge=brvlan 943*d870e050SAndroid Build Coastguard Worker 944*d870e050SAndroid Build Coastguard Worker# When hostapd creates a VLAN interface on vlan_tagged_interfaces, it needs 945*d870e050SAndroid Build Coastguard Worker# to know how to name it. 946*d870e050SAndroid Build Coastguard Worker# 0 = vlan<XXX>, e.g., vlan1 947*d870e050SAndroid Build Coastguard Worker# 1 = <vlan_tagged_interface>.<XXX>, e.g. eth0.1 948*d870e050SAndroid Build Coastguard Worker#vlan_naming=0 949*d870e050SAndroid Build Coastguard Worker 950*d870e050SAndroid Build Coastguard Worker# Arbitrary RADIUS attributes can be added into Access-Request and 951*d870e050SAndroid Build Coastguard Worker# Accounting-Request packets by specifying the contents of the attributes with 952*d870e050SAndroid Build Coastguard Worker# the following configuration parameters. There can be multiple of these to 953*d870e050SAndroid Build Coastguard Worker# add multiple attributes. These parameters can also be used to override some 954*d870e050SAndroid Build Coastguard Worker# of the attributes added automatically by hostapd. 955*d870e050SAndroid Build Coastguard Worker# Format: <attr_id>[:<syntax:value>] 956*d870e050SAndroid Build Coastguard Worker# attr_id: RADIUS attribute type (e.g., 26 = Vendor-Specific) 957*d870e050SAndroid Build Coastguard Worker# syntax: s = string (UTF-8), d = integer, x = octet string 958*d870e050SAndroid Build Coastguard Worker# value: attribute value in format indicated by the syntax 959*d870e050SAndroid Build Coastguard Worker# If syntax and value parts are omitted, a null value (single 0x00 octet) is 960*d870e050SAndroid Build Coastguard Worker# used. 961*d870e050SAndroid Build Coastguard Worker# 962*d870e050SAndroid Build Coastguard Worker# Additional Access-Request attributes 963*d870e050SAndroid Build Coastguard Worker# radius_auth_req_attr=<attr_id>[:<syntax:value>] 964*d870e050SAndroid Build Coastguard Worker# Examples: 965*d870e050SAndroid Build Coastguard Worker# Operator-Name = "Operator" 966*d870e050SAndroid Build Coastguard Worker#radius_auth_req_attr=126:s:Operator 967*d870e050SAndroid Build Coastguard Worker# Service-Type = Framed (2) 968*d870e050SAndroid Build Coastguard Worker#radius_auth_req_attr=6:d:2 969*d870e050SAndroid Build Coastguard Worker# Connect-Info = "testing" (this overrides the automatically generated value) 970*d870e050SAndroid Build Coastguard Worker#radius_auth_req_attr=77:s:testing 971*d870e050SAndroid Build Coastguard Worker# Same Connect-Info value set as a hexdump 972*d870e050SAndroid Build Coastguard Worker#radius_auth_req_attr=77:x:74657374696e67 973*d870e050SAndroid Build Coastguard Worker 974*d870e050SAndroid Build Coastguard Worker# 975*d870e050SAndroid Build Coastguard Worker# Additional Accounting-Request attributes 976*d870e050SAndroid Build Coastguard Worker# radius_acct_req_attr=<attr_id>[:<syntax:value>] 977*d870e050SAndroid Build Coastguard Worker# Examples: 978*d870e050SAndroid Build Coastguard Worker# Operator-Name = "Operator" 979*d870e050SAndroid Build Coastguard Worker#radius_acct_req_attr=126:s:Operator 980*d870e050SAndroid Build Coastguard Worker 981*d870e050SAndroid Build Coastguard Worker# Dynamic Authorization Extensions (RFC 5176) 982*d870e050SAndroid Build Coastguard Worker# This mechanism can be used to allow dynamic changes to user session based on 983*d870e050SAndroid Build Coastguard Worker# commands from a RADIUS server (or some other disconnect client that has the 984*d870e050SAndroid Build Coastguard Worker# needed session information). For example, Disconnect message can be used to 985*d870e050SAndroid Build Coastguard Worker# request an associated station to be disconnected. 986*d870e050SAndroid Build Coastguard Worker# 987*d870e050SAndroid Build Coastguard Worker# This is disabled by default. Set radius_das_port to non-zero UDP port 988*d870e050SAndroid Build Coastguard Worker# number to enable. 989*d870e050SAndroid Build Coastguard Worker#radius_das_port=3799 990*d870e050SAndroid Build Coastguard Worker# 991*d870e050SAndroid Build Coastguard Worker# DAS client (the host that can send Disconnect/CoA requests) and shared secret 992*d870e050SAndroid Build Coastguard Worker#radius_das_client=192.168.1.123 shared secret here 993*d870e050SAndroid Build Coastguard Worker# 994*d870e050SAndroid Build Coastguard Worker# DAS Event-Timestamp time window in seconds 995*d870e050SAndroid Build Coastguard Worker#radius_das_time_window=300 996*d870e050SAndroid Build Coastguard Worker# 997*d870e050SAndroid Build Coastguard Worker# DAS require Event-Timestamp 998*d870e050SAndroid Build Coastguard Worker#radius_das_require_event_timestamp=1 999*d870e050SAndroid Build Coastguard Worker 1000*d870e050SAndroid Build Coastguard Worker##### RADIUS authentication server configuration ############################## 1001*d870e050SAndroid Build Coastguard Worker 1002*d870e050SAndroid Build Coastguard Worker# hostapd can be used as a RADIUS authentication server for other hosts. This 1003*d870e050SAndroid Build Coastguard Worker# requires that the integrated EAP server is also enabled and both 1004*d870e050SAndroid Build Coastguard Worker# authentication services are sharing the same configuration. 1005*d870e050SAndroid Build Coastguard Worker 1006*d870e050SAndroid Build Coastguard Worker# File name of the RADIUS clients configuration for the RADIUS server. If this 1007*d870e050SAndroid Build Coastguard Worker# commented out, RADIUS server is disabled. 1008*d870e050SAndroid Build Coastguard Worker#radius_server_clients=/etc/hostapd.radius_clients 1009*d870e050SAndroid Build Coastguard Worker 1010*d870e050SAndroid Build Coastguard Worker# The UDP port number for the RADIUS authentication server 1011*d870e050SAndroid Build Coastguard Worker#radius_server_auth_port=1812 1012*d870e050SAndroid Build Coastguard Worker 1013*d870e050SAndroid Build Coastguard Worker# The UDP port number for the RADIUS accounting server 1014*d870e050SAndroid Build Coastguard Worker# Commenting this out or setting this to 0 can be used to disable RADIUS 1015*d870e050SAndroid Build Coastguard Worker# accounting while still enabling RADIUS authentication. 1016*d870e050SAndroid Build Coastguard Worker#radius_server_acct_port=1813 1017*d870e050SAndroid Build Coastguard Worker 1018*d870e050SAndroid Build Coastguard Worker# Use IPv6 with RADIUS server (IPv4 will also be supported using IPv6 API) 1019*d870e050SAndroid Build Coastguard Worker#radius_server_ipv6=1 1020*d870e050SAndroid Build Coastguard Worker 1021*d870e050SAndroid Build Coastguard Worker 1022*d870e050SAndroid Build Coastguard Worker##### WPA/IEEE 802.11i configuration ########################################## 1023*d870e050SAndroid Build Coastguard Worker 1024*d870e050SAndroid Build Coastguard Worker# Enable WPA. Setting this variable configures the AP to require WPA (either 1025*d870e050SAndroid Build Coastguard Worker# WPA-PSK or WPA-RADIUS/EAP based on other configuration). For WPA-PSK, either 1026*d870e050SAndroid Build Coastguard Worker# wpa_psk or wpa_passphrase must be set and wpa_key_mgmt must include WPA-PSK. 1027*d870e050SAndroid Build Coastguard Worker# Instead of wpa_psk / wpa_passphrase, wpa_psk_radius might suffice. 1028*d870e050SAndroid Build Coastguard Worker# For WPA-RADIUS/EAP, ieee8021x must be set (but without dynamic WEP keys), 1029*d870e050SAndroid Build Coastguard Worker# RADIUS authentication server must be configured, and WPA-EAP must be included 1030*d870e050SAndroid Build Coastguard Worker# in wpa_key_mgmt. 1031*d870e050SAndroid Build Coastguard Worker# This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0) 1032*d870e050SAndroid Build Coastguard Worker# and/or WPA2 (full IEEE 802.11i/RSN): 1033*d870e050SAndroid Build Coastguard Worker# bit0 = WPA 1034*d870e050SAndroid Build Coastguard Worker# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled) 1035*d870e050SAndroid Build Coastguard Worker#wpa=1 1036*d870e050SAndroid Build Coastguard Worker 1037*d870e050SAndroid Build Coastguard Worker# WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit 1038*d870e050SAndroid Build Coastguard Worker# secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase 1039*d870e050SAndroid Build Coastguard Worker# (8..63 characters) that will be converted to PSK. This conversion uses SSID 1040*d870e050SAndroid Build Coastguard Worker# so the PSK changes when ASCII passphrase is used and the SSID is changed. 1041*d870e050SAndroid Build Coastguard Worker# wpa_psk (dot11RSNAConfigPSKValue) 1042*d870e050SAndroid Build Coastguard Worker# wpa_passphrase (dot11RSNAConfigPSKPassPhrase) 1043*d870e050SAndroid Build Coastguard Worker#wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef 1044*d870e050SAndroid Build Coastguard Worker#wpa_passphrase=secret passphrase 1045*d870e050SAndroid Build Coastguard Worker 1046*d870e050SAndroid Build Coastguard Worker# Optionally, WPA PSKs can be read from a separate text file (containing list 1047*d870e050SAndroid Build Coastguard Worker# of (PSK,MAC address) pairs. This allows more than one PSK to be configured. 1048*d870e050SAndroid Build Coastguard Worker# Use absolute path name to make sure that the files can be read on SIGHUP 1049*d870e050SAndroid Build Coastguard Worker# configuration reloads. 1050*d870e050SAndroid Build Coastguard Worker#wpa_psk_file=/etc/hostapd.wpa_psk 1051*d870e050SAndroid Build Coastguard Worker 1052*d870e050SAndroid Build Coastguard Worker# Optionally, WPA passphrase can be received from RADIUS authentication server 1053*d870e050SAndroid Build Coastguard Worker# This requires macaddr_acl to be set to 2 (RADIUS) 1054*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1055*d870e050SAndroid Build Coastguard Worker# 1 = optional; use default passphrase/psk if RADIUS server does not include 1056*d870e050SAndroid Build Coastguard Worker# Tunnel-Password 1057*d870e050SAndroid Build Coastguard Worker# 2 = required; reject authentication if RADIUS server does not include 1058*d870e050SAndroid Build Coastguard Worker# Tunnel-Password 1059*d870e050SAndroid Build Coastguard Worker#wpa_psk_radius=0 1060*d870e050SAndroid Build Coastguard Worker 1061*d870e050SAndroid Build Coastguard Worker# Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both). The 1062*d870e050SAndroid Build Coastguard Worker# entries are separated with a space. WPA-PSK-SHA256 and WPA-EAP-SHA256 can be 1063*d870e050SAndroid Build Coastguard Worker# added to enable SHA256-based stronger algorithms. 1064*d870e050SAndroid Build Coastguard Worker# (dot11RSNAConfigAuthenticationSuitesTable) 1065*d870e050SAndroid Build Coastguard Worker#wpa_key_mgmt=WPA-PSK WPA-EAP 1066*d870e050SAndroid Build Coastguard Worker 1067*d870e050SAndroid Build Coastguard Worker# Set of accepted cipher suites (encryption algorithms) for pairwise keys 1068*d870e050SAndroid Build Coastguard Worker# (unicast packets). This is a space separated list of algorithms: 1069*d870e050SAndroid Build Coastguard Worker# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0] 1070*d870e050SAndroid Build Coastguard Worker# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0] 1071*d870e050SAndroid Build Coastguard Worker# Group cipher suite (encryption algorithm for broadcast and multicast frames) 1072*d870e050SAndroid Build Coastguard Worker# is automatically selected based on this configuration. If only CCMP is 1073*d870e050SAndroid Build Coastguard Worker# allowed as the pairwise cipher, group cipher will also be CCMP. Otherwise, 1074*d870e050SAndroid Build Coastguard Worker# TKIP will be used as the group cipher. 1075*d870e050SAndroid Build Coastguard Worker# (dot11RSNAConfigPairwiseCiphersTable) 1076*d870e050SAndroid Build Coastguard Worker# Pairwise cipher for WPA (v1) (default: TKIP) 1077*d870e050SAndroid Build Coastguard Worker#wpa_pairwise=TKIP CCMP 1078*d870e050SAndroid Build Coastguard Worker# Pairwise cipher for RSN/WPA2 (default: use wpa_pairwise value) 1079*d870e050SAndroid Build Coastguard Worker#rsn_pairwise=CCMP 1080*d870e050SAndroid Build Coastguard Worker 1081*d870e050SAndroid Build Coastguard Worker# Time interval for rekeying GTK (broadcast/multicast encryption keys) in 1082*d870e050SAndroid Build Coastguard Worker# seconds. (dot11RSNAConfigGroupRekeyTime) 1083*d870e050SAndroid Build Coastguard Worker#wpa_group_rekey=600 1084*d870e050SAndroid Build Coastguard Worker 1085*d870e050SAndroid Build Coastguard Worker# Rekey GTK when any STA that possesses the current GTK is leaving the BSS. 1086*d870e050SAndroid Build Coastguard Worker# (dot11RSNAConfigGroupRekeyStrict) 1087*d870e050SAndroid Build Coastguard Worker#wpa_strict_rekey=1 1088*d870e050SAndroid Build Coastguard Worker 1089*d870e050SAndroid Build Coastguard Worker# Time interval for rekeying GMK (master key used internally to generate GTKs 1090*d870e050SAndroid Build Coastguard Worker# (in seconds). 1091*d870e050SAndroid Build Coastguard Worker#wpa_gmk_rekey=86400 1092*d870e050SAndroid Build Coastguard Worker 1093*d870e050SAndroid Build Coastguard Worker# Maximum lifetime for PTK in seconds. This can be used to enforce rekeying of 1094*d870e050SAndroid Build Coastguard Worker# PTK to mitigate some attacks against TKIP deficiencies. 1095*d870e050SAndroid Build Coastguard Worker#wpa_ptk_rekey=600 1096*d870e050SAndroid Build Coastguard Worker 1097*d870e050SAndroid Build Coastguard Worker# Enable IEEE 802.11i/RSN/WPA2 pre-authentication. This is used to speed up 1098*d870e050SAndroid Build Coastguard Worker# roaming be pre-authenticating IEEE 802.1X/EAP part of the full RSN 1099*d870e050SAndroid Build Coastguard Worker# authentication and key handshake before actually associating with a new AP. 1100*d870e050SAndroid Build Coastguard Worker# (dot11RSNAPreauthenticationEnabled) 1101*d870e050SAndroid Build Coastguard Worker#rsn_preauth=1 1102*d870e050SAndroid Build Coastguard Worker# 1103*d870e050SAndroid Build Coastguard Worker# Space separated list of interfaces from which pre-authentication frames are 1104*d870e050SAndroid Build Coastguard Worker# accepted (e.g., 'eth0' or 'eth0 wlan0wds0'. This list should include all 1105*d870e050SAndroid Build Coastguard Worker# interface that are used for connections to other APs. This could include 1106*d870e050SAndroid Build Coastguard Worker# wired interfaces and WDS links. The normal wireless data interface towards 1107*d870e050SAndroid Build Coastguard Worker# associated stations (e.g., wlan0) should not be added, since 1108*d870e050SAndroid Build Coastguard Worker# pre-authentication is only used with APs other than the currently associated 1109*d870e050SAndroid Build Coastguard Worker# one. 1110*d870e050SAndroid Build Coastguard Worker#rsn_preauth_interfaces=eth0 1111*d870e050SAndroid Build Coastguard Worker 1112*d870e050SAndroid Build Coastguard Worker# peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e) is 1113*d870e050SAndroid Build Coastguard Worker# allowed. This is only used with RSN/WPA2. 1114*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1115*d870e050SAndroid Build Coastguard Worker# 1 = enabled 1116*d870e050SAndroid Build Coastguard Worker#peerkey=1 1117*d870e050SAndroid Build Coastguard Worker 1118*d870e050SAndroid Build Coastguard Worker# ieee80211w: Whether management frame protection (MFP) is enabled 1119*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1120*d870e050SAndroid Build Coastguard Worker# 1 = optional 1121*d870e050SAndroid Build Coastguard Worker# 2 = required 1122*d870e050SAndroid Build Coastguard Worker#ieee80211w=0 1123*d870e050SAndroid Build Coastguard Worker 1124*d870e050SAndroid Build Coastguard Worker# Group management cipher suite 1125*d870e050SAndroid Build Coastguard Worker# Default: AES-128-CMAC (BIP) 1126*d870e050SAndroid Build Coastguard Worker# Other options (depending on driver support): 1127*d870e050SAndroid Build Coastguard Worker# BIP-GMAC-128 1128*d870e050SAndroid Build Coastguard Worker# BIP-GMAC-256 1129*d870e050SAndroid Build Coastguard Worker# BIP-CMAC-256 1130*d870e050SAndroid Build Coastguard Worker# Note: All the stations connecting to the BSS will also need to support the 1131*d870e050SAndroid Build Coastguard Worker# selected cipher. The default AES-128-CMAC is the only option that is commonly 1132*d870e050SAndroid Build Coastguard Worker# available in deployed devices. 1133*d870e050SAndroid Build Coastguard Worker#group_mgmt_cipher=AES-128-CMAC 1134*d870e050SAndroid Build Coastguard Worker 1135*d870e050SAndroid Build Coastguard Worker# Association SA Query maximum timeout (in TU = 1.024 ms; for MFP) 1136*d870e050SAndroid Build Coastguard Worker# (maximum time to wait for a SA Query response) 1137*d870e050SAndroid Build Coastguard Worker# dot11AssociationSAQueryMaximumTimeout, 1...4294967295 1138*d870e050SAndroid Build Coastguard Worker#assoc_sa_query_max_timeout=1000 1139*d870e050SAndroid Build Coastguard Worker 1140*d870e050SAndroid Build Coastguard Worker# Association SA Query retry timeout (in TU = 1.024 ms; for MFP) 1141*d870e050SAndroid Build Coastguard Worker# (time between two subsequent SA Query requests) 1142*d870e050SAndroid Build Coastguard Worker# dot11AssociationSAQueryRetryTimeout, 1...4294967295 1143*d870e050SAndroid Build Coastguard Worker#assoc_sa_query_retry_timeout=201 1144*d870e050SAndroid Build Coastguard Worker 1145*d870e050SAndroid Build Coastguard Worker# disable_pmksa_caching: Disable PMKSA caching 1146*d870e050SAndroid Build Coastguard Worker# This parameter can be used to disable caching of PMKSA created through EAP 1147*d870e050SAndroid Build Coastguard Worker# authentication. RSN preauthentication may still end up using PMKSA caching if 1148*d870e050SAndroid Build Coastguard Worker# it is enabled (rsn_preauth=1). 1149*d870e050SAndroid Build Coastguard Worker# 0 = PMKSA caching enabled (default) 1150*d870e050SAndroid Build Coastguard Worker# 1 = PMKSA caching disabled 1151*d870e050SAndroid Build Coastguard Worker#disable_pmksa_caching=0 1152*d870e050SAndroid Build Coastguard Worker 1153*d870e050SAndroid Build Coastguard Worker# okc: Opportunistic Key Caching (aka Proactive Key Caching) 1154*d870e050SAndroid Build Coastguard Worker# Allow PMK cache to be shared opportunistically among configured interfaces 1155*d870e050SAndroid Build Coastguard Worker# and BSSes (i.e., all configurations within a single hostapd process). 1156*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1157*d870e050SAndroid Build Coastguard Worker# 1 = enabled 1158*d870e050SAndroid Build Coastguard Worker#okc=1 1159*d870e050SAndroid Build Coastguard Worker 1160*d870e050SAndroid Build Coastguard Worker# SAE threshold for anti-clogging mechanism (dot11RSNASAEAntiCloggingThreshold) 1161*d870e050SAndroid Build Coastguard Worker# This parameter defines how many open SAE instances can be in progress at the 1162*d870e050SAndroid Build Coastguard Worker# same time before the anti-clogging mechanism is taken into use. 1163*d870e050SAndroid Build Coastguard Worker#sae_anti_clogging_threshold=5 1164*d870e050SAndroid Build Coastguard Worker 1165*d870e050SAndroid Build Coastguard Worker# Enabled SAE finite cyclic groups 1166*d870e050SAndroid Build Coastguard Worker# SAE implementation are required to support group 19 (ECC group defined over a 1167*d870e050SAndroid Build Coastguard Worker# 256-bit prime order field). All groups that are supported by the 1168*d870e050SAndroid Build Coastguard Worker# implementation are enabled by default. This configuration parameter can be 1169*d870e050SAndroid Build Coastguard Worker# used to specify a limited set of allowed groups. The group values are listed 1170*d870e050SAndroid Build Coastguard Worker# in the IANA registry: 1171*d870e050SAndroid Build Coastguard Worker# http://www.iana.org/assignments/ipsec-registry/ipsec-registry.xml#ipsec-registry-9 1172*d870e050SAndroid Build Coastguard Worker#sae_groups=19 20 21 25 26 1173*d870e050SAndroid Build Coastguard Worker 1174*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11r configuration ############################################## 1175*d870e050SAndroid Build Coastguard Worker 1176*d870e050SAndroid Build Coastguard Worker# Mobility Domain identifier (dot11FTMobilityDomainID, MDID) 1177*d870e050SAndroid Build Coastguard Worker# MDID is used to indicate a group of APs (within an ESS, i.e., sharing the 1178*d870e050SAndroid Build Coastguard Worker# same SSID) between which a STA can use Fast BSS Transition. 1179*d870e050SAndroid Build Coastguard Worker# 2-octet identifier as a hex string. 1180*d870e050SAndroid Build Coastguard Worker#mobility_domain=a1b2 1181*d870e050SAndroid Build Coastguard Worker 1182*d870e050SAndroid Build Coastguard Worker# PMK-R0 Key Holder identifier (dot11FTR0KeyHolderID) 1183*d870e050SAndroid Build Coastguard Worker# 1 to 48 octet identifier. 1184*d870e050SAndroid Build Coastguard Worker# This is configured with nas_identifier (see RADIUS client section above). 1185*d870e050SAndroid Build Coastguard Worker 1186*d870e050SAndroid Build Coastguard Worker# Default lifetime of the PMK-RO in minutes; range 1..65535 1187*d870e050SAndroid Build Coastguard Worker# (dot11FTR0KeyLifetime) 1188*d870e050SAndroid Build Coastguard Worker#r0_key_lifetime=10000 1189*d870e050SAndroid Build Coastguard Worker 1190*d870e050SAndroid Build Coastguard Worker# PMK-R1 Key Holder identifier (dot11FTR1KeyHolderID) 1191*d870e050SAndroid Build Coastguard Worker# 6-octet identifier as a hex string. 1192*d870e050SAndroid Build Coastguard Worker#r1_key_holder=000102030405 1193*d870e050SAndroid Build Coastguard Worker 1194*d870e050SAndroid Build Coastguard Worker# Reassociation deadline in time units (TUs / 1.024 ms; range 1000..65535) 1195*d870e050SAndroid Build Coastguard Worker# (dot11FTReassociationDeadline) 1196*d870e050SAndroid Build Coastguard Worker#reassociation_deadline=1000 1197*d870e050SAndroid Build Coastguard Worker 1198*d870e050SAndroid Build Coastguard Worker# List of R0KHs in the same Mobility Domain 1199*d870e050SAndroid Build Coastguard Worker# format: <MAC address> <NAS Identifier> <128-bit key as hex string> 1200*d870e050SAndroid Build Coastguard Worker# This list is used to map R0KH-ID (NAS Identifier) to a destination MAC 1201*d870e050SAndroid Build Coastguard Worker# address when requesting PMK-R1 key from the R0KH that the STA used during the 1202*d870e050SAndroid Build Coastguard Worker# Initial Mobility Domain Association. 1203*d870e050SAndroid Build Coastguard Worker#r0kh=02:01:02:03:04:05 r0kh-1.example.com 000102030405060708090a0b0c0d0e0f 1204*d870e050SAndroid Build Coastguard Worker#r0kh=02:01:02:03:04:06 r0kh-2.example.com 00112233445566778899aabbccddeeff 1205*d870e050SAndroid Build Coastguard Worker# And so on.. One line per R0KH. 1206*d870e050SAndroid Build Coastguard Worker 1207*d870e050SAndroid Build Coastguard Worker# List of R1KHs in the same Mobility Domain 1208*d870e050SAndroid Build Coastguard Worker# format: <MAC address> <R1KH-ID> <128-bit key as hex string> 1209*d870e050SAndroid Build Coastguard Worker# This list is used to map R1KH-ID to a destination MAC address when sending 1210*d870e050SAndroid Build Coastguard Worker# PMK-R1 key from the R0KH. This is also the list of authorized R1KHs in the MD 1211*d870e050SAndroid Build Coastguard Worker# that can request PMK-R1 keys. 1212*d870e050SAndroid Build Coastguard Worker#r1kh=02:01:02:03:04:05 02:11:22:33:44:55 000102030405060708090a0b0c0d0e0f 1213*d870e050SAndroid Build Coastguard Worker#r1kh=02:01:02:03:04:06 02:11:22:33:44:66 00112233445566778899aabbccddeeff 1214*d870e050SAndroid Build Coastguard Worker# And so on.. One line per R1KH. 1215*d870e050SAndroid Build Coastguard Worker 1216*d870e050SAndroid Build Coastguard Worker# Whether PMK-R1 push is enabled at R0KH 1217*d870e050SAndroid Build Coastguard Worker# 0 = do not push PMK-R1 to all configured R1KHs (default) 1218*d870e050SAndroid Build Coastguard Worker# 1 = push PMK-R1 to all configured R1KHs whenever a new PMK-R0 is derived 1219*d870e050SAndroid Build Coastguard Worker#pmk_r1_push=1 1220*d870e050SAndroid Build Coastguard Worker 1221*d870e050SAndroid Build Coastguard Worker##### Neighbor table ########################################################## 1222*d870e050SAndroid Build Coastguard Worker# Maximum number of entries kept in AP table (either for neigbor table or for 1223*d870e050SAndroid Build Coastguard Worker# detecting Overlapping Legacy BSS Condition). The oldest entry will be 1224*d870e050SAndroid Build Coastguard Worker# removed when adding a new entry that would make the list grow over this 1225*d870e050SAndroid Build Coastguard Worker# limit. Note! WFA certification for IEEE 802.11g requires that OLBC is 1226*d870e050SAndroid Build Coastguard Worker# enabled, so this field should not be set to 0 when using IEEE 802.11g. 1227*d870e050SAndroid Build Coastguard Worker# default: 255 1228*d870e050SAndroid Build Coastguard Worker#ap_table_max_size=255 1229*d870e050SAndroid Build Coastguard Worker 1230*d870e050SAndroid Build Coastguard Worker# Number of seconds of no frames received after which entries may be deleted 1231*d870e050SAndroid Build Coastguard Worker# from the AP table. Since passive scanning is not usually performed frequently 1232*d870e050SAndroid Build Coastguard Worker# this should not be set to very small value. In addition, there is no 1233*d870e050SAndroid Build Coastguard Worker# guarantee that every scan cycle will receive beacon frames from the 1234*d870e050SAndroid Build Coastguard Worker# neighboring APs. 1235*d870e050SAndroid Build Coastguard Worker# default: 60 1236*d870e050SAndroid Build Coastguard Worker#ap_table_expiration_time=3600 1237*d870e050SAndroid Build Coastguard Worker 1238*d870e050SAndroid Build Coastguard Worker 1239*d870e050SAndroid Build Coastguard Worker##### Wi-Fi Protected Setup (WPS) ############################################# 1240*d870e050SAndroid Build Coastguard Worker 1241*d870e050SAndroid Build Coastguard Worker# WPS state 1242*d870e050SAndroid Build Coastguard Worker# 0 = WPS disabled (default) 1243*d870e050SAndroid Build Coastguard Worker# 1 = WPS enabled, not configured 1244*d870e050SAndroid Build Coastguard Worker# 2 = WPS enabled, configured 1245*d870e050SAndroid Build Coastguard Worker#wps_state=2 1246*d870e050SAndroid Build Coastguard Worker 1247*d870e050SAndroid Build Coastguard Worker# Whether to manage this interface independently from other WPS interfaces 1248*d870e050SAndroid Build Coastguard Worker# By default, a single hostapd process applies WPS operations to all configured 1249*d870e050SAndroid Build Coastguard Worker# interfaces. This parameter can be used to disable that behavior for a subset 1250*d870e050SAndroid Build Coastguard Worker# of interfaces. If this is set to non-zero for an interface, WPS commands 1251*d870e050SAndroid Build Coastguard Worker# issued on that interface do not apply to other interfaces and WPS operations 1252*d870e050SAndroid Build Coastguard Worker# performed on other interfaces do not affect this interface. 1253*d870e050SAndroid Build Coastguard Worker#wps_independent=0 1254*d870e050SAndroid Build Coastguard Worker 1255*d870e050SAndroid Build Coastguard Worker# AP can be configured into a locked state where new WPS Registrar are not 1256*d870e050SAndroid Build Coastguard Worker# accepted, but previously authorized Registrars (including the internal one) 1257*d870e050SAndroid Build Coastguard Worker# can continue to add new Enrollees. 1258*d870e050SAndroid Build Coastguard Worker#ap_setup_locked=1 1259*d870e050SAndroid Build Coastguard Worker 1260*d870e050SAndroid Build Coastguard Worker# Universally Unique IDentifier (UUID; see RFC 4122) of the device 1261*d870e050SAndroid Build Coastguard Worker# This value is used as the UUID for the internal WPS Registrar. If the AP 1262*d870e050SAndroid Build Coastguard Worker# is also using UPnP, this value should be set to the device's UPnP UUID. 1263*d870e050SAndroid Build Coastguard Worker# If not configured, UUID will be generated based on the local MAC address. 1264*d870e050SAndroid Build Coastguard Worker#uuid=12345678-9abc-def0-1234-56789abcdef0 1265*d870e050SAndroid Build Coastguard Worker 1266*d870e050SAndroid Build Coastguard Worker# Note: If wpa_psk_file is set, WPS is used to generate random, per-device PSKs 1267*d870e050SAndroid Build Coastguard Worker# that will be appended to the wpa_psk_file. If wpa_psk_file is not set, the 1268*d870e050SAndroid Build Coastguard Worker# default PSK (wpa_psk/wpa_passphrase) will be delivered to Enrollees. Use of 1269*d870e050SAndroid Build Coastguard Worker# per-device PSKs is recommended as the more secure option (i.e., make sure to 1270*d870e050SAndroid Build Coastguard Worker# set wpa_psk_file when using WPS with WPA-PSK). 1271*d870e050SAndroid Build Coastguard Worker 1272*d870e050SAndroid Build Coastguard Worker# When an Enrollee requests access to the network with PIN method, the Enrollee 1273*d870e050SAndroid Build Coastguard Worker# PIN will need to be entered for the Registrar. PIN request notifications are 1274*d870e050SAndroid Build Coastguard Worker# sent to hostapd ctrl_iface monitor. In addition, they can be written to a 1275*d870e050SAndroid Build Coastguard Worker# text file that could be used, e.g., to populate the AP administration UI with 1276*d870e050SAndroid Build Coastguard Worker# pending PIN requests. If the following variable is set, the PIN requests will 1277*d870e050SAndroid Build Coastguard Worker# be written to the configured file. 1278*d870e050SAndroid Build Coastguard Worker#wps_pin_requests=/var/run/hostapd_wps_pin_requests 1279*d870e050SAndroid Build Coastguard Worker 1280*d870e050SAndroid Build Coastguard Worker# Device Name 1281*d870e050SAndroid Build Coastguard Worker# User-friendly description of device; up to 32 octets encoded in UTF-8 1282*d870e050SAndroid Build Coastguard Worker#device_name=Wireless AP 1283*d870e050SAndroid Build Coastguard Worker 1284*d870e050SAndroid Build Coastguard Worker# Manufacturer 1285*d870e050SAndroid Build Coastguard Worker# The manufacturer of the device (up to 64 ASCII characters) 1286*d870e050SAndroid Build Coastguard Worker#manufacturer=Company 1287*d870e050SAndroid Build Coastguard Worker 1288*d870e050SAndroid Build Coastguard Worker# Model Name 1289*d870e050SAndroid Build Coastguard Worker# Model of the device (up to 32 ASCII characters) 1290*d870e050SAndroid Build Coastguard Worker#model_name=WAP 1291*d870e050SAndroid Build Coastguard Worker 1292*d870e050SAndroid Build Coastguard Worker# Model Number 1293*d870e050SAndroid Build Coastguard Worker# Additional device description (up to 32 ASCII characters) 1294*d870e050SAndroid Build Coastguard Worker#model_number=123 1295*d870e050SAndroid Build Coastguard Worker 1296*d870e050SAndroid Build Coastguard Worker# Serial Number 1297*d870e050SAndroid Build Coastguard Worker# Serial number of the device (up to 32 characters) 1298*d870e050SAndroid Build Coastguard Worker#serial_number=12345 1299*d870e050SAndroid Build Coastguard Worker 1300*d870e050SAndroid Build Coastguard Worker# Primary Device Type 1301*d870e050SAndroid Build Coastguard Worker# Used format: <categ>-<OUI>-<subcateg> 1302*d870e050SAndroid Build Coastguard Worker# categ = Category as an integer value 1303*d870e050SAndroid Build Coastguard Worker# OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for 1304*d870e050SAndroid Build Coastguard Worker# default WPS OUI 1305*d870e050SAndroid Build Coastguard Worker# subcateg = OUI-specific Sub Category as an integer value 1306*d870e050SAndroid Build Coastguard Worker# Examples: 1307*d870e050SAndroid Build Coastguard Worker# 1-0050F204-1 (Computer / PC) 1308*d870e050SAndroid Build Coastguard Worker# 1-0050F204-2 (Computer / Server) 1309*d870e050SAndroid Build Coastguard Worker# 5-0050F204-1 (Storage / NAS) 1310*d870e050SAndroid Build Coastguard Worker# 6-0050F204-1 (Network Infrastructure / AP) 1311*d870e050SAndroid Build Coastguard Worker#device_type=6-0050F204-1 1312*d870e050SAndroid Build Coastguard Worker 1313*d870e050SAndroid Build Coastguard Worker# OS Version 1314*d870e050SAndroid Build Coastguard Worker# 4-octet operating system version number (hex string) 1315*d870e050SAndroid Build Coastguard Worker#os_version=01020300 1316*d870e050SAndroid Build Coastguard Worker 1317*d870e050SAndroid Build Coastguard Worker# Config Methods 1318*d870e050SAndroid Build Coastguard Worker# List of the supported configuration methods 1319*d870e050SAndroid Build Coastguard Worker# Available methods: usba ethernet label display ext_nfc_token int_nfc_token 1320*d870e050SAndroid Build Coastguard Worker# nfc_interface push_button keypad virtual_display physical_display 1321*d870e050SAndroid Build Coastguard Worker# virtual_push_button physical_push_button 1322*d870e050SAndroid Build Coastguard Worker#config_methods=label virtual_display virtual_push_button keypad 1323*d870e050SAndroid Build Coastguard Worker 1324*d870e050SAndroid Build Coastguard Worker# WPS capability discovery workaround for PBC with Windows 7 1325*d870e050SAndroid Build Coastguard Worker# Windows 7 uses incorrect way of figuring out AP's WPS capabilities by acting 1326*d870e050SAndroid Build Coastguard Worker# as a Registrar and using M1 from the AP. The config methods attribute in that 1327*d870e050SAndroid Build Coastguard Worker# message is supposed to indicate only the configuration method supported by 1328*d870e050SAndroid Build Coastguard Worker# the AP in Enrollee role, i.e., to add an external Registrar. For that case, 1329*d870e050SAndroid Build Coastguard Worker# PBC shall not be used and as such, the PushButton config method is removed 1330*d870e050SAndroid Build Coastguard Worker# from M1 by default. If pbc_in_m1=1 is included in the configuration file, 1331*d870e050SAndroid Build Coastguard Worker# the PushButton config method is left in M1 (if included in config_methods 1332*d870e050SAndroid Build Coastguard Worker# parameter) to allow Windows 7 to use PBC instead of PIN (e.g., from a label 1333*d870e050SAndroid Build Coastguard Worker# in the AP). 1334*d870e050SAndroid Build Coastguard Worker#pbc_in_m1=1 1335*d870e050SAndroid Build Coastguard Worker 1336*d870e050SAndroid Build Coastguard Worker# Static access point PIN for initial configuration and adding Registrars 1337*d870e050SAndroid Build Coastguard Worker# If not set, hostapd will not allow external WPS Registrars to control the 1338*d870e050SAndroid Build Coastguard Worker# access point. The AP PIN can also be set at runtime with hostapd_cli 1339*d870e050SAndroid Build Coastguard Worker# wps_ap_pin command. Use of temporary (enabled by user action) and random 1340*d870e050SAndroid Build Coastguard Worker# AP PIN is much more secure than configuring a static AP PIN here. As such, 1341*d870e050SAndroid Build Coastguard Worker# use of the ap_pin parameter is not recommended if the AP device has means for 1342*d870e050SAndroid Build Coastguard Worker# displaying a random PIN. 1343*d870e050SAndroid Build Coastguard Worker#ap_pin=12345670 1344*d870e050SAndroid Build Coastguard Worker 1345*d870e050SAndroid Build Coastguard Worker# Skip building of automatic WPS credential 1346*d870e050SAndroid Build Coastguard Worker# This can be used to allow the automatically generated Credential attribute to 1347*d870e050SAndroid Build Coastguard Worker# be replaced with pre-configured Credential(s). 1348*d870e050SAndroid Build Coastguard Worker#skip_cred_build=1 1349*d870e050SAndroid Build Coastguard Worker 1350*d870e050SAndroid Build Coastguard Worker# Additional Credential attribute(s) 1351*d870e050SAndroid Build Coastguard Worker# This option can be used to add pre-configured Credential attributes into M8 1352*d870e050SAndroid Build Coastguard Worker# message when acting as a Registrar. If skip_cred_build=1, this data will also 1353*d870e050SAndroid Build Coastguard Worker# be able to override the Credential attribute that would have otherwise been 1354*d870e050SAndroid Build Coastguard Worker# automatically generated based on network configuration. This configuration 1355*d870e050SAndroid Build Coastguard Worker# option points to an external file that much contain the WPS Credential 1356*d870e050SAndroid Build Coastguard Worker# attribute(s) as binary data. 1357*d870e050SAndroid Build Coastguard Worker#extra_cred=hostapd.cred 1358*d870e050SAndroid Build Coastguard Worker 1359*d870e050SAndroid Build Coastguard Worker# Credential processing 1360*d870e050SAndroid Build Coastguard Worker# 0 = process received credentials internally (default) 1361*d870e050SAndroid Build Coastguard Worker# 1 = do not process received credentials; just pass them over ctrl_iface to 1362*d870e050SAndroid Build Coastguard Worker# external program(s) 1363*d870e050SAndroid Build Coastguard Worker# 2 = process received credentials internally and pass them over ctrl_iface 1364*d870e050SAndroid Build Coastguard Worker# to external program(s) 1365*d870e050SAndroid Build Coastguard Worker# Note: With wps_cred_processing=1, skip_cred_build should be set to 1 and 1366*d870e050SAndroid Build Coastguard Worker# extra_cred be used to provide the Credential data for Enrollees. 1367*d870e050SAndroid Build Coastguard Worker# 1368*d870e050SAndroid Build Coastguard Worker# wps_cred_processing=1 will disabled automatic updates of hostapd.conf file 1369*d870e050SAndroid Build Coastguard Worker# both for Credential processing and for marking AP Setup Locked based on 1370*d870e050SAndroid Build Coastguard Worker# validation failures of AP PIN. An external program is responsible on updating 1371*d870e050SAndroid Build Coastguard Worker# the configuration appropriately in this case. 1372*d870e050SAndroid Build Coastguard Worker#wps_cred_processing=0 1373*d870e050SAndroid Build Coastguard Worker 1374*d870e050SAndroid Build Coastguard Worker# AP Settings Attributes for M7 1375*d870e050SAndroid Build Coastguard Worker# By default, hostapd generates the AP Settings Attributes for M7 based on the 1376*d870e050SAndroid Build Coastguard Worker# current configuration. It is possible to override this by providing a file 1377*d870e050SAndroid Build Coastguard Worker# with pre-configured attributes. This is similar to extra_cred file format, 1378*d870e050SAndroid Build Coastguard Worker# but the AP Settings attributes are not encapsulated in a Credential 1379*d870e050SAndroid Build Coastguard Worker# attribute. 1380*d870e050SAndroid Build Coastguard Worker#ap_settings=hostapd.ap_settings 1381*d870e050SAndroid Build Coastguard Worker 1382*d870e050SAndroid Build Coastguard Worker# WPS UPnP interface 1383*d870e050SAndroid Build Coastguard Worker# If set, support for external Registrars is enabled. 1384*d870e050SAndroid Build Coastguard Worker#upnp_iface=br0 1385*d870e050SAndroid Build Coastguard Worker 1386*d870e050SAndroid Build Coastguard Worker# Friendly Name (required for UPnP) 1387*d870e050SAndroid Build Coastguard Worker# Short description for end use. Should be less than 64 characters. 1388*d870e050SAndroid Build Coastguard Worker#friendly_name=WPS Access Point 1389*d870e050SAndroid Build Coastguard Worker 1390*d870e050SAndroid Build Coastguard Worker# Manufacturer URL (optional for UPnP) 1391*d870e050SAndroid Build Coastguard Worker#manufacturer_url=http://www.example.com/ 1392*d870e050SAndroid Build Coastguard Worker 1393*d870e050SAndroid Build Coastguard Worker# Model Description (recommended for UPnP) 1394*d870e050SAndroid Build Coastguard Worker# Long description for end user. Should be less than 128 characters. 1395*d870e050SAndroid Build Coastguard Worker#model_description=Wireless Access Point 1396*d870e050SAndroid Build Coastguard Worker 1397*d870e050SAndroid Build Coastguard Worker# Model URL (optional for UPnP) 1398*d870e050SAndroid Build Coastguard Worker#model_url=http://www.example.com/model/ 1399*d870e050SAndroid Build Coastguard Worker 1400*d870e050SAndroid Build Coastguard Worker# Universal Product Code (optional for UPnP) 1401*d870e050SAndroid Build Coastguard Worker# 12-digit, all-numeric code that identifies the consumer package. 1402*d870e050SAndroid Build Coastguard Worker#upc=123456789012 1403*d870e050SAndroid Build Coastguard Worker 1404*d870e050SAndroid Build Coastguard Worker# WPS RF Bands (a = 5G, b = 2.4G, g = 2.4G, ag = dual band) 1405*d870e050SAndroid Build Coastguard Worker# This value should be set according to RF band(s) supported by the AP if 1406*d870e050SAndroid Build Coastguard Worker# hw_mode is not set. For dual band dual concurrent devices, this needs to be 1407*d870e050SAndroid Build Coastguard Worker# set to ag to allow both RF bands to be advertized. 1408*d870e050SAndroid Build Coastguard Worker#wps_rf_bands=ag 1409*d870e050SAndroid Build Coastguard Worker 1410*d870e050SAndroid Build Coastguard Worker# NFC password token for WPS 1411*d870e050SAndroid Build Coastguard Worker# These parameters can be used to configure a fixed NFC password token for the 1412*d870e050SAndroid Build Coastguard Worker# AP. This can be generated, e.g., with nfc_pw_token from wpa_supplicant. When 1413*d870e050SAndroid Build Coastguard Worker# these parameters are used, the AP is assumed to be deployed with a NFC tag 1414*d870e050SAndroid Build Coastguard Worker# that includes the matching NFC password token (e.g., written based on the 1415*d870e050SAndroid Build Coastguard Worker# NDEF record from nfc_pw_token). 1416*d870e050SAndroid Build Coastguard Worker# 1417*d870e050SAndroid Build Coastguard Worker#wps_nfc_dev_pw_id: Device Password ID (16..65535) 1418*d870e050SAndroid Build Coastguard Worker#wps_nfc_dh_pubkey: Hexdump of DH Public Key 1419*d870e050SAndroid Build Coastguard Worker#wps_nfc_dh_privkey: Hexdump of DH Private Key 1420*d870e050SAndroid Build Coastguard Worker#wps_nfc_dev_pw: Hexdump of Device Password 1421*d870e050SAndroid Build Coastguard Worker 1422*d870e050SAndroid Build Coastguard Worker##### Wi-Fi Direct (P2P) ###################################################### 1423*d870e050SAndroid Build Coastguard Worker 1424*d870e050SAndroid Build Coastguard Worker# Enable P2P Device management 1425*d870e050SAndroid Build Coastguard Worker#manage_p2p=1 1426*d870e050SAndroid Build Coastguard Worker 1427*d870e050SAndroid Build Coastguard Worker# Allow cross connection 1428*d870e050SAndroid Build Coastguard Worker#allow_cross_connection=1 1429*d870e050SAndroid Build Coastguard Worker 1430*d870e050SAndroid Build Coastguard Worker#### TDLS (IEEE 802.11z-2010) ################################################# 1431*d870e050SAndroid Build Coastguard Worker 1432*d870e050SAndroid Build Coastguard Worker# Prohibit use of TDLS in this BSS 1433*d870e050SAndroid Build Coastguard Worker#tdls_prohibit=1 1434*d870e050SAndroid Build Coastguard Worker 1435*d870e050SAndroid Build Coastguard Worker# Prohibit use of TDLS Channel Switching in this BSS 1436*d870e050SAndroid Build Coastguard Worker#tdls_prohibit_chan_switch=1 1437*d870e050SAndroid Build Coastguard Worker 1438*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11v-2011 ####################################################### 1439*d870e050SAndroid Build Coastguard Worker 1440*d870e050SAndroid Build Coastguard Worker# Time advertisement 1441*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1442*d870e050SAndroid Build Coastguard Worker# 2 = UTC time at which the TSF timer is 0 1443*d870e050SAndroid Build Coastguard Worker#time_advertisement=2 1444*d870e050SAndroid Build Coastguard Worker 1445*d870e050SAndroid Build Coastguard Worker# Local time zone as specified in 8.3 of IEEE Std 1003.1-2004: 1446*d870e050SAndroid Build Coastguard Worker# stdoffset[dst[offset][,start[/time],end[/time]]] 1447*d870e050SAndroid Build Coastguard Worker#time_zone=EST5 1448*d870e050SAndroid Build Coastguard Worker 1449*d870e050SAndroid Build Coastguard Worker# WNM-Sleep Mode (extended sleep mode for stations) 1450*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1451*d870e050SAndroid Build Coastguard Worker# 1 = enabled (allow stations to use WNM-Sleep Mode) 1452*d870e050SAndroid Build Coastguard Worker#wnm_sleep_mode=1 1453*d870e050SAndroid Build Coastguard Worker 1454*d870e050SAndroid Build Coastguard Worker# BSS Transition Management 1455*d870e050SAndroid Build Coastguard Worker# 0 = disabled (default) 1456*d870e050SAndroid Build Coastguard Worker# 1 = enabled 1457*d870e050SAndroid Build Coastguard Worker#bss_transition=1 1458*d870e050SAndroid Build Coastguard Worker 1459*d870e050SAndroid Build Coastguard Worker##### IEEE 802.11u-2011 ####################################################### 1460*d870e050SAndroid Build Coastguard Worker 1461*d870e050SAndroid Build Coastguard Worker# Enable Interworking service 1462*d870e050SAndroid Build Coastguard Worker#interworking=1 1463*d870e050SAndroid Build Coastguard Worker 1464*d870e050SAndroid Build Coastguard Worker# Access Network Type 1465*d870e050SAndroid Build Coastguard Worker# 0 = Private network 1466*d870e050SAndroid Build Coastguard Worker# 1 = Private network with guest access 1467*d870e050SAndroid Build Coastguard Worker# 2 = Chargeable public network 1468*d870e050SAndroid Build Coastguard Worker# 3 = Free public network 1469*d870e050SAndroid Build Coastguard Worker# 4 = Personal device network 1470*d870e050SAndroid Build Coastguard Worker# 5 = Emergency services only network 1471*d870e050SAndroid Build Coastguard Worker# 14 = Test or experimental 1472*d870e050SAndroid Build Coastguard Worker# 15 = Wildcard 1473*d870e050SAndroid Build Coastguard Worker#access_network_type=0 1474*d870e050SAndroid Build Coastguard Worker 1475*d870e050SAndroid Build Coastguard Worker# Whether the network provides connectivity to the Internet 1476*d870e050SAndroid Build Coastguard Worker# 0 = Unspecified 1477*d870e050SAndroid Build Coastguard Worker# 1 = Network provides connectivity to the Internet 1478*d870e050SAndroid Build Coastguard Worker#internet=1 1479*d870e050SAndroid Build Coastguard Worker 1480*d870e050SAndroid Build Coastguard Worker# Additional Step Required for Access 1481*d870e050SAndroid Build Coastguard Worker# Note: This is only used with open network, i.e., ASRA shall ne set to 0 if 1482*d870e050SAndroid Build Coastguard Worker# RSN is used. 1483*d870e050SAndroid Build Coastguard Worker#asra=0 1484*d870e050SAndroid Build Coastguard Worker 1485*d870e050SAndroid Build Coastguard Worker# Emergency services reachable 1486*d870e050SAndroid Build Coastguard Worker#esr=0 1487*d870e050SAndroid Build Coastguard Worker 1488*d870e050SAndroid Build Coastguard Worker# Unauthenticated emergency service accessible 1489*d870e050SAndroid Build Coastguard Worker#uesa=0 1490*d870e050SAndroid Build Coastguard Worker 1491*d870e050SAndroid Build Coastguard Worker# Venue Info (optional) 1492*d870e050SAndroid Build Coastguard Worker# The available values are defined in IEEE Std 802.11u-2011, 7.3.1.34. 1493*d870e050SAndroid Build Coastguard Worker# Example values (group,type): 1494*d870e050SAndroid Build Coastguard Worker# 0,0 = Unspecified 1495*d870e050SAndroid Build Coastguard Worker# 1,7 = Convention Center 1496*d870e050SAndroid Build Coastguard Worker# 1,13 = Coffee Shop 1497*d870e050SAndroid Build Coastguard Worker# 2,0 = Unspecified Business 1498*d870e050SAndroid Build Coastguard Worker# 7,1 Private Residence 1499*d870e050SAndroid Build Coastguard Worker#venue_group=7 1500*d870e050SAndroid Build Coastguard Worker#venue_type=1 1501*d870e050SAndroid Build Coastguard Worker 1502*d870e050SAndroid Build Coastguard Worker# Homogeneous ESS identifier (optional; dot11HESSID) 1503*d870e050SAndroid Build Coastguard Worker# If set, this shall be identifical to one of the BSSIDs in the homogeneous 1504*d870e050SAndroid Build Coastguard Worker# ESS and this shall be set to the same value across all BSSs in homogeneous 1505*d870e050SAndroid Build Coastguard Worker# ESS. 1506*d870e050SAndroid Build Coastguard Worker#hessid=02:03:04:05:06:07 1507*d870e050SAndroid Build Coastguard Worker 1508*d870e050SAndroid Build Coastguard Worker# Roaming Consortium List 1509*d870e050SAndroid Build Coastguard Worker# Arbitrary number of Roaming Consortium OIs can be configured with each line 1510*d870e050SAndroid Build Coastguard Worker# adding a new OI to the list. The first three entries are available through 1511*d870e050SAndroid Build Coastguard Worker# Beacon and Probe Response frames. Any additional entry will be available only 1512*d870e050SAndroid Build Coastguard Worker# through ANQP queries. Each OI is between 3 and 15 octets and is configured as 1513*d870e050SAndroid Build Coastguard Worker# a hexstring. 1514*d870e050SAndroid Build Coastguard Worker#roaming_consortium=021122 1515*d870e050SAndroid Build Coastguard Worker#roaming_consortium=2233445566 1516*d870e050SAndroid Build Coastguard Worker 1517*d870e050SAndroid Build Coastguard Worker# Venue Name information 1518*d870e050SAndroid Build Coastguard Worker# This parameter can be used to configure one or more Venue Name Duples for 1519*d870e050SAndroid Build Coastguard Worker# Venue Name ANQP information. Each entry has a two or three character language 1520*d870e050SAndroid Build Coastguard Worker# code (ISO-639) separated by colon from the venue name string. 1521*d870e050SAndroid Build Coastguard Worker# Note that venue_group and venue_type have to be set for Venue Name 1522*d870e050SAndroid Build Coastguard Worker# information to be complete. 1523*d870e050SAndroid Build Coastguard Worker#venue_name=eng:Example venue 1524*d870e050SAndroid Build Coastguard Worker#venue_name=fin:Esimerkkipaikka 1525*d870e050SAndroid Build Coastguard Worker# Alternative format for language:value strings: 1526*d870e050SAndroid Build Coastguard Worker# (double quoted string, printf-escaped string) 1527*d870e050SAndroid Build Coastguard Worker#venue_name=P"eng:Example\nvenue" 1528*d870e050SAndroid Build Coastguard Worker 1529*d870e050SAndroid Build Coastguard Worker# Network Authentication Type 1530*d870e050SAndroid Build Coastguard Worker# This parameter indicates what type of network authentication is used in the 1531*d870e050SAndroid Build Coastguard Worker# network. 1532*d870e050SAndroid Build Coastguard Worker# format: <network auth type indicator (1-octet hex str)> [redirect URL] 1533*d870e050SAndroid Build Coastguard Worker# Network Authentication Type Indicator values: 1534*d870e050SAndroid Build Coastguard Worker# 00 = Acceptance of terms and conditions 1535*d870e050SAndroid Build Coastguard Worker# 01 = On-line enrollment supported 1536*d870e050SAndroid Build Coastguard Worker# 02 = http/https redirection 1537*d870e050SAndroid Build Coastguard Worker# 03 = DNS redirection 1538*d870e050SAndroid Build Coastguard Worker#network_auth_type=00 1539*d870e050SAndroid Build Coastguard Worker#network_auth_type=02http://www.example.com/redirect/me/here/ 1540*d870e050SAndroid Build Coastguard Worker 1541*d870e050SAndroid Build Coastguard Worker# IP Address Type Availability 1542*d870e050SAndroid Build Coastguard Worker# format: <1-octet encoded value as hex str> 1543*d870e050SAndroid Build Coastguard Worker# (ipv4_type & 0x3f) << 2 | (ipv6_type & 0x3) 1544*d870e050SAndroid Build Coastguard Worker# ipv4_type: 1545*d870e050SAndroid Build Coastguard Worker# 0 = Address type not available 1546*d870e050SAndroid Build Coastguard Worker# 1 = Public IPv4 address available 1547*d870e050SAndroid Build Coastguard Worker# 2 = Port-restricted IPv4 address available 1548*d870e050SAndroid Build Coastguard Worker# 3 = Single NATed private IPv4 address available 1549*d870e050SAndroid Build Coastguard Worker# 4 = Double NATed private IPv4 address available 1550*d870e050SAndroid Build Coastguard Worker# 5 = Port-restricted IPv4 address and single NATed IPv4 address available 1551*d870e050SAndroid Build Coastguard Worker# 6 = Port-restricted IPv4 address and double NATed IPv4 address available 1552*d870e050SAndroid Build Coastguard Worker# 7 = Availability of the address type is not known 1553*d870e050SAndroid Build Coastguard Worker# ipv6_type: 1554*d870e050SAndroid Build Coastguard Worker# 0 = Address type not available 1555*d870e050SAndroid Build Coastguard Worker# 1 = Address type available 1556*d870e050SAndroid Build Coastguard Worker# 2 = Availability of the address type not known 1557*d870e050SAndroid Build Coastguard Worker#ipaddr_type_availability=14 1558*d870e050SAndroid Build Coastguard Worker 1559*d870e050SAndroid Build Coastguard Worker# Domain Name 1560*d870e050SAndroid Build Coastguard Worker# format: <variable-octet str>[,<variable-octet str>] 1561*d870e050SAndroid Build Coastguard Worker#domain_name=example.com,another.example.com,yet-another.example.com 1562*d870e050SAndroid Build Coastguard Worker 1563*d870e050SAndroid Build Coastguard Worker# 3GPP Cellular Network information 1564*d870e050SAndroid Build Coastguard Worker# format: <MCC1,MNC1>[;<MCC2,MNC2>][;...] 1565*d870e050SAndroid Build Coastguard Worker#anqp_3gpp_cell_net=244,91;310,026;234,56 1566*d870e050SAndroid Build Coastguard Worker 1567*d870e050SAndroid Build Coastguard Worker# NAI Realm information 1568*d870e050SAndroid Build Coastguard Worker# One or more realm can be advertised. Each nai_realm line adds a new realm to 1569*d870e050SAndroid Build Coastguard Worker# the set. These parameters provide information for stations using Interworking 1570*d870e050SAndroid Build Coastguard Worker# network selection to allow automatic connection to a network based on 1571*d870e050SAndroid Build Coastguard Worker# credentials. 1572*d870e050SAndroid Build Coastguard Worker# format: <encoding>,<NAI Realm(s)>[,<EAP Method 1>][,<EAP Method 2>][,...] 1573*d870e050SAndroid Build Coastguard Worker# encoding: 1574*d870e050SAndroid Build Coastguard Worker# 0 = Realm formatted in accordance with IETF RFC 4282 1575*d870e050SAndroid Build Coastguard Worker# 1 = UTF-8 formatted character string that is not formatted in 1576*d870e050SAndroid Build Coastguard Worker# accordance with IETF RFC 4282 1577*d870e050SAndroid Build Coastguard Worker# NAI Realm(s): Semi-colon delimited NAI Realm(s) 1578*d870e050SAndroid Build Coastguard Worker# EAP Method: <EAP Method>[:<[AuthParam1:Val1]>][<[AuthParam2:Val2]>][...] 1579*d870e050SAndroid Build Coastguard Worker# EAP Method types, see: 1580*d870e050SAndroid Build Coastguard Worker# http://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml#eap-numbers-4 1581*d870e050SAndroid Build Coastguard Worker# AuthParam (Table 8-188 in IEEE Std 802.11-2012): 1582*d870e050SAndroid Build Coastguard Worker# ID 2 = Non-EAP Inner Authentication Type 1583*d870e050SAndroid Build Coastguard Worker# 1 = PAP, 2 = CHAP, 3 = MSCHAP, 4 = MSCHAPV2 1584*d870e050SAndroid Build Coastguard Worker# ID 3 = Inner authentication EAP Method Type 1585*d870e050SAndroid Build Coastguard Worker# ID 5 = Credential Type 1586*d870e050SAndroid Build Coastguard Worker# 1 = SIM, 2 = USIM, 3 = NFC Secure Element, 4 = Hardware Token, 1587*d870e050SAndroid Build Coastguard Worker# 5 = Softoken, 6 = Certificate, 7 = username/password, 9 = Anonymous, 1588*d870e050SAndroid Build Coastguard Worker# 10 = Vendor Specific 1589*d870e050SAndroid Build Coastguard Worker#nai_realm=0,example.com;example.net 1590*d870e050SAndroid Build Coastguard Worker# EAP methods EAP-TLS with certificate and EAP-TTLS/MSCHAPv2 with 1591*d870e050SAndroid Build Coastguard Worker# username/password 1592*d870e050SAndroid Build Coastguard Worker#nai_realm=0,example.org,13[5:6],21[2:4][5:7] 1593*d870e050SAndroid Build Coastguard Worker 1594*d870e050SAndroid Build Coastguard Worker# QoS Map Set configuration 1595*d870e050SAndroid Build Coastguard Worker# 1596*d870e050SAndroid Build Coastguard Worker# Comma delimited QoS Map Set in decimal values 1597*d870e050SAndroid Build Coastguard Worker# (see IEEE Std 802.11-2012, 8.4.2.97) 1598*d870e050SAndroid Build Coastguard Worker# 1599*d870e050SAndroid Build Coastguard Worker# format: 1600*d870e050SAndroid Build Coastguard Worker# [<DSCP Exceptions[DSCP,UP]>,]<UP 0 range[low,high]>,...<UP 7 range[low,high]> 1601*d870e050SAndroid Build Coastguard Worker# 1602*d870e050SAndroid Build Coastguard Worker# There can be up to 21 optional DSCP Exceptions which are pairs of DSCP Value 1603*d870e050SAndroid Build Coastguard Worker# (0..63 or 255) and User Priority (0..7). This is followed by eight DSCP Range 1604*d870e050SAndroid Build Coastguard Worker# descriptions with DSCP Low Value and DSCP High Value pairs (0..63 or 255) for 1605*d870e050SAndroid Build Coastguard Worker# each UP starting from 0. If both low and high value are set to 255, the 1606*d870e050SAndroid Build Coastguard Worker# corresponding UP is not used. 1607*d870e050SAndroid Build Coastguard Worker# 1608*d870e050SAndroid Build Coastguard Worker# default: not set 1609*d870e050SAndroid Build Coastguard Worker#qos_map_set=53,2,22,6,8,15,0,7,255,255,16,31,32,39,255,255,40,47,255,255 1610*d870e050SAndroid Build Coastguard Worker 1611*d870e050SAndroid Build Coastguard Worker##### Hotspot 2.0 ############################################################# 1612*d870e050SAndroid Build Coastguard Worker 1613*d870e050SAndroid Build Coastguard Worker# Enable Hotspot 2.0 support 1614*d870e050SAndroid Build Coastguard Worker#hs20=1 1615*d870e050SAndroid Build Coastguard Worker 1616*d870e050SAndroid Build Coastguard Worker# Disable Downstream Group-Addressed Forwarding (DGAF) 1617*d870e050SAndroid Build Coastguard Worker# This can be used to configure a network where no group-addressed frames are 1618*d870e050SAndroid Build Coastguard Worker# allowed. The AP will not forward any group-address frames to the stations and 1619*d870e050SAndroid Build Coastguard Worker# random GTKs are issued for each station to prevent associated stations from 1620*d870e050SAndroid Build Coastguard Worker# forging such frames to other stations in the BSS. 1621*d870e050SAndroid Build Coastguard Worker#disable_dgaf=1 1622*d870e050SAndroid Build Coastguard Worker 1623*d870e050SAndroid Build Coastguard Worker# OSU Server-Only Authenticated L2 Encryption Network 1624*d870e050SAndroid Build Coastguard Worker#osen=1 1625*d870e050SAndroid Build Coastguard Worker 1626*d870e050SAndroid Build Coastguard Worker# ANQP Domain ID (0..65535) 1627*d870e050SAndroid Build Coastguard Worker# An identifier for a set of APs in an ESS that share the same common ANQP 1628*d870e050SAndroid Build Coastguard Worker# information. 0 = Some of the ANQP information is unique to this AP (default). 1629*d870e050SAndroid Build Coastguard Worker#anqp_domain_id=1234 1630*d870e050SAndroid Build Coastguard Worker 1631*d870e050SAndroid Build Coastguard Worker# Deauthentication request timeout 1632*d870e050SAndroid Build Coastguard Worker# If the RADIUS server indicates that the station is not allowed to connect to 1633*d870e050SAndroid Build Coastguard Worker# the BSS/ESS, the AP can allow the station some time to download a 1634*d870e050SAndroid Build Coastguard Worker# notification page (URL included in the message). This parameter sets that 1635*d870e050SAndroid Build Coastguard Worker# timeout in seconds. 1636*d870e050SAndroid Build Coastguard Worker#hs20_deauth_req_timeout=60 1637*d870e050SAndroid Build Coastguard Worker 1638*d870e050SAndroid Build Coastguard Worker# Operator Friendly Name 1639*d870e050SAndroid Build Coastguard Worker# This parameter can be used to configure one or more Operator Friendly Name 1640*d870e050SAndroid Build Coastguard Worker# Duples. Each entry has a two or three character language code (ISO-639) 1641*d870e050SAndroid Build Coastguard Worker# separated by colon from the operator friendly name string. 1642*d870e050SAndroid Build Coastguard Worker#hs20_oper_friendly_name=eng:Example operator 1643*d870e050SAndroid Build Coastguard Worker#hs20_oper_friendly_name=fin:Esimerkkioperaattori 1644*d870e050SAndroid Build Coastguard Worker 1645*d870e050SAndroid Build Coastguard Worker# Connection Capability 1646*d870e050SAndroid Build Coastguard Worker# This can be used to advertise what type of IP traffic can be sent through the 1647*d870e050SAndroid Build Coastguard Worker# hotspot (e.g., due to firewall allowing/blocking protocols/ports). 1648*d870e050SAndroid Build Coastguard Worker# format: <IP Protocol>:<Port Number>:<Status> 1649*d870e050SAndroid Build Coastguard Worker# IP Protocol: 1 = ICMP, 6 = TCP, 17 = UDP 1650*d870e050SAndroid Build Coastguard Worker# Port Number: 0..65535 1651*d870e050SAndroid Build Coastguard Worker# Status: 0 = Closed, 1 = Open, 2 = Unknown 1652*d870e050SAndroid Build Coastguard Worker# Each hs20_conn_capab line is added to the list of advertised tuples. 1653*d870e050SAndroid Build Coastguard Worker#hs20_conn_capab=1:0:2 1654*d870e050SAndroid Build Coastguard Worker#hs20_conn_capab=6:22:1 1655*d870e050SAndroid Build Coastguard Worker#hs20_conn_capab=17:5060:0 1656*d870e050SAndroid Build Coastguard Worker 1657*d870e050SAndroid Build Coastguard Worker# WAN Metrics 1658*d870e050SAndroid Build Coastguard Worker# format: <WAN Info>:<DL Speed>:<UL Speed>:<DL Load>:<UL Load>:<LMD> 1659*d870e050SAndroid Build Coastguard Worker# WAN Info: B0-B1: Link Status, B2: Symmetric Link, B3: At Capabity 1660*d870e050SAndroid Build Coastguard Worker# (encoded as two hex digits) 1661*d870e050SAndroid Build Coastguard Worker# Link Status: 1 = Link up, 2 = Link down, 3 = Link in test state 1662*d870e050SAndroid Build Coastguard Worker# Downlink Speed: Estimate of WAN backhaul link current downlink speed in kbps; 1663*d870e050SAndroid Build Coastguard Worker# 1..4294967295; 0 = unknown 1664*d870e050SAndroid Build Coastguard Worker# Uplink Speed: Estimate of WAN backhaul link current uplink speed in kbps 1665*d870e050SAndroid Build Coastguard Worker# 1..4294967295; 0 = unknown 1666*d870e050SAndroid Build Coastguard Worker# Downlink Load: Current load of downlink WAN connection (scaled to 255 = 100%) 1667*d870e050SAndroid Build Coastguard Worker# Uplink Load: Current load of uplink WAN connection (scaled to 255 = 100%) 1668*d870e050SAndroid Build Coastguard Worker# Load Measurement Duration: Duration for measuring downlink/uplink load in 1669*d870e050SAndroid Build Coastguard Worker# tenths of a second (1..65535); 0 if load cannot be determined 1670*d870e050SAndroid Build Coastguard Worker#hs20_wan_metrics=01:8000:1000:80:240:3000 1671*d870e050SAndroid Build Coastguard Worker 1672*d870e050SAndroid Build Coastguard Worker# Operating Class Indication 1673*d870e050SAndroid Build Coastguard Worker# List of operating classes the BSSes in this ESS use. The Global operating 1674*d870e050SAndroid Build Coastguard Worker# classes in Table E-4 of IEEE Std 802.11-2012 Annex E define the values that 1675*d870e050SAndroid Build Coastguard Worker# can be used in this. 1676*d870e050SAndroid Build Coastguard Worker# format: hexdump of operating class octets 1677*d870e050SAndroid Build Coastguard Worker# for example, operating classes 81 (2.4 GHz channels 1-13) and 115 (5 GHz 1678*d870e050SAndroid Build Coastguard Worker# channels 36-48): 1679*d870e050SAndroid Build Coastguard Worker#hs20_operating_class=5173 1680*d870e050SAndroid Build Coastguard Worker 1681*d870e050SAndroid Build Coastguard Worker# OSU icons 1682*d870e050SAndroid Build Coastguard Worker# <Icon Width>:<Icon Height>:<Language code>:<Icon Type>:<Name>:<file path> 1683*d870e050SAndroid Build Coastguard Worker#hs20_icon=32:32:eng:image/png:icon32:/tmp/icon32.png 1684*d870e050SAndroid Build Coastguard Worker#hs20_icon=64:64:eng:image/png:icon64:/tmp/icon64.png 1685*d870e050SAndroid Build Coastguard Worker 1686*d870e050SAndroid Build Coastguard Worker# OSU SSID (see ssid2 for format description) 1687*d870e050SAndroid Build Coastguard Worker# This is the SSID used for all OSU connections to all the listed OSU Providers. 1688*d870e050SAndroid Build Coastguard Worker#osu_ssid="example" 1689*d870e050SAndroid Build Coastguard Worker 1690*d870e050SAndroid Build Coastguard Worker# OSU Providers 1691*d870e050SAndroid Build Coastguard Worker# One or more sets of following parameter. Each OSU provider is started by the 1692*d870e050SAndroid Build Coastguard Worker# mandatory osu_server_uri item. The other parameters add information for the 1693*d870e050SAndroid Build Coastguard Worker# last added OSU provider. 1694*d870e050SAndroid Build Coastguard Worker# 1695*d870e050SAndroid Build Coastguard Worker#osu_server_uri=https://example.com/osu/ 1696*d870e050SAndroid Build Coastguard Worker#osu_friendly_name=eng:Example operator 1697*d870e050SAndroid Build Coastguard Worker#osu_friendly_name=fin:Esimerkkipalveluntarjoaja 1698*d870e050SAndroid Build Coastguard Worker#[email protected] 1699*d870e050SAndroid Build Coastguard Worker#osu_method_list=1 0 1700*d870e050SAndroid Build Coastguard Worker#osu_icon=icon32 1701*d870e050SAndroid Build Coastguard Worker#osu_icon=icon64 1702*d870e050SAndroid Build Coastguard Worker#osu_service_desc=eng:Example services 1703*d870e050SAndroid Build Coastguard Worker#osu_service_desc=fin:Esimerkkipalveluja 1704*d870e050SAndroid Build Coastguard Worker# 1705*d870e050SAndroid Build Coastguard Worker#osu_server_uri=... 1706*d870e050SAndroid Build Coastguard Worker 1707*d870e050SAndroid Build Coastguard Worker##### TESTING OPTIONS ######################################################### 1708*d870e050SAndroid Build Coastguard Worker# 1709*d870e050SAndroid Build Coastguard Worker# The options in this section are only available when the build configuration 1710*d870e050SAndroid Build Coastguard Worker# option CONFIG_TESTING_OPTIONS is set while compiling hostapd. They allow 1711*d870e050SAndroid Build Coastguard Worker# testing some scenarios that are otherwise difficult to reproduce. 1712*d870e050SAndroid Build Coastguard Worker# 1713*d870e050SAndroid Build Coastguard Worker# Ignore probe requests sent to hostapd with the given probability, must be a 1714*d870e050SAndroid Build Coastguard Worker# floating point number in the range [0, 1). 1715*d870e050SAndroid Build Coastguard Worker#ignore_probe_probability=0.0 1716*d870e050SAndroid Build Coastguard Worker# 1717*d870e050SAndroid Build Coastguard Worker# Ignore authentication frames with the given probability 1718*d870e050SAndroid Build Coastguard Worker#ignore_auth_probability=0.0 1719*d870e050SAndroid Build Coastguard Worker# 1720*d870e050SAndroid Build Coastguard Worker# Ignore association requests with the given probability 1721*d870e050SAndroid Build Coastguard Worker#ignore_assoc_probability=0.0 1722*d870e050SAndroid Build Coastguard Worker# 1723*d870e050SAndroid Build Coastguard Worker# Ignore reassociation requests with the given probability 1724*d870e050SAndroid Build Coastguard Worker#ignore_reassoc_probability=0.0 1725*d870e050SAndroid Build Coastguard Worker# 1726*d870e050SAndroid Build Coastguard Worker# Corrupt Key MIC in GTK rekey EAPOL-Key frames with the given probability 1727*d870e050SAndroid Build Coastguard Worker#corrupt_gtk_rekey_mic_probability=0.0 1728*d870e050SAndroid Build Coastguard Worker 1729*d870e050SAndroid Build Coastguard Worker##### Multiple BSSID support ################################################## 1730*d870e050SAndroid Build Coastguard Worker# 1731*d870e050SAndroid Build Coastguard Worker# Above configuration is using the default interface (wlan#, or multi-SSID VLAN 1732*d870e050SAndroid Build Coastguard Worker# interfaces). Other BSSIDs can be added by using separator 'bss' with 1733*d870e050SAndroid Build Coastguard Worker# default interface name to be allocated for the data packets of the new BSS. 1734*d870e050SAndroid Build Coastguard Worker# 1735*d870e050SAndroid Build Coastguard Worker# hostapd will generate BSSID mask based on the BSSIDs that are 1736*d870e050SAndroid Build Coastguard Worker# configured. hostapd will verify that dev_addr & MASK == dev_addr. If this is 1737*d870e050SAndroid Build Coastguard Worker# not the case, the MAC address of the radio must be changed before starting 1738*d870e050SAndroid Build Coastguard Worker# hostapd (ifconfig wlan0 hw ether <MAC addr>). If a BSSID is configured for 1739*d870e050SAndroid Build Coastguard Worker# every secondary BSS, this limitation is not applied at hostapd and other 1740*d870e050SAndroid Build Coastguard Worker# masks may be used if the driver supports them (e.g., swap the locally 1741*d870e050SAndroid Build Coastguard Worker# administered bit) 1742*d870e050SAndroid Build Coastguard Worker# 1743*d870e050SAndroid Build Coastguard Worker# BSSIDs are assigned in order to each BSS, unless an explicit BSSID is 1744*d870e050SAndroid Build Coastguard Worker# specified using the 'bssid' parameter. 1745*d870e050SAndroid Build Coastguard Worker# If an explicit BSSID is specified, it must be chosen such that it: 1746*d870e050SAndroid Build Coastguard Worker# - results in a valid MASK that covers it and the dev_addr 1747*d870e050SAndroid Build Coastguard Worker# - is not the same as the MAC address of the radio 1748*d870e050SAndroid Build Coastguard Worker# - is not the same as any other explicitly specified BSSID 1749*d870e050SAndroid Build Coastguard Worker# 1750*d870e050SAndroid Build Coastguard Worker# Not all drivers support multiple BSSes. The exact mechanism for determining 1751*d870e050SAndroid Build Coastguard Worker# the driver capabilities is driver specific. With the current (i.e., a recent 1752*d870e050SAndroid Build Coastguard Worker# kernel) drivers using nl80211, this information can be checked with "iw list" 1753*d870e050SAndroid Build Coastguard Worker# (search for "valid interface combinations"). 1754*d870e050SAndroid Build Coastguard Worker# 1755*d870e050SAndroid Build Coastguard Worker# Please note that hostapd uses some of the values configured for the first BSS 1756*d870e050SAndroid Build Coastguard Worker# as the defaults for the following BSSes. However, it is recommended that all 1757*d870e050SAndroid Build Coastguard Worker# BSSes include explicit configuration of all relevant configuration items. 1758*d870e050SAndroid Build Coastguard Worker# 1759*d870e050SAndroid Build Coastguard Worker#bss=wlan0_0 1760*d870e050SAndroid Build Coastguard Worker#ssid=test2 1761*d870e050SAndroid Build Coastguard Worker# most of the above items can be used here (apart from radio interface specific 1762*d870e050SAndroid Build Coastguard Worker# items, like channel) 1763*d870e050SAndroid Build Coastguard Worker 1764*d870e050SAndroid Build Coastguard Worker#bss=wlan0_1 1765*d870e050SAndroid Build Coastguard Worker#bssid=00:13:10:95:fe:0b 1766*d870e050SAndroid Build Coastguard Worker# ...