First, I have test with a bridge without ap, after I have a bridge with ap0 I have the same problem. I can make a test without bridge…
My /etc/network/interfaces for the bridge :
auto br0
iface br0 inet static
#auto wan
#auto lan3
#iface lan3 inet static
#iface wan inet static
address 192.168.2.1
netmask 255.255.255.0
bridge_ports lan1 lan2 lan3 lan0 ap0
# bridge_ports lan0 ap0 wan lan2 lan3
bridge_fd 5
bridge_stp no
pre-up /home/root/wifi/wifi.sh
up /etc/init.d/firewall start
And this is the end of your wifi.sh
if [[ $? != "0" ]]
then
echo "Error, device no available, ap0"
else
echo "Done, all good, ready to lauch hostapd"
sleep 2
hostapd -dd /etc/hostapd/hostapd.conf &
sleep 20
#ip addr add 192.168.3.1/24 dev ap0
#sleep 20
#systemctl restart isc-dhcp-server
#sleep 20
#hostapd -dd /etc/hostapd/hostapd.conf
fi
When I see this file, I remenber I have do test without bridge…