You are not logged in.

#1 2013-08-30 20:30:55

donuon
Member
Registered: 2013-08-28
Posts: 42

dhcpcd calls wpa_supplicant?

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

#2 2013-08-30 21:49:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: dhcpcd calls wpa_supplicant?

Have a look at dhcpcd(8) -> DESCRIPTION -> Hooking into events.

Offline

#3 2013-08-31 15:27:35

donuon
Member
Registered: 2013-08-28
Posts: 42

Re: dhcpcd calls wpa_supplicant?

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

#4 2013-08-31 16:56:19

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: dhcpcd calls wpa_supplicant?

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

#5 2013-08-31 17:23:17

donuon
Member
Registered: 2013-08-28
Posts: 42

Re: dhcpcd calls wpa_supplicant?

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

Board footer

Powered by FluxBB