help debug bwn(4) wireless
Anton Shterenlikht
mexas at bristol.ac.uk
Sat May 5 16:24:57 UTC 2012
On Fri, May 04, 2012 at 04:56:33PM -0500, Robert Bonomi wrote:
>
> Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
> > I've US Robotics 5411 wireless pccard device.
> > It's identified as:
> >
> > # pciconf -lv
> > *skip*
> > siba_bwn0 at pci0:3:0:0: class=0x028000 card=0x431814e4 chip=0x431814e4 rev=0x02 hdr=0x00
> > vendor = 'Broadcom Corporation'
> > device = 'BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller'
> > class = network
> >
> > and from dmesg:
> >
> > siba_bwn0: <Broadcom BCM4318 802.11b/g Wireless> mem 0xcc502000-0xcc503fff irq 20 at device 0.0 on cardbus0
> > bwn0 on siba_bwn0
> > bwn0: WLAN (chipid 0x4318 rev 9) PHY (analog 3 type 2 rev 7) RADIO (manuf 0x17f ver 0x2050 rev 8)
> > bwn0: DMA (32 bits)
> >
> > I've build a kernel with bwn(4),
> > loaded the firmware module:
> >
> > # kldstat
> > Id Refs Address Size Name
> > 1 4 0xffffffff80200000 104fb98 kernel
> > 2 1 0xffffffff81412000 28aa1 bwn_v4_ucode.ko
> > #
> >
> > I created wlan device:
> >
> > bwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
> > ether 00:c0:49:58:00:fe
> > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
> > status: associated
> > wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> > ether 00:c0:49:58:00:fe
> > inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
> > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> > media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
> > status: associated
> > ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6
> > country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
> > AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan
> > bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
> > wme roaming MANUAL
> >
> > I run wpa_supplicant:
> >
> > # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
> > Trying to associate with 00:18:39:e6:46:b6 (SSID='lagartixa' freq=2462 MHz)
> > Associated with 00:18:39:e6:46:b6
> > WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=CCMP GTK=CCMP]
> > CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [id=0 id_str=]
> >
> > I got issued the ip address by my wireless router.
> >
> > I see the card on the router:
> >
> > DHCP Active IP Table
> > DHCP Server IP Address: 192.168.1.1
> > Client Host Name IP Address MAC Address Expires
> > 192.168.1.104 00:c0:49:58:00:fe 23:58:54
> >
> >
> > I get /etc/resolve.conf set up automatically
> > (through the wired connection):
> >
> > % cat /etc/resolv.conf
> > # Generated by resolvconf
> > search cable.virginmedia.net
> > nameserver 194.168.4.100
> > nameserver 194.168.8.100
> >
> >
> > But I just can't get the wireless connection,
> > even to the router:
> >
> > % ping 192.168.1.1
> > PING 192.168.1.1 (192.168.1.1): 56 data bytes
> > ping: sendto: No route to host
> > ping: sendto: No route to host
> > ^C
> >
> > On the console I see:
> >
> > RX decryption attempted (old 0 keyidx 0x1)
> > RX decryption attempted (old 0 keyidx 0x1)
> > RX decryption attempted (old 0 keyidx 0x1)
> > RX decryption attempted (old 0 keyidx 0x1)
> > firmware version (rev 410 patch 2160 date 0x751a time 0x7c0a)
> >
> >
> > Please help
>
> It looks like you're missing a route.
>
> I suspect you've got a wired ethernet port, that is being conigured
> with a default address. and the default route points -there-.
>
> Please show the output of 'ifconfig -a', and 'netstat -nr'.
# ifconfig -a
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
ether 00:1a:4b:89:4b:4e
inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:c0:49:58:00:fe
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:c0:49:58:00:fe
inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
status: associated
ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6
country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
wme roaming MANUAL
# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGS 0 624 bge0
127.0.0.1 link#8 UH 0 0 lo0
192.168.1.0/24 link#1 U 0 0 bge0
192.168.1.101 link#1 UHS 0 0 lo0
192.168.1.104 link#10 UHS 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#8 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#8 U lo0
fe80::1%lo0 link#8 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0
--
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
More information about the freebsd-questions
mailing list