iwlist, which is used in Mageia, and in wicd, has a severe disability-- namely if there are too many access points like more than 200 or so, it reports nothing.
iwlist, which is used in Mageia, and in wicd, has a severe disability--
namely if there are too many access points like more than 200 or so, it
reports nothing.
Yes, one is not supposed to used iwlist anymore. Instead of, e,g,
iwlist wlan0
use
iw dev wlan0 scan
It should work for all cards that support nl80211, for older ones that
don't, you're stuck with iwlist and you may need to rebuild it with
this patch:
http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/wireless_tools.html
-- HASM
iw has a totally diffeent output from iwlist, and is NOT a replacement
for iwlist. They also have for over 10 years had a disclaimer that you
are not to assume that iw is at all usefull for scripting as they retain
the right to totally change the output without a by-your-leave.
iw has a totally diffeent output from iwlist, and is NOT a replacement
for iwlist.
They also have for over 10 years had a disclaimer that you are not to
assume that iw is at all usefull for scripting as they retain the
right to totally change the output
And as far as i can see, no user useful wireless program uses iw,
rather than iwlist. (Please tell me I am wrong if I am and which one
uses iw).
iw has a totally diffeent output from iwlist, and is NOT a replacement
for iwlist.
Maybe, but it's scan command overcomes iwlist's limitation of the number
of access points.
I'm not advocating one or the other, and don't know the history behind either, but wireless-tools, of which iwlist is a part of, hasn't been
updated since 2007, while iw seems to have recent changes.
They also have for over 10 years had a disclaimer that you are not to
assume that iw is at all usefull for scripting as they retain the
right to totally change the output
But have they? (I don't know the answer). You can always download the source, recompile it, rename it or tuck it away in some non default
place, then use it for your scripts.
And as far as i can see, no user useful wireless program uses iw,
rather than iwlist. (Please tell me I am wrong if I am and which one
uses iw).
On my Fedora system
/etc/sysconfig/network-scripts/ifup-wireless
/etc/sysconfig/network-scripts/network-functions
use iw, while
/etc/sysconfig/network-scripts/ifdown-eth
uses iwconfig :-). Not for listing, though.
I don't run NetworkManager to give it a try (or maybe I do in an old
laptop that isn't accessible now). If you do you could try
nmcli dev wifi list
-- HASM
but wireless-tools, of which iwlist is a part of, hasn't been
updated since 2007, while iw seems to have recent changes.
Actually not correct, but also not too far out.
-rw-r----- 1 unruh unruh 62089 Nov 24 2009 iwlist.c
William Unruh <unruh@invalid.ca> writes:
https://unix.stackexchange.com/questions/407517/why-did-wireless-tools-version- 30-become-a-permanent-betabut wireless-tools, of which iwlist is a part of, hasn't been
updated since 2007, while iw seems to have recent changes.
Actually not correct, but also not too far out.
-rw-r----- 1 unruh unruh 62089 Nov 24 2009 iwlist.c
Fedora ships v29, the last official release, which is from 2007. Ubuntu ships v30-beta, from 2009, which never became official.
This page sums it up:
Curiously, one of the comments to the first answer claims:
The reason Ubuntu (and pretty much all distros I know of) provide
version 30 beta is because that version fixes a critical bug that was
in version 29, which caused the iwconfig to fail if there were too
many networks in the area due to a buffer overflow. The Github repo
for wireless tools does not show this, but here's the relevant patch
from Arch
Thus they claim that fixes your problem, though I guess it does not.
William Unruh <unruh@invalid.ca> writes:
https://unix.stackexchange.com/questions/407517/why-did-wireless-tools-version- 30-become-a-permanent-betabut wireless-tools, of which iwlist is a part of, hasn't been
updated since 2007, while iw seems to have recent changes.
Actually not correct, but also not too far out.
-rw-r----- 1 unruh unruh 62089 Nov 24 2009 iwlist.c
Fedora ships v29, the last official release, which is from 2007. Ubuntu ships v30-beta, from 2009, which never became official.
This page sums it up:
Curiously, one of the comments to the first answer claims:
The reason Ubuntu (and pretty much all distros I know of) provide
version 30 beta is because that version fixes a critical bug that was
in version 29, which caused the iwconfig to fail if there were too
many networks in the area due to a buffer overflow. The Github repo
for wireless tools does not show this, but here's the relevant patch
from Arch
Thus they claim that fixes your problem, though I guess it does not.
-- HASM
Does anyone know which it is? Ie, is the buffer full of information and iwlist just does not print it out, or is that that the buffer is
actually empty, because the ioctl refused to put in any information.
Now, what I am using is ctl80211 and mac80211 (not the old Wireless extention) modules. Is it they that are misbehaving?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 212:34:40 |
Calls: | 6,619 |
Calls today: | 1 |
Files: | 12,168 |
Messages: | 5,317,375 |