From owner-freebsd-current@FreeBSD.ORG Tue Jul 5 21:14:27 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFA5416A41C for ; Tue, 5 Jul 2005 21:14:27 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64E0C43D49 for ; Tue, 5 Jul 2005 21:14:27 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.94] ([66.127.85.94]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j65LENms038351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Jul 2005 14:14:25 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <42CAF849.3020508@errno.com> Date: Tue, 05 Jul 2005 14:14:49 -0700 From: Sam Leffler Organization: Errno Consulting User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brooks Davis References: <200507012348.j61NmQEs070640@gate.bitblocks.com> <20050705195945.GA28034@odin.ac.hmc.edu> In-Reply-To: <20050705195945.GA28034@odin.ac.hmc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Bakul Shah , freebsd-current@freebsd.org Subject: Re: minor WPA problem on a Thinkpad R40 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: Tue, 05 Jul 2005 21:14:27 -0000 Brooks Davis wrote: > On Fri, Jul 01, 2005 at 04:48:26PM -0700, Bakul Shah wrote: > >>After suspend/resume the old wpa_supplicant does not die >>and ath0 does not come up. Manually running >> /etc/rc.d/netif stop ath0 >>or >> /etc/rc.d/netif start ath0 >>does the right thing. I am running yesterday's kernel. >>rc.conf contains >> >> ifconfig_ath0="WPA DHCP" >> >>Not sure if I am doing something wrong or if this area still >>needs work. As I understand it, wpa_supplicant should die >>when an interface goes down just like dhclient should. > > > Hmm, this isn't something I've been able to test. One shot in the dark > would be adding -w to the wpa_supplicant command line in > /etc/rc.d/wpa_supplicant. I know wpa_supplicant deals badly with > yanking and reinserting a nic under normal circumstances so I'm not too > suprised it's having trouble with suspend/resume. > > >>Another curious behavior is that after a manual >> ifconfig ath0 down >>the interface does not stay down. > > > I suspect wpa_supplicant is bringing it back up. I'm not sure what the > answer is there. IMO wpa_supplicant should exit when the interface goes down/away but it does not. I sent mail to Jouni about this but he hasn't responded yet. I was going to check if there was a way to make it work this way. Not sure why it works this way except to avoid recalculating various crypto state or perhaps to avoid linux hotplug issues. Sam