From owner-freebsd-stable@FreeBSD.ORG Sun Jun 20 14:40:05 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66A33106564A for ; Sun, 20 Jun 2010 14:40:05 +0000 (UTC) (envelope-from acieroid@awesom.eu) Received: from awesom.eu (ks23738.kimsufi.com [91.121.15.173]) by mx1.freebsd.org (Postfix) with ESMTP id 32EEB8FC12 for ; Sun, 20 Jun 2010 14:40:04 +0000 (UTC) Received: by awesom.eu (Postfix, from userid 1002) id CFD01C9442; Sun, 20 Jun 2010 16:23:28 +0200 (CEST) Date: Sun, 20 Jun 2010 16:23:28 +0200 From: Quentin Stievenart To: freebsd-stable@freebsd.org Message-ID: <20100620142328.GA92472@awesom.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: bwn(4) on 8.1-RC1: connection problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2010 14:40:05 -0000 Hi, I've some broadcom wireless cards to test here (two BCM4318 and a BCM4312). This week I tried the BCM4318 one (the 4312 is on a netbook, I'll try it later, if the 4318 works some day). First of all, I was able to use it with ndisgen on FreeBSD 7.1, but since the 7.2, it doesn't work anymore. So, two day ago I installed a 8.1-RC1 and tried bwi(4), but a `ifconfig wlan0 scan` wasn't detecting anything. So I gave bwn(4) a try, and it detect perfectly my network, but I just can't connect to it, neither with dhclient nor with a static IP. Here's what I do to try to connect: # kldload if_bwn # kldload bwn_v4_ucode # ifconfig wlan0 create wlandev bwn0 # ifconfig wlan0 up # ifconfig wlan0 ssid myssid channel 6 wepmode on wepkey mywepkey # ifconfig wlan0 wlan0: flags=8843 metric 0 mtu 1500 ether 00:11:50:d0:2f:6f media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b status: associated ssid myssid channel 6 (2437 MHz 11b) bssid 00:60:b3:7a:5c:29 country US authmode OPEN privacy ON deftxkey UNDEF wepkey 1:40-bit txpower 30 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 1 wme # ifconfig bwn0 bwn0: flags=8843 metric 0 mtu 2290 ether 00:11:50:d0:2f:6f media: IEEE 802.11 Wireless Ethernet autoselect mode 11b status: associated Then, for the static IP: # ifconfig wlan0 inet 192.168.1.30 netmask 255.255.255.0 # route add default 192.168.1.1 # arp -a ? (192.168.1.30) at 00:11:50:d0:2f:6f on wlan0 permanent [ethernet] And I can't ping anything (except localhost and 192.168.1.30) Or, with dhcp: # dhclient wlan0 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2 No DHCPOFFERS received. No working leases in persistent database - sleeping. Here's what pciconf -lv tells me about my card: siba_bwn0@pci0:2:2:0: class=0x028000 card=0x70011799 chip=0x431814e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' device = 'Broadcom 802.11b/g (BCM4318)' class = network And a dmesg | egrep "(bwn|wlan)": siba_bwn0: mem 0xfdefc000-0xfdefdfff irq 22 at device 2.0 on pci2 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) bwn0: [FILTER] wlan0: Ethernet address: 00:11:50:d0:2f:6f bwn0: firmware version (rev 410 patch 2160 date 0x751a time 0x7c0a) wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost wlan0: link state changed to UP bwn0: need multicast update callback bwn0: RX decryption attempted (old 0 keyidx 0) bwn0: RX decryption attempted (old 0 keyidx 0) bwn0: RX decryption attempted (old 0 keyidx 0) bwn0: RX decryption attempted (old 0 keyidx 0) bwn0: RX decryption attempted (old 0 keyidx 0) Also, when I start tcpdump on wlan0, and try to ping this computer from another one, I see all the ping requests and responses on FreeBSD, but the other computer don't get any response. Does anyone knows what to do now ? Regards, Quentin Stievenart.