Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 May 2012 07:30:17 +0800
From:      Buganini <buganini@gmail.com>
To:        freebsd-questions@freebsd.org, freebsd-mobile@freebsd.org
Subject:   Re: help debug bwn(4) wireless
Message-ID:  <CAC_-zwdODDTX8jU4y0YNOyojTV-rvajCPQ00zDBAuUDKEP4mNQ@mail.gmail.com>
In-Reply-To: <20120504200307.GA30426@mech-cluster241.men.bris.ac.uk>
References:  <20120504200307.GA30426@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
how about
`ifconfig wlan0 mode 11b`

11g sticks very soon for me and some other people.

Regards,
Buganini

2012/5/5 Anton Shterenlikht <mexas@bristol.ac.uk>:
> I've US Robotics 5411 wireless pccard device.
> It's identified as:
>
> # pciconf -lv
> *skip*
> siba_bwn0@pci0:3:0:0: =C2=A0 class=3D0x028000 card=3D0x431814e4 chip=3D0x=
431814e4 rev=3D0x02 hdr=3D0x00
> =C2=A0 =C2=A0vendor =C2=A0 =C2=A0 =3D 'Broadcom Corporation'
> =C2=A0 =C2=A0device =C2=A0 =C2=A0 =3D 'BCM4318 [AirForce One 54g] 802.11g=
 Wireless LAN Controller'
> =C2=A0 =C2=A0class =C2=A0 =C2=A0 =C2=A0=3D network
>
> and from dmesg:
>
> siba_bwn0: <Broadcom BCM4318 802.11b/g Wireless> mem 0xcc502000-0xcc503ff=
f 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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Size =C2=A0 =C2=
=A0 Name
> =C2=A01 =C2=A0 =C2=A04 0xffffffff80200000 104fb98 =C2=A0kernel
> =C2=A02 =C2=A0 =C2=A01 0xffffffff81412000 28aa1 =C2=A0 =C2=A0bwn_v4_ucode=
.ko
> #
>
> I created wlan device:
>
> bwn0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2=
290
> =C2=A0 =C2=A0 =C2=A0 =C2=A0ether 00:c0:49:58:00:fe
> =C2=A0 =C2=A0 =C2=A0 =C2=A0nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LI=
NKLOCAL>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0media: IEEE 802.11 Wireless Ethernet autoselec=
t mode 11g
> =C2=A0 =C2=A0 =C2=A0 =C2=A0status: associated
> wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
> =C2=A0 =C2=A0 =C2=A0 =C2=A0ether 00:c0:49:58:00:fe
> =C2=A0 =C2=A0 =C2=A0 =C2=A0inet 192.168.1.104 netmask 0xffffff00 broadcas=
t 192.168.1.255
> =C2=A0 =C2=A0 =C2=A0 =C2=A0nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LI=
NKLOCAL>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0media: IEEE 802.11 Wireless Ethernet OFDM/36Mb=
ps mode 11g
> =C2=A0 =C2=A0 =C2=A0 =C2=A0status: associated
> =C2=A0 =C2=A0 =C2=A0 =C2=A0ssid lagartixa channel 11 (2462 MHz 11g) bssid=
 00:18:39:e6:46:b6
> =C2=A0 =C2=A0 =C2=A0 =C2=A0country US authmode WPA2/802.11i privacy ON de=
ftxkey UNDEF
> =C2=A0 =C2=A0 =C2=A0 =C2=A0AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid=
 450 bgscan
> =C2=A0 =C2=A0 =C2=A0 =C2=A0bgscanintvl 300 bgscanidle 250 roam:rssi 7 roa=
m:rate 5 protmode CTS
> =C2=A0 =C2=A0 =C2=A0 =C2=A0wme 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=3D'lagartixa' freq=3D246=
2 MHz)
> Associated with 00:18:39:e6:46:b6
> WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=3DCCMP GTK=3DC=
CMP]
> CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [=
id=3D0 id_str=3D]
>
> 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: =C2=A0 192.168.1.1
> Client Host Name =C2=A0 =C2=A0 =C2=A0 =C2=A0IP Address =C2=A0 =C2=A0 =C2=
=A0MAC Address =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Expires
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0192.168.1.104 =C2=A0 00:c0:49:58:00:fe =C2=A0 =C2=A0 =C2=A0 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
>
> What am I doing wrong?
> What else can I try?
>
> 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
> _______________________________________________
> freebsd-mobile@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
> To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC_-zwdODDTX8jU4y0YNOyojTV-rvajCPQ00zDBAuUDKEP4mNQ>