tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ifconfig list scan and card down



In article <20140106214148.GA22473%xena.home@localhost>,
Arnaud Degroote  <degroote%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>-=-=-=-=-=-
>
>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



Home | Main Index | Thread Index | Old Index