From owner-freebsd-stable@FreeBSD.ORG Tue Nov 23 23:08:15 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 3E44F10656A9 for ; Tue, 23 Nov 2010 23:08:15 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id CF26D8FC0A for ; Tue, 23 Nov 2010 23:08:14 +0000 (UTC) Received: by fxm19 with SMTP id 19so6926024fxm.13 for ; Tue, 23 Nov 2010 15:08:13 -0800 (PST) Received: by 10.223.74.15 with SMTP id s15mr1364562faj.28.1290553693676; Tue, 23 Nov 2010 15:08:13 -0800 (PST) Received: from maja.lab.techwires.net (p54B4E5EF.dip.t-dialin.net [84.180.229.239]) by mx.google.com with ESMTPS id d20sm2008335fav.38.2010.11.23.15.08.11 (version=SSLv3 cipher=RC4-MD5); Tue, 23 Nov 2010 15:08:12 -0800 (PST) From: Bernhard Schmidt To: freebsd-stable@freebsd.org Date: Wed, 24 Nov 2010 00:08:32 +0100 User-Agent: KMail/1.12.4 (FreeBSD/9.0-CURRENT; KDE/4.3.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201011240008.33176.bschmidt@techwires.net> Cc: Subject: Re: if_wpi crashes when renewing in FreeBSD 8 all versions 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, 23 Nov 2010 23:08:15 -0000 On Tuesday 23 November 2010 22:03:22 Zhihao Yuan wrote: > My laptop is a HP Compaq nc8430, and the wireless card is Intel 3945ABG, > with if_wpi driver. > wpi0: flags=8802 metric 0 mtu 2290 > ether 00:1b:77:31:1d:74 media: IEEE 802.11 Wireless Ethernet > autoselect (autoselect) status: no carrier > > I can use the wireless correctly when I start the system. But after some > time (depends on your wireless router renewing settings), it can not renew > the DHCP settings. And, if you try to renew it with sudo /etc/rc.d/netif > restart for like more than 2 times, the whole system will crash. > > The interesting thing is, the renewing problem only occurs on the wireless > network with a WPA2 protocol. For the WEP or None-keys network, there is no > problem. For the WPA-EAP network, you can redo the DHCP but not > /etc/rc.d/netif restart. That is a known issue, there is race in our devd/rc-subsystems and especially the way wpa_supplicant get exclusive access to the interface. This leads to all kind of funny results, panics being one of it. I have patches to address the panics but this does not fix the initial issue which is that wpa_supplicant gets started twice. -- Bernhard