peebles/rpi3-wifi-station-ap-stretch

what's /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant for?

rudiratlos opened this issue · 0 comments

Hi, thank you very much for this approach. Basically it works:
I'm wondering for what purpose 10-wpa_supplicant is for ?
I've added some echos to that hook, just to find out what's going on.
There is no situation, where wlan0 gets the status IPV4LL, only uap0 but here we don't need a wpa_supplicant action.

----- snip
......
then

echo interface:$interface if_up:$if_up if_down:$if_down profile:$profile interface_oder:$interface_order >> /tmp/wpa_supplicant_hook.log
echo wpa_supplicant_conf:$wpa_supplicant_conf ifwireless:$ifwireless reason:$reason >> /tmp/wpa_supplicant_hook.log
echo "\n" >> /tmp/wpa_supplicant_hook.log

if [ "$reason" = "IPV4LL" ]; then
----- snip

output after a rebbot is:

interface:wlan0 if_up:false if_down:false profile: interface_oder:lo eth0 wlan0 uap0
wpa_supplicant_conf:/etc/wpa_supplicant/wpa_supplicant-wlan0.conf ifwireless:1 reason:PREINIT

interface:wlan0 if_up:false if_down:true profile: interface_oder:lo eth0 wlan0 uap0
wpa_supplicant_conf:/etc/wpa_supplicant/wpa_supplicant-wlan0.conf ifwireless:1 reason:NOCARRIER

interface:uap0 if_up:false if_down:false profile: interface_oder:lo eth0 wlan0 uap0
wpa_supplicant_conf:/etc/wpa_supplicant.conf ifwireless:1 reason:PREINIT

interface:uap0 if_up:false if_down:true profile: interface_oder:lo eth0 wlan0 uap0
wpa_supplicant_conf:/etc/wpa_supplicant.conf ifwireless:1 reason:NOCARRIER

interface:wlan0 if_up:false if_down:false profile: interface_oder:eth0 wlan0 uap0 lo
wpa_supplicant_conf:/etc/wpa_supplicant/wpa_supplicant-wlan0.conf ifwireless:1 reason:CARRIER

interface:uap0 if_up:false if_down:false profile: interface_oder:eth0 wlan0 uap0 lo
wpa_supplicant_conf:/etc/wpa_supplicant.conf ifwireless:1 reason:CARRIER

interface:wlan0 if_up:false if_down:true profile: interface_oder:eth0 wlan0 uap0 lo
wpa_supplicant_conf:/etc/wpa_supplicant/wpa_supplicant-wlan0.conf ifwireless:1 reason:NOCARRIER

interface:uap0 if_up:false if_down:true profile: interface_oder:uap0 eth0 wlan0 lo
wpa_supplicant_conf:/etc/wpa_supplicant.conf ifwireless:1 reason:NOCARRIER

interface:uap0 if_up:false if_down:false profile: interface_oder:eth0 wlan0 uap0 lo
wpa_supplicant_conf:/etc/wpa_supplicant.conf ifwireless:1 reason:CARRIER

interface:uap0 if_up:true if_down:false profile: interface_oder:eth0 uap0 wlan0 lo
wpa_supplicant_conf:/etc/wpa_supplicant.conf ifwireless:1 reason:IPV4LL