peebles / rpi3-wifi-station-ap-stretch

Version that works for Stretch
112 stars 31 forks source link

WLAN0 Disconnects when HostAPD is started #11

Open frizzokenall opened 5 years ago

frizzokenall commented 5 years ago

Hello,

When hostapd is started the wlan0 device is disconnected from the wifi router that i am trying to repeat. I am wondering if you have seen anything like this or have any suggestions. For examples i can ping the devices that are connected to my pi's network but if i try to ping the router than i don't get a response but do get a response if i prevent hostapd from starting at boot.

frizzokenall commented 5 years ago

I found the fix to my issue. The reason IPV4LL was never called so I replaced if [ "$reason" = "IPV4LL" ]; then wpa_supplicant -B -iwlan0 -f/var/log/wpa_supplicant.log -c/etc/wpa_supplicant/wpa_supplicant.conf fi

with

if [ "$reason" = "EXPIRE" -o "$reason" = "NOCARRIER" ]; then wpa_supplicant -B -iwlan0 -f/var/log/wpa_supplicant.log -c/etc/wpa_supplicant/wpa_supplicant.conf fi