> 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