You are not logged in.
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
Moving from Community Contributions to Networking, Server, and Protection.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
What exactly is confusing you?
Offline
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
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
Ok so does it imply that I cant’t connect free networks with iwconfig (and then with netcfg)?
Offline
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
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
No, wpa_cli is just a front-end - wpa_supplicant does all the actual work.
Offline
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
@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.
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
Ok, I’ll be able to test it tomorrow. I have no entry for iw, is it an alias to iwconfig?
Offline
No, it's the successor for iwconfig (pacman -S iw). You will be able to use both still.
Offline
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
Ok so there’s still one error.
Offline