You are not logged in.
I was trying to get my wireless to connect on boot. I tried what is recommended here and here but I was get getting "deauthenticating by choice (reason=3)" in dmesg.
So I tried to manually run wpa_supplicant and dhcpcd but again same problem. However I got more feedback and what it looks like is happening is that dhcpcd makes a call to wpa_supplicant itself so if it is already been called it causes some sort of authentication/deauthentication loop. So I tried just running dhcpcd and voila everything connects and we're good to go.
So to get it to work on boot I just did:
# systemctl enable dhcpcd@wlan0
where wlan0=my wireless device
Nothing in dhcpcd.conf indicates to me that it should call wpa_supplicant so I'm curious as to why this happens. My wireless card uses ath9k if that is of any help.
Offline
Have a look at dhcpcd(8) -> DESCRIPTION -> Hooking into events.
Offline
Thanks tomk! Don't know how I didn't see that.
I managed to solve the issue by properly configuring my wpa_supplicant.conf as well. Initially it only had a network block once I added ctrl_interface=... and update_config=1 I was able to use this network-wireless script.
Offline
But... you already had it going with
systemctl enable dhcpcd@wlan0
didn't you?
Besides, that "script" (actually a service file) also includes a redundant wpa_supplicant call before the dhcpcd call.
Offline
You're correct it is working with just the dhcpcd service, I was just giving an update that the process laid out in the wiki will work if you have the additional lines in wpa_supplicant.conf.
Offline