From owner-freebsd-stable@FreeBSD.ORG Sun Apr 25 12:42:27 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 EF74A106564A; Sun, 25 Apr 2010 12:42:26 +0000 (UTC) (envelope-from bschmidt@mx.techwires.net) Received: from mx.techwires.net (mx.techwires.net [IPv6:2001:4d88:100f:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 88F008FC13; Sun, 25 Apr 2010 12:42:26 +0000 (UTC) Received: by mx.techwires.net (Postfix, from userid 1001) id 41C1A1DCC8; Sun, 25 Apr 2010 14:42:25 +0200 (CEST) Date: Sun, 25 Apr 2010 14:42:25 +0200 From: Bernhard Schmidt To: Garrett Cooper Message-ID: <20100425124224.GA84870@mx.techwires.net> References: <20100424073430.GB62910@mx.techwires.net> <20100424075031.GA98660@mx.techwires.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Brandon Gooch , Olivier =?iso-8859-1?Q?Cochard-Labb=E9?= , freebsd-stable@freebsd.org, Andrew Thompson Subject: Re: iwn firmware instability with an up-to-date stable kernel 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, 25 Apr 2010 12:42:27 -0000 On Sat, Apr 24, 2010 at 06:24:42PM -0700, Garrett Cooper wrote: > On Sat, Apr 24, 2010 at 12:50 AM, Bernhard Schmidt > wrote: > > On Sat, Apr 24, 2010 at 12:45:14AM -0700, Garrett Cooper wrote: > >> On Sat, Apr 24, 2010 at 12:34 AM, Bernhard Schmidt > >> wrote: > >> > > >> > How did you do that? Reloading the module, or with ifconfig? > >> > >> /etc/rc.d/netif restart , which does the ifconfig operations (no > >> module change occurred AFAIK, but wlan0 did of course do some > >> device_printf's when it was associating itself with iwn(4)). > > > > Can you do ps xa | grep wpa? Just wondering if wpa_supplicant gets > > started twice. > > Some more interesting data. > > Open authentication at home works out of the box via wpa_supplicant > with ifconfig_wlan0="WPA DHCP" whereas it flaked out and died at work. > > There are two instances of wpa_supplicant started up on the laptop. > Here's a snippet from pstree that shows that both processes are > standalone: > > -+= 00001 root /sbin/init -- > |--= 00121 root adjkerntz -i > |--= 00559 root /sbin/devd > |--= 00711 root /usr/sbin/syslogd -s > |--= 00735 root /usr/sbin/rpcbind > |--= 00879 root /usr/sbin/moused -p /dev/psm0 -t auto > |--= 00903 messagebus /usr/local/bin/dbus-daemon --system > |--= 01073 root /usr/sbin/sshd > |--= 01081 root sendmail: accepting connections (sendmail) > |--= 01085 smmsp sendmail: Queue runner@00:30:00 for > /var/spool/clientmqueue (sendmail) > |--= 01093 root /usr/sbin/cron -s > |-+= 01176 haldaemon /usr/local/sbin/hald > | \-+- 01180 root hald-runner > | |--- 01185 root hald-addon-mouse-sysmouse: /dev/psm0 (hald-addon-mouse-sy) > | \--- 01205 root hald-addon-storage: /dev/acd0 (hald-addon-storage) > |--= 01179 root /usr/local/sbin/console-kit-daemon > |--= 01727 root /usr/sbin/wpa_supplicant -s -B -i wlan0 -c > /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/wlan0.pid > |--= 01783 root /usr/sbin/wpa_supplicant -s -B -i wlan0 -c > /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/wlan0.pid > |--= 01866 root dhclient: wlan0 [priv] (dhclient) > |--= 01902 _dhcp dhclient: wlan0 (dhclient) Indeed, devd is responsible for that, removing notify 0 { match "system" "IFNET"; match "type" "ATTACH"; action "/etc/pccard_ether $subsystem start"; }; from devd.conf prevents a seconds call to rc.d/netif and therefore rc.d/wpa_supplicant. This breaks the intended purpose though. Can we somehow prevent this by checking the pidfile in rc.d/wpa_supplicant? -- Bernhard