> I noticed that, if I use wiconfig before ifconfig, like
> # wiconfig -i wi0 -p 1
> # wiconfig -i wi0 -n 0100
> # ifconfig wi0 up
> kernel will display "wi0: device timeout" onto the console.
> This is because, on invocation of /usr/sbin/wiconfig, IFF_RUNNING
> is raised prior to call to wi_enable() (this is done in wi_init()
> called via wi_setdef()). I'm not sure how to fix this.
wi_disable() and wi_stop() are inconsistent about use of IFF_RUNNING.
if you "ifconfig wi0 up", then "down" then "up", interrupts will be
chewed up. I can make quickhack fixes but I'm not sure if that
is the right way to fix.
itojun