[LOR] wi0 in hostap mode

Tai-hwa Liang avatar at mmlab.cse.yzu.edu.tw
Mon Sep 12 18:40:02 PDT 2005

Steps to reproduce(-CURRENT cvsup'ed on Sep-12-2005):

1. Configure if_wi as a hostap:

 	wi> ifconfig wi0 mediaopt hostap channel 11 ssid aptest up

2. Use another station to associate with aforementioned hostap:

 	ath> ifconfig ath0 ssid aptest up

3. Send some frames from the station to the hostap:

 	ath> ping -c 5

4. Do nothing on both hosts, waiting for following message appears on
    wi's console:

lock order reversal
  1st 0xc16d68b4 wi0 (802.11 scangen) @ /usr/src/sys/modules/wlan/../../net80211/ieee80211_node.c:1754
  2nd 0xc16d6b68 wi0 (network driver) @ /usr/src/sys/modules/wi/../../dev/wi/if_wi.c:888
KDB: stack backtrace:
kdb_backtrace(ffffffff,c0664b48,c0665228,c0632ee4,c06a2db8) at kdb_backtrace+0x29
witness_checkorder(c16d6b68,9,c176dbaa,378) at witness_checkorder+0x481
_mtx_lock_flags(c16d6b68,0,c176dbaa,378,cc7b1b98) at _mtx_lock_flags+0x1e
wi_start(c140e000) at wi_start+0x35
if_start(c140e000,c13918dd,c130fc30,c140e000,2) at if_start+0x53
ieee80211_send_nulldata(c1391800,c16d6804,0,c179c0c8,738) at ieee80211_send_nulldata+0x130
ieee80211_timeout_stations(c16d6800,c140e000,7,0,cc7b1ca4) at ieee80211_timeout_stations+0x373
ieee80211_watchdog(c16d6004) at ieee80211_watchdog+0xb0
if_slowtimo(0) at if_slowtimo+0x4a
softclock(0) at softclock+0x1e7
ithread_loop(c1106400,cc7b1d38,c0657a00,0,c0606b1c) at ithread_loop+0x100
fork_exit(c04c8928,c1106400,cc7b1d38) at fork_exit+0x61
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xcc7b1d6c, ebp = 0 ---

More information about the freebsd-current mailing list