bwi0: bwi_init_statechg: error 12 on MAC init

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Fri, 6 Jan 2012 20:07:17 +0000
This is on r228936M amd64
(the only modification is 9.9 patch
in /usr/src/sys/conf/newvers.h)
However, I've never used this pccard before.

********************************************************
1. On inserting the card:
********************************************************

# pciconf -lv
bwi0_at_pci0:3:0:0:        class=0x028000 card=0x00481737 chip=0x431814e4 rev=0x02
hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller'
    class      = network

# dmesg
bwi0: <Broadcom BCM4318 802.11b/g Wireless Lan> mem 0xcc502000-0xcc503fff irq 20
 at device 0.0 on cardbus0
bwi0: BBP: id 0x4318, rev 0x2, pkg 2
bwi0: MAC: rev 9
bwi0: PHY: type 2, rev 7, ver 3
bwi0: RF: manu 0x17f, type 0x2050, rev 8
bwi0: invalid antenna gain in sprom

# ifconfig -a
bwi0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:18:39:c7:71:21
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier

********************************************************
2. After creating wlan device:

# ifconfig wlan create wlandev bwi0 inet 192.168.0.102

********************************************************

# dmesg

wlan0: Ethernet address: 00:18:39:c7:71:21
Sleeping on "fwload" with the following non-sleepable locks held:
exclusive sleep mutex bwi0 (network driver) r = 0 (0xffffff8001744018) locked _at_
/usr/src/sys/dev/bwi/if_bwi.c:1312
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
_witness_debugger() at _witness_debugger+0x2c
witness_warn() at witness_warn+0x2c6
_sleep() at _sleep+0x61
firmware_get() at firmware_get+0x15c
bwi_mac_init() at bwi_mac_init+0xd3f
bwi_init_statechg() at bwi_init_statechg+0x78
bwi_ioctl() at bwi_ioctl+0xaf
taskqueue_run_locked() at taskqueue_run_locked+0x93
taskqueue_thread_loop() at taskqueue_thread_loop+0x3e
fork_exit() at fork_exit+0x135
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffff80ce9d9d00, rbp = 0 ---
bwi_v3_ucode: could not load firmware image, error 2
bwi0: request firmware bwi_v3_ucode failed
bwi0: bwi_init_statechg: error 12 on MAC init
bwi0: need multicast update callback


# ifconfig -a
bwi0: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:18:39:c7:71:21
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
        status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:18:39:c7:71:21
        inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::218:39ff:fec7:7121%wlan0 prefixlen 64 scopeid 0xa
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid "" channel 1 (2412 MHz 11b)
        country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
        bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 1
        bintval 0


********************************************************
3. wpa_supplicant:
********************************************************


# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
ioctl[SIOCS80211, op 103, len 128]: Device not configured
Failed to initiate AP scan.
ioctl[SIOCS80211, op 103, len 128]: Device not configured
Failed to initiate AP scan.

*and so on*

# ifconfig -a
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:18:39:c7:71:21
        inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::218:39ff:fec7:7121%wlan0 prefixlen 64 scopeid 0xa
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid "" channel 1 (2412 MHz 11b)
        country US authmode WPA1+WPA2/802.11i privacy OFF txpower 0 bmiss 7
        scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
        roam:rate 1 bintval 0

Any further testing I should do?

Many thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Received on Fri Jan 06 2012 - 19:07:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:23 UTC