dhclient with if_wi&wep

M. Warner Losh imp at bsdimp.com
Sun Oct 9 19:59:31 PDT 2005


In message: <0510091447540.81426 at www.mmlab.cse.yzu.edu.tw>
            Tai-hwa Liang <avatar at mmlab.cse.yzu.edu.tw> writes:
: On Sun, 9 Oct 2005, Norikatsu Shigemura wrote:
: > 	dhclient with if_wi&WEP will freeze on 7-current.
: >
: > 	I am using following if_wi and WEP.
: [...]
: > Oct  8 22:01:08 pelsia kernel: <wi0: timeout in wi_cmd 0x0002; event status 0x8008
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_cmd 0x0000; event status 0x8008
: > Oct  8 22:01:08 pelsia kernel: wi0: wi_cmd: busy bit won't clear.
: > Oct  8 22:01:08 pelsia kernel: wi0: init failed
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_seek to fc00/0
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_seek to fc81/0
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_seek to fc85/0
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_seek to fc2a/0
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_seek to fc28/0
: > Oct  8 22:01:08 pelsia kernel: wi0: timeout in wi_seek to fc80/0
: > Oct  8 22:01:08 pelsia kernel: wi0: failed to allocate 2372 bytes on NIC
: > Oct  8 22:01:08 pelsia kernel: wi0: tx buffer allocation failed (error 12)
: > Oct  8 22:01:08 pelsia kernel: wi0: interface not running
: [...]
: 
:    Sometimes I run into this whilst running "ifconfig wi0 up" w/o if_wi.ko
: loaded; that is, the "busy bit won't clear, init failed" happens to my
: R40(builtin wi miniPCI) regardless of whether or not the WEP is enabled.
: 
:    It looks to me that the firmware doesn't ack. properly at that moment
: (unfortunately I have no idea about how to fix this); however, the second
: retry("kldunload if_wi" then "ifconfig wi0 up" again) works for me.

ifconfig wi0 down; ifconfig wi0 up causes wi_stop and wi_init to be
called, which does a pretty good job at resetting the card.  It does
everything except a COR reset to the card, which is rarely (but
sometimes) needed to unwedge the card.

Warner



More information about the freebsd-current mailing list