You are not logged in.

#1 2012-10-10 11:36:17

skp
Member
Registered: 2012-09-09
Posts: 11

[netcfg] wpa_supplicant always used ?

Hi,

I read the sources of netcfg, and there’s something I didn’t get. Why wpa_supplicant is always used even to join wep network? Isn’t it confusing?

EDIT: here’s a line to prove my saying
https://projects.archlinux.org/netcfg.g … reless#n19

Last edited by skp (2012-10-10 11:39:30)

Offline

#2 2012-10-10 13:35:30

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,541

Re: [netcfg] wpa_supplicant always used ?

Moving from Community Contributions to Networking, Server, and Protection.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2012-10-10 13:42:12

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [netcfg] wpa_supplicant always used ?

What exactly is confusing you?

Offline

#4 2012-10-10 14:04:37

skp
Member
Registered: 2012-09-09
Posts: 11

Re: [netcfg] wpa_supplicant always used ?

Well, isn’t wpa_supplicant used for WPA encrypted network? If we join a free network, as its name says, we don’t need WPA encryption at all. So that confuses me a lot.

Offline

#5 2012-10-10 14:35:04

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [netcfg] wpa_supplicant always used ?

Yes, you are right of course. No security/WEP connections are done via iwconfig (better iw). I guess the relevant section you look for must be related to this.
I can't tie both together right now, hope it helps still.

Offline

#6 2012-10-10 15:01:47

skp
Member
Registered: 2012-09-09
Posts: 11

Re: [netcfg] wpa_supplicant always used ?

Ok so does it imply that I cant’t connect free networks with iwconfig (and then with netcfg)?

Offline

#7 2012-10-10 16:18:09

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [netcfg] wpa_supplicant always used ?

skp wrote:

Well, isn’t wpa_supplicant used for WPA encrypted network?

No. wpa_supplicant is a management daemon that that handles association with wireless networks.

Although the kernel has its own code to associate to an access point, and that code can handle Open and WEP networks, it is not recommended to rely on that. For example, newer drivers do not have any code to reconnect to a network when they lost their connection - it is not the driver's or kernel's job to do that. The recommended way to use wireless networks is to let wpa_supplicant handle everything for you. Networkmanager does it, and hopefully wicd does it, too.

That said, there is no valid reason to use WEP at all.

Offline

#8 2012-10-10 16:31:21

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [netcfg] wpa_supplicant always used ?

My link above was wrong, I think I am closer here: https://projects.archlinux.org/netcfg.g … ?id=2.8.11
On #237 the no security/wep-keys are prepared from the profiles for the build $wpa_conf which skp quoted.

That is then processed by wpa_cli (#4), which can handle none/wep as well (man wpa_cli) and calls wpa_supplicant for wpa. Please correct me, if I am wrong.
@brain0: You meant "..recommended to let wpa_cli handle it", yes?

Offline

#9 2012-10-10 16:44:02

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

Re: [netcfg] wpa_supplicant always used ?

No, wpa_cli is just a front-end - wpa_supplicant does all the actual work.

Offline

#10 2012-10-10 17:10:30

skp
Member
Registered: 2012-09-09
Posts: 11

Re: [netcfg] wpa_supplicant always used ?

Actually I have an issue when I try to join an open free network. It says that the WPA Auth Association fails, but it’s a clear network, no encryption at all.

Offline

#11 2012-10-10 17:25:42

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [netcfg] wpa_supplicant always used ?

@brain0, tomk: Thanks for clarification!
For others interested: I ended up reading in the wpa_supplicant.conf which is actually great documentation and includes non/wep references, etc.


skp wrote:

Actually I have an issue when I try to join an open free network. It says that the WPA Auth Association fails, but it’s a clear network, no encryption at all.

Does it work when you associate manually?

edit: Could be something like

ip link set wlan0 down 
ip link set wlan0 up   
iw dev wlan0 scan
iw wlan0 connect YOURESSID

If that does work, post your netcfg-profile for it. If manually does not either, the actual error you get & your device/driver.

Last edited by Strike0 (2012-10-10 17:40:07)

Offline

#12 2012-10-10 17:44:55

skp
Member
Registered: 2012-09-09
Posts: 11

Re: [netcfg] wpa_supplicant always used ?

Ok, I’ll be able to test it tomorrow. I have no entry for iw, is it an alias to iwconfig?

Offline

#13 2012-10-10 17:56:43

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: [netcfg] wpa_supplicant always used ?

No, it's the successor for iwconfig (pacman -S iw). You will be able to use both still.

Offline

#14 2012-10-10 18:02:18

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [netcfg] wpa_supplicant always used ?

skp wrote:

Actually I have an issue when I try to join an open free network. It says that the WPA Auth Association fails, but it’s a clear network, no encryption at all.

The error message is misleading, netcfg always prints that.

Offline

#15 2012-10-10 18:51:02

skp
Member
Registered: 2012-09-09
Posts: 11

Re: [netcfg] wpa_supplicant always used ?

Ok so there’s still one error.

Offline

Board footer

Powered by FluxBB