You need to bridge the interface which is having an IP with the wifi
module.
1) hostapd -i wlan0 /etc/hostapd.conf -B
2) ifconfig wlan0 up
3) ifconfig eth0 0.0.0.0
4) ifconfig wlan0 0.0.0.0
5) brctl addbr br0
6) brctl addif br0 eth0
7) brctl addif br0 wlan1s0
8) brctl show
9) ifconfig br0 up
10) udhcpc -i br0
Test on L4.9.88-2.0.0_ga kernel.