I spend the whole day to understand how to use the Raspberry (1 B+) as access point with the awus036nha with scratch, following this guide, Setting up a Raspberry Pi as an access point in a standalone network (NAT), but can't start hostapd after boot, wpa_supplicant is disabled:
sudo nano /etc/dhcpcd.conf
.(blablabla)
.
.
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
interface wlan0
static ip_address=192.168.2.1/24
nohook wpa_supplicant
I have noticed that I need to kill hostapd after boot with
sudo killall hostapd ,
and then restart again to make it works with
sudo hostapd /etc/hostapd/hostapd.conf
and with this, everything works...
but the auto start not, I've already added at /etc/default/hostapd
DAEMON_CONF="/etc/hostapd/hostapd.conf"
and did an
sudo apt-get update
sudo apt-get upgrade
Any suggestion?
EDIT: doing
sudo systemctl enable hostapd
pi@raspberrypi:~ $ sudo systemctl status hostapd
hostapd.service - LSB: Advanced IEEE 802.11 management d
Loaded: loaded (/etc/init.d/hostapd; generated; vendor
Active: active (running) since Sun 2018-08-05 14:34:26
Docs: man:systemd-sysv-generator(8)
Process: 328 ExecStart=/etc/init.d/hostapd start (code=e
CGroup: /system.slice/hostapd.service
└─466 /usr/sbin/hostapd -B -P /run/hostapd.pid
ago 05 14:34:18 raspberrypi systemd[1]: Starting LSB: Adva
ago 05 14:34:26 raspberrypi hostapd[328]: Starting advance
ago 05 14:34:26 raspberrypi systemd[1]: Started LSB: Advan
lines 1-11/11 (END)...skipping...
● hostapd.service - LSB: Advanced IEEE 802.11 management daemon
Loaded: loaded (/etc/init.d/hostapd; generated; vendor preset: enabled)
Active: active (running) since Sun 2018-08-05 14:34:26 CEST; 2min 28s ago
Docs: man:systemd-sysv-generator(8)
Process: 328 ExecStart=/etc/init.d/hostapd start (code=exited,
status=0/SUCCESS)
CGroup: /system.slice/hostapd.service
└─466 /usr/sbin/hostapd -B -P /run/hostapd.pid
/etc/hostapd/hostapd.conf
ago 05 14:34:18 raspberrypi systemd[1]: Starting LSB: Advanced IEEE 802.11 m
management daemon...
ago 05 14:34:26 raspberrypi hostapd[328]: Starting advanced IEEE 802.11
management: hostapd.
ago 05 14:34:26 raspberrypi systemd[1]: Started LSB: Advanced IEEE 802.11
management daemon.
EDIT2:
sudo nano /etc/init.d/hostapd
....(blabla)...
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON_SBIN=/usr/sbin/hostapd
DAEMON_DEFS=/etc/default/hostapd
DAEMON_CONF=
NAME=hostapd
...