-
Notifications
You must be signed in to change notification settings - Fork 47
hostapd.conf
The following files are tested in this order and the first one that is found will be used to configure the hostapd
daemon:
/data/etc/hostapd.conf
/boot/hostapd.conf
/etc/hostapd.conf
The file is not present by default and should be created by the user, if hostapd
is needed.
If the file is present, the hostapd daemon will be started to enable the Wi-Fi access point on your system.
Note that hostapd
package is not enabled by default in thingOS. You'll need to enable it in your configurations to have this functionality.
See also captive-portal.conf.
The file format and available options can be seen here.
The file is first preprocessed and any environment variables of the form $var
or ${var}
are replaced. You can use any variables exported by /etc/init.d/base
, which include all os.conf variables and others such as HOSTNAME
, BOARD_SN
and BOARD_NAME
.
Following is a simple example of a hostapd configuration that will create an access point with network name myssid
, key 12345678
and WPA2 encryption, on channel 1:
ssid=${OS_PREFIX}-${BOARD_SN}
wpa_passphrase=12345678
wpa=2
wpa_key_mgmt=WPA-PSK
interface=${OS_AP}
channel=1
driver=nl80211
hw_mode=g
ieee80211n=1
ieee80211ac=1
- bluetooth.conf
- captive-portal.conf
- cpufreq.conf
- date.conf
- dnsmasq.conf
- docker-compose.yml
- dtoverlays
- dyndns-update.sh
- environment
- firewall.sh
- fstab.user
- hostapd.conf
- ifalias.conf
- localtime
- modprobe.conf
- modules
- mongodb.conf
- netwatch.conf
- ntp.conf
- os.conf
- proftpd.conf
- redis.conf
- smb.conf
- ssh/config
- ssh/sshd_config
- ssl/domain
- ssl/email
- static_ip.conf
- sysctl.conf
- toemmc.conf
- version
- watchdog.conf
- wpa_supplicant.conf