Arnaud Degroote
2014-01-06 21:41:48 UTC
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.
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.