From owner-freebsd-stable@FreeBSD.ORG Tue Sep 7 17:17:48 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 364D81065697; Tue, 7 Sep 2010 17:17:48 +0000 (UTC) (envelope-from pistoletik@freebsd-go-go.ru) Received: from freebsd-go-go.ru (freebsd-go-go.ru [217.149.183.250]) by mx1.freebsd.org (Postfix) with ESMTP id 9AEB18FC0C; Tue, 7 Sep 2010 17:17:47 +0000 (UTC) Received: from [93.157.162.67] (port=62648 helo=firma.local) by freebsd-go-go.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Ot1nm-000DnC-1I; Tue, 07 Sep 2010 21:17:46 +0400 Message-ID: <4C86739D.4050407@freebsd-go-go.ru> Date: Tue, 07 Sep 2010 21:17:17 +0400 From: Baby Boy User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100806 Thunderbird/3.1.2 MIME-Version: 1.0 To: Weongyo Jeong References: <4C7AC69A.2080001@freebsd-go-go.ru> <20100906223957.GB1328@weongyo> In-Reply-To: <20100906223957.GB1328@weongyo> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 93.157.162.67 X-SA-Exim-Mail-From: pistoletik@freebsd-go-go.ru X-SA-Exim-Scanned: No (on freebsd-go-go.ru); SAEximRunCond expanded to false Cc: Warren Block , freebsd-stable@freebsd.org Subject: Re: Broadcom 4315 not working 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: Tue, 07 Sep 2010 17:17:48 -0000 On 07.09.2010 02:39, Weongyo Jeong wrote: > Today I MFCed a patch for LP PHY devices to STABLE_8. Could you please > test with latest? > > One thing you can test is that using PIO mode. Thank you. > > regards, > Weongyo Jeong > Hello everybody! All operations are executed on a completely new/clean OS. Access Point ASUS WL-330gE, Authentication Method selected Open System. ################################################################### === PREPARATION === # svn checkout svn://svn.freebsd.org/base/stable/8 /usr/src ... ... # uname -a FreeBSD 8.1-STABLE FreeBSD 8.1-STABLE #0 r212293: Tue Sep 7 19:21:04 MSD 2010 dm@:/usr/obj/usr/src/sys/GENERIC i386 Update ports and: # cd /usr/ports/net/bwn-firmware-kmod && make install clean ... ===> Registering installation for bwn-firmware-kmod-0.1.0 ===> Cleaning for b43-fwcutter-012 ===> Cleaning for bwn-firmware-kmod-0.1.0 # rehash # pciconf -lvbc none2@pci0:3:0:0: class=0x028000 card=0x1508103c chip=0x431514e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Corporation' device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)' class = network bar [10] = type Memory, range 64, base 0xd4200000, size 16384, enabled cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 09[58] = vendor (length 120) cap 05[e8] = MSI supports 1 message, 64 bit cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1) # echo if_bwn_load=\"YES\" >> /boot/loader.conf # shutdown -r now # kldstat Id Refs Address Size Name 1 8 0xc0400000 bc242c kernel 2 1 0xc0fc3000 37248 if_bwn.ko 3 2 0xc0ffb000 a26c siba_bwn.ko # ifconfig bwn0: flags=8802 metric 0 mtu 2290 ether 0c:ee:e6:a1:50:cc media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ################################################################### === DMA === # kldload bwn_v4_lp_ucode.ko # ifconfig wlan0 create wlandev bwn0 # ifconfig wlan0 up # ifconfig bwn0: flags=8843 metric 0 mtu 2290 ether 0c:ee:e6:a1:50:cc media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated .... wlan0: flags=8843 metric 0 mtu 1500 ether 0c:ee:e6:a1:50:cc media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 5 (2432 MHz 11g) country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme bintval 0 # ifconfig wlan0 up list ap SSID/MESH ID BSSID CHAN RATE S:N INT CAPS dlink home 11 00:1c:f0:e2:96:c5 6 54M -132:-95 100 EPS WME ATH WPS ASUS 00:1d:60:16:d5:16 1 11M -107:-95 100 E WME <<-- Is my my_home_net... 00:1c:f0:3d:5f:d9 1 54M -140:-95 100 EPS RSN WPA ATH DIR300.Augur 00:1e:58:81:50:61 1 54M -141:-95 100 EPS ATH WPS dlink DIR-400 00:01:23:45:67:89 2 54M -140:-95 100 EPS WPA WPS # cat /var/log/messages ... Sep 7 20:41:51 kernel: wlan0: Ethernet address: 0c:ee:e6:a1:50:cc Sep 7 20:42:01 kernel: bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657) Sep 7 20:42:01 kernel: wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost Sep 7 20:42:01 kernel: Sep 7 20:42:04 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:42:04 kernel: bwn0: please turns on the RF switch Sep 7 20:42:05 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:42:29 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:42:29 kernel: bwn0: please turns on the RF switch Sep 7 20:42:30 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:42:33 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:42:33 kernel: bwn0: please turns on the RF switch Sep 7 20:42:34 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:43:32 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:43:32 kernel: bwn0: please turns on the RF switch Sep 7 20:43:40 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:43:53 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:43:53 kernel: bwn0: please turns on the RF switch ..... If manually press on switch WiFi On/Off, then OS response by pressing in the form of output status (ON or OFF) on monitor. ################################################################### === PIO === (Warren Block, thanks for the help) # echo hw.bwn.usedma=0 >> /boot/loader.conf # shutdown -r now # kldload bwn_v4_lp_ucode.ko # ifconfig wlan0 create wlandev bwn0 # ifconfig wlan0 up # ifconfig bwn0: flags=8843 metric 0 mtu 2290 ether 0c:ee:e6:a1:50:cc media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ... wlan0: flags=8843 metric 0 mtu 1500 ether 0c:ee:e6:a1:50:cc media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 3 (2422 MHz 11g) country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme bintval 0 # cat /var/log/messages ... Sep 7 20:57:34 kernel: wlan0: Ethernet address: 0c:ee:e6:a1:50:cc Sep 7 20:57:38 kernel: bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657) Sep 7 20:57:39 kernel: wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost Sep 7 20:58:18 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:58:18 kernel: bwn0: please turns on the RF switch Sep 7 20:58:19 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:59:17 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:59:17 kernel: bwn0: please turns on the RF switch Sep 7 20:59:21 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:59:23 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:59:23 kernel: bwn0: please turns on the RF switch Sep 7 20:59:25 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:59:26 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:59:26 kernel: bwn0: please turns on the RF switch Sep 7 20:59:27 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:59:29 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:59:29 kernel: bwn0: please turns on the RF switch Sep 7 20:59:33 kernel: bwn0: status of RF switch is changed to ON Sep 7 20:59:34 kernel: bwn0: status of RF switch is changed to OFF Sep 7 20:59:34 kernel: bwn0: please turns on the RF switch # ifconfig wlan0 up list ap SSID/MESH ID BSSID CHAN RATE S:N INT CAPS ASUS 00:1d:60:16:d5:16 1 11M -106:-95 100 E WME <<-- Is my dlink home 11 00:1c:f0:e2:96:c5 6 54M -132:-95 100 EPS WME ATH WPS my_home_net... 00:1c:f0:3d:5f:d9 1 54M -140:-95 100 EPS RSN WPA ATH