You are not logged in.

#1 2010-10-06 10:24:51

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Wireless mess in GNU/Linux

I haven't been messing around with wireless on Linux since I used to hang on Fedora where it worked out of the box. Since arch install...I have to....which is a good thing. smile
But I'm a bit confused on how things work...
First we used to have wireless-tools (iw*) which never worked for me (iwl3945 driver), then wpa_supplicant for which I'm not certain how it really works.
AFAIK, wpa_supplicant is user mode back end for managing wireless networks on which every front end app. like wpa_cli/gui, nm-applet, wicd relys on...rigt?
And it talks directly to wireless driver. Great...now what on earth is "wext" in -D flag?

man wpa_supplicant
...
wext   Linux wireless extensions (generic).
...

That tells me everything!? So wpa_supp is using both iwl3945 and wext (which is deprecated according to kernel.org)? I'm confused on how wireless stack on Linux looks like.
More confusion...what is cfg80211 then? Isn't that supposed to be layer above wireless driver?
Why don't we have ONE front end for managing ALL network connections?
Why is it called wpa_supplicant when it was made to manage all types of wireless networks?

Offline

#2 2010-10-06 10:39:37

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Wireless mess in GNU/Linux

Dakt,

Why don't we have ONE front end for managing ALL network connections?

We have wicd. You shouldn't have to mess with wpa_supplicant.

http://wiki.archlinux.org/index.php/Wicd

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2010-10-06 11:02:24

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: Wireless mess in GNU/Linux

archlinux has netcfg which is imo, simple, elegant, and actually works smile

but that is just command line.

Offline

#4 2010-10-06 11:29:27

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Wireless mess in GNU/Linux

You could have picked a less trollish topic title smile.

You have an elaborate opening post but it's not clear whether you have a problem or are simply venting about the multitude of tools. I suggest you talk to the wpa_supplicant devs about a name change if you really think that is warranted wink.

Mac80211 is the wireless network stack in the kernel, on which drivers build (IPW2200 drivers use the old wireless stack for example afaik, IPW3945, IPW4965 and up use the mac80211 stack exclusively). For more info on iwconfig and the likes you can read up on the wireless-tools utilities collection. Wpa_supplicant is exclusively used for authentication afaik. Wireless-tools is still around, but the authentication functions it had have been largely (if not completely) replaced by wpa_supplicant (which can also do WEP). You need iwconfig to set stuff like bitrate, channel, etc., manually.

Linux is about modularity, and the wireless landscape on Linux reflects that. You can hate it, but that won't make it go away.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-10-06 12:39:37

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

Re: Wireless mess in GNU/Linux

dakt wrote:

wext (which is deprecated according to kernel.org)

Link please - hadn't heard about that myself.

Offline

#6 2010-10-06 12:55:35

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: Wireless mess in GNU/Linux

eldragon wrote:

archlinux has netcfg which is imo, simple, elegant, and actually works smile

but that is just command line.

That's one of the problems...every distribution has it's own front end. It would be so much simpler to have one network manager, one configuration file.

Offline

#7 2010-10-06 12:58:33

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Wireless mess in GNU/Linux

From wireless.kernel.org:

Some discussion surrounding when to drop support for hardware that do not support cfg80211. There are still a significant number of current drivers (about half dozen) that need to be converted before wext can be removed. Now listed on cfg80211-conversion . wext will be put in feature-removal and marked as deprecated.

Offline

#8 2010-10-06 13:10:28

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: Wireless mess in GNU/Linux

.:B:. wrote:

You could have picked a less trollish topic title smile.

Naah, I think it suits the case.


You have an elaborate opening post but it's not clear whether you have a problem or are simply venting about the multitude of tools.

I'm venting smile


I suggest you talk to the wpa_supplicant devs about a name change if you really think that is warranted wink.

let's just call it...I don't know...wld. Not sure if it's very accurate but much more descriptive then wpa_*. At first, I taught it's something dedicated only to WPA protocol.


Linux is about modularity, and the wireless landscape on Linux reflects that. You can hate it, but that won't make it go away.

I love modularity, I really do...but more then that I like well established, well documented, clean system. I'm still confused about wext vs. cfg80211 and how it relates to wl driver and wpa_supplicant.

..maybe I'm having a bad day?

Offline

#9 2010-10-06 13:12:36

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: Wireless mess in GNU/Linux

tomk wrote:
dakt wrote:

wext (which is deprecated according to kernel.org)

Link please - hadn't heard about that myself.

http://wireless.kernel.org/en/developer … Extensions

Offline

#10 2010-10-06 13:20:41

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: Wireless mess in GNU/Linux

falconindy wrote:

From wireless.kernel.org:

Some discussion surrounding when to drop support for hardware that do not support cfg80211. There are still a significant number of current drivers (about half dozen) that need to be converted before wext can be removed. Now listed on cfg80211-conversion . wext will be put in feature-removal and marked as deprecated.


Good find. Thanks!


So...this is the picture?

+-------------------------+-----------------------------user space------------
   nm/wicd/wpa_cli
+-------------------------+
  wpa_supplicant/wl-tools/ioctl()
+--------+---------------+---------------------------kernel space------------
   wext        cfg80211   
+--------+---------------+
   wl driver
+-------------------------+--------------------------------------------------

Offline

#11 2010-10-06 13:24:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Wireless mess in GNU/Linux

Wext is a driver/interface wpa_supplicant uses afaik. That's all I can say. There are plenty of things marked 'deprecated' in the kernel, I understand it can be confusing. It usually means though that that stuff will be removed somewhere in the future so new programs should not make use of it, and existing programs should use the new interface/API/whatever.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2010-10-06 15:03:19

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

Re: Wireless mess in GNU/Linux

Mektub wrote:

Dakt,

Why don't we have ONE front end for managing ALL network connections?

We have wicd. You shouldn't have to mess with wpa_supplicant.

http://wiki.archlinux.org/index.php/Wicd

Mektub

The wicd dev uses NM in the meanwhile and looks for maintainers. I have lots of issues with wicd, can't recommend it.

Offline

#13 2010-10-13 21:05:39

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Wireless mess in GNU/Linux

dakt wrote:

Why don't we have ONE front end for managing ALL network connections?

We DO have one and it's called network-manager-applet.


I need real, proper pen and paper for this.

Offline

#14 2010-10-18 14:08:21

Heller_Barde
Member
Registered: 2008-04-01
Posts: 245

Re: Wireless mess in GNU/Linux

on a related note: why does it take significantly longer to scan for WLANs in my ArchLinux compared to my Windows? Also to connect to a Network after it found it. If anyone can tell me where the bottleneck seems to lie, I would much appreciate it, because it's driving me insane sometimes. smile (I have an Intel iwl5300 or something like that)

there seem to be a few possibilities:

Binary Firmware Blob from Intel (although I would assume that this is the same in Windows.)
Kernel Driver from Intel (fixable, but I probably don't have the skills for it)
wext interface (I don't know whether this is even involved *shrug*)
wpa_supplicant
dhcpcd

those last two I can try out on my own. but as far as I can remember dhcpcd did provide a significant speed barrier, but not all of the speed loss.

now where is the relevance of this post? I don't really expect an answer here, but it illustrates rather nicely how people in general are rather unaware of the state of things. Because with well know topics, I would have found my answer a long time ago on the interwebs.

cheers
Barde.

Offline

#15 2010-10-18 16:35:19

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Wireless mess in GNU/Linux

I suggest you open a separate topic for your issue smile.

Last edited by .:B:. (2010-10-19 09:19:10)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#16 2010-10-19 05:26:37

Heller_Barde
Member
Registered: 2008-04-01
Posts: 245

Re: Wireless mess in GNU/Linux

.:B:. wrote:

I suggest you open a separate topic for your issue instead of hijacking this one smile.

fair enough, I probably drifted off too far. But I didn't really post to get an answer to my (non-)problem. I wanted to comment on $THREAD_TITLE and I thought this would illustrate it nicely. Apparently I overdid it smile

cheers
Barde

Offline

#17 2010-10-19 07:16:36

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: Wireless mess in GNU/Linux

PUE wrote:

The wicd dev uses NM in the meanwhile and looks for maintainers. I have lots of issues with wicd, can't recommend it.

Then you know more than I do about myself. I'm the maintainer of the wicd package and I don't look for another maintainer, where have you read that?
About the issues, wicd runs perfect on my computer. Can you tell me in a new topic what problems you have?

Offline

#18 2010-10-19 07:20:04

Heller_Barde
Member
Registered: 2008-04-01
Posts: 245

Re: Wireless mess in GNU/Linux

ise wrote:

I'm the maintainer of the wicd package and I don't look for another maintainer, where have you read that?

I think he meant the dev that develops wicd itself, not the package.

Barde

Offline

#19 2010-10-19 09:03:47

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Wireless mess in GNU/Linux

If you want to be even more confused, wpa_supplicant can be used for wired networks, too. I'm having to use it for the network at university (802.1x authentication)

Offline

#20 2010-10-19 09:18:46

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Wireless mess in GNU/Linux

Heller_Barde wrote:
.:B:. wrote:

I suggest you open a separate topic for your issue instead of hijacking this one smile.

fair enough, I probably drifted off too far. But I didn't really post to get an answer to my (non-)problem. I wanted to comment on $THREAD_TITLE and I thought this would illustrate it nicely. Apparently I overdid it smile

cheers
Barde

My tone might have been a bit harsh, but that was not my intention (the tone, that is).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#21 2010-10-19 15:01:46

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: Wireless mess in GNU/Linux

Barrucadu wrote:

If you want to be even more confused, wpa_supplicant can be used for wired networks, too. I'm having to use it for the network at university (802.1x authentication)

First word.
Anyway, I figured whole wireless stack. I'm might write a short description of it when I get some free time.

Offline

#22 2010-10-19 17:00:33

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,563

Re: Wireless mess in GNU/Linux

I do agree that the *BSD way (in my small amount of experience with it) of using ifconfig pretty much as the sole tool is enjoyable.

Offline

#23 2010-10-19 19:46:21

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: Wireless mess in GNU/Linux

Ranguvar wrote:

I do agree that the *BSD way (in my small amount of experience with it) of using ifconfig pretty much as the sole tool is enjoyable.

Yeah, BSD is closer to UNIX philosophy...well it is Unix.

ifconfig wlan0 scan
ifconfig wlan0 dhcp

Offline

#24 2010-10-21 22:19:38

orlandu63
Member
Registered: 2010-03-29
Posts: 29

Re: Wireless mess in GNU/Linux

eldragon wrote:

archlinux has netcfg which is imo, simple, elegant, and actually works smile

but that is just command line.

I find wicd to be _way_ more convenient for detecting, connecting to, and saving wireless networks. It's essentially netcfg with an optional GUI. I don't see any reason to not use it over netcfg other than in the case that the user is mostly dealing with wired connections and when working in a low-memory environment: wicd is overkill for managing wired networks (well, unless you have multiple wired networks or something) and the python-based daemon consumes a sizable amount of memory (around 12M). If you're seeking a portable, convenient network manager, give wicd a try.

Offline

#25 2010-10-21 22:38:58

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: Wireless mess in GNU/Linux

cnetworkmanager brings network-manager to the CLI, it's simple without the problems the GUI apps have (scanning, connecting to an hidden WPA2 network)


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

Board footer

Powered by FluxBB