From owner-freebsd-current@FreeBSD.ORG Sun Jul 22 06:35:29 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE99A16A41A for ; Sun, 22 Jul 2007 06:35:29 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 8714713C45A for ; Sun, 22 Jul 2007 06:35:29 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so303942anc for ; Sat, 21 Jul 2007 23:35:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YfQvWtuNsUnFqg2sAzi5ih+dcIdbZhiM0sCSVmSN8aw5jkImvSgg018DIGaLeZZH7KPdF3YTxt+c7GTlkQ6xhVTy3qXV26xLG6R8t/RI6lQY8yl9WHjsP3bSKAJFkvu+S8QDlXn13gGjDQg229qm/dUgKfMY4yQI0ixj2Nc8AM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h5XkcdDbfwWDe3RCL7jk4wW5huI8T436QZPQdS2obojwE0j4NnW/MumLSLFL0qN6p/kYhYCMifwY2ZqH25RL1u7rJbG1IUyUW0lodPTVJwsgiNBnrUR4FDpAaxv/KEic5ZMbHQzB9xqUm0DbO5vmGfHLbKic3bG1eQFlQyk2GEk= Received: by 10.100.42.7 with SMTP id p7mr1047845anp.1185086128499; Sat, 21 Jul 2007 23:35:28 -0700 (PDT) Received: by 10.100.141.14 with HTTP; Sat, 21 Jul 2007 23:35:28 -0700 (PDT) Message-ID: <790a9fff0707212335g17b62a7aw548de1202f89d862@mail.gmail.com> Date: Sun, 22 Jul 2007 01:35:28 -0500 From: "Scot Hetzel" To: "Andrew Thompson" In-Reply-To: <20070721092207.GC76674@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0707150332u2502a491s91f19d4303bf82a6@mail.gmail.com> <20070715110629.GI95956@heff.fud.org.nz> <790a9fff0707181607n7500b7feo190c58418e047de5@mail.gmail.com> <20070720001043.GD45010@heff.fud.org.nz> <20070721092207.GC76674@heff.fud.org.nz> Cc: freebsd-current@freebsd.org Subject: Re: stopping ndis caused fatal trap 12 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2007 06:35:30 -0000 On 7/21/07, Andrew Thompson wrote: > > Can you (and anyone else having ndis assosciate problems) please try > > these two patches. > > > > ndis_scan9.diff applies in sys/dev/if_ndis, and scan_sta1.diff applies > > in sys/net80211. I have kept them seperate as Sephe is due to commit > > scan_sta1.diff shortly and may have already done so before you get to > > test. > > Is anyone able to test this? I can not commit it until at least one > person with the ndis issues can confirm it works. Sephe has committed > his part so only the attached patch is needed. > With both of those patches applied my system has no problems associating and obtaining an IP address. Before the patches were applied the system would time out on the dhcp requests, and fail to obtain an IP due to it hadn't associated with an AP in time. I was finally able to get connected to the schools WPA network with wpa_supplicant, by removing: ca_certs="" from the configuration: network={ ssid="School_WPA" proto=WPA key_mgmt=WPA-EAP pairwise=TKIP group=TKIP eap=PEAP identity="me@school" password="password" phase1="include_tls_length=1" phase2="auth=MSCHAPV2" } found the problem by using wlandebug scan+assoc+auth, and saw it was failing when it tried to load the certificate file. I also tested the ndis_scan10.diff on my home and work networks and didn't have any problems assocating with the APs. I did notice that 'ifconfig ndis0' on my home network would show the ssid, while the work and school network wouldn't show the connected ssid. 'ifconfig ndis0 scan ; ifconfig ndis0 list scan' still doesn't show the available APs. But they still show up in wpa_cli when using scan_results. I had created the following script for the testing: --- #!/bin/sh set -x newsyslog -F kldload bcmwl564_sys.ko sysctl debug.ndis=1 wlandebug -i ndis0 scan ifconfig ndis0 scan ifconfig ndis0 list scan kldunload bcmwl564_sys.ko --- Script started on Sat Jul 21 14:15:13 2007 + newsyslog -F + kldload bcmwl564_sys.ko + sysctl debug.ndis=1 debug.ndis: 0 -> 1 + wlandebug -i ndis0 scan net.wlan.0.debug: 0x0 => 0x200000 + ifconfig ndis0 scan + ifconfig ndis0 list scan Script done on Sat Jul 21 14:15:25 2007 == /var/log/messages == Jul 21 14:15:13 hp010 newsyslog[1195]: logfile turned over due to -F request Jul 21 14:15:24 hp010 kernel: ichsmb0: port 0x8400-0x840f mem 0xc0003000-0xc00033ff at device 20.0 on pci0 Jul 21 14:15:24 hp010 kernel: ichsmb0: can't map I/O Jul 21 14:15:24 hp010 kernel: device_attach: ichsmb0 attach returned 6 Jul 21 14:15:24 hp010 kernel: ichsmb0: port 0x8400-0x840f mem 0xc0003000-0xc00033ff at device 20.0 on pci0 Jul 21 14:15:24 hp010 kernel: ichsmb0: can't map I/O Jul 21 14:15:24 hp010 kernel: device_attach: ichsmb0 attach returned 6 Jul 21 14:15:24 hp010 kernel: ndis0: mem 0xc0204000-0xc0205fff irq 21 at device 2.0 on pci6 Jul 21 14:15:24 hp010 kernel: ndis0: [ITHREAD] Jul 21 14:15:24 hp010 kernel: ndis0: NDIS API version: 5.1 Jul 21 14:15:24 hp010 kernel: fpudna in kernel mode! Jul 21 14:15:25 hp010 kernel: ndis0: using obsoleted if_watchdog interface Jul 21 14:15:25 hp010 kernel: ndis0: Ethernet address: 00:14:a5:72:68:64 Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.