Discussion:
ifconfig list scan and card down
(too old to reply)
Arnaud Degroote
2014-01-06 21:41:48 UTC
Permalink
While trying to port rsu(4) from OpenBSD, I was wondering why ifconfig
list scan does not work at all with my card, and I finally realized that
ifconfig list scan just fails with a silly error message when the card
is not up ("ifconfig: SIOCS80211: Invalid argument") (see

http://nxr.netbsd.org/xref/src/sys/net80211/ieee80211_ioctl.c#ieee80211_setupscan

for code reference).

So I propose that 'ifconfig list scan' automatically up the card if it
is down. See the attached patch. Any objection ?

At minima, we must return a more useful error message to the caller.
Christos Zoulas
2014-01-06 21:26:59 UTC
Permalink
-=-=-=-=-=-
-=-=-=-=-=-
While trying to port rsu(4) from OpenBSD, I was wondering why ifconfig
list scan does not work at all with my card, and I finally realized that
ifconfig list scan just fails with a silly error message when the card
is not up ("ifconfig: SIOCS80211: Invalid argument") (see
http://nxr.netbsd.org/xref/src/sys/net80211/ieee80211_ioctl.c#ieee80211_setupscan
for code reference).
So I propose that 'ifconfig list scan' automatically up the card if it
is down. See the attached patch. Any objection ?
At minima, we must return a more useful error message to the caller.
I prefer a message.

christos


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...