Here is a printout of /usr/lib/systemd/system/hostapd@.service:
[Unit]
Description=Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator (%I)
After=network.target
BindsTo=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
PIDFile=/run/hostapd.%i.pid
Restart=on-failure
RestartSec=2
EnvironmentFile=-/etc/default/hostapd
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.%i.pid $DAEMON_OPTS /etc/hostapd/%i.conf
[Install]
WantedBy=multi-user.target sys-subsystem-net-devices-%i.device
hostapd@wlan0.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator (wlan0)
Loaded: loaded (/lib/systemd/system/hostapd@.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-09-03 16:47:16 MDT; 17min ago
Main PID: 2336 (hostapd)
Tasks: 1 (limit: 3839)
CGroup: /system.slice/system-hostapd.slice/hostapd@wlan0.service
└─2336 /usr/sbin/hostapd -B -P /run/hostapd.wlan0.pid /etc/hostapd/wlan0.conf
Sep 03 16:47:16 rachel hostapd[2334]: Configuration file: /etc/hostapd/wlan0.conf
Sep 03 16:47:16 rachel hostapd[2334]: wlan0: Could not connect to kernel driver
Sep 03 16:47:16 rachel hostapd[2334]: Using interface wlan0 with hwaddr e4:5f:01:39:37:d7 and ssid “RPi-5g”
Sep 03 16:47:16 rachel hostapd[2334]: wlan0: interface state UNINITIALIZED->ENABLED
Sep 03 16:47:16 rachel hostapd[2334]: wlan0: AP-ENABLED
Sep 03 16:47:16 rachel systemd[1]: Started Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator (wlan0).
Sep 03 16:54:56 rachel hostapd[2336]: wlan0: STA 24:92:0e:25:3e:cc IEEE 802.11: associated
Sep 03 16:54:56 rachel hostapd[2336]: wlan0: STA 24:92:0e:25:3e:cc RADIUS: starting accounting session DB017C3014CFB1EA
Sep 03 17:01:34 rachel hostapd[2336]: wlan0: STA 24:92:0e:25:3e:cc IEEE 802.11: disassociated
Sep 03 17:01:34 rachel hostapd[2336]: wlan0: STA 24:92:0e:25:3e:cc IEEE 802.11: disassociated
~
hostapd@wlan1.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator (wlan1)
Loaded: loaded (/lib/systemd/system/hostapd@.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-09-03 16:47:22 MDT; 18min ago
Main PID: 2349 (hostapd)
Tasks: 1 (limit: 3839)
CGroup: /system.slice/system-hostapd.slice/hostapd@wlan1.service
└─2349 /usr/sbin/hostapd -B -P /run/hostapd.wlan1.pid /etc/hostapd/wlan1.conf
Sep 03 16:48:51 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: disassociated
Sep 03 17:01:42 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: associated
Sep 03 17:01:42 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc RADIUS: starting accounting session 8DAC590D98A74154
Sep 03 17:01:42 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: disassociated
Sep 03 17:01:42 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: associated
Sep 03 17:01:42 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc RADIUS: starting accounting session 8D196CFEAF29043C
Sep 03 17:02:18 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: disassociated
Sep 03 17:02:21 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: associated
Sep 03 17:02:21 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc RADIUS: starting accounting session 0214FE16C6DC1573
Sep 03 17:02:58 rachel hostapd[2349]: wlan1: STA 24:92:0e:25:3e:cc IEEE 802.11: disassociated
iwconfig:
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11 Mode:Master Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
wlan1 IEEE 802.11bg ESSID:“RPi-2g” Nickname:“WIFI@REALTEK”
Mode:Master Frequency:2.412 GHz Access Point: 98:48:27:E1:7E:38
Bit Rate:54 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=1/100 Signal level=1/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
/etc/default/hostapd :
DAEMON_CONF="/etc/hostapd/hostapd.conf" < — This the EnvironmentFile referenced by hostapd@.service ---- Why no %i. before conf?
~h