From owner-freebsd-mobile@FreeBSD.ORG Thu Feb 21 22:20:02 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1702816A400 for ; Thu, 21 Feb 2008 22:20:02 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id DB16B13C465 for ; Thu, 21 Feb 2008 22:20:01 +0000 (UTC) (envelope-from sam@errno.com) Received: from Macintosh-2.local ([10.0.0.196]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m1LMK1up067983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Feb 2008 14:20:01 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <47BDF911.5080002@errno.com> Date: Thu, 21 Feb 2008 14:20:01 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Andreas Wetzel References: <47BD8606.90408@gmx.net> In-Reply-To: <47BD8606.90408@gmx.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-mobile@freebsd.org Subject: Re: DHCP fails after suspend/resume X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 22:20:02 -0000 Andreas Wetzel wrote: > hi > > I am having the problem, that after suspending and resuming, DHCP fails > to get > an address. > > The system is a ThinkPad T30 with an Atheros based mini-PCI wifi adapter > and > FreeBSD 6.3-RELEASE installed. The wireless network is configured to use > WPA2 > with EAP-TTLS authentication. The server side also runs FreeBSD 6.3-RELEASE > using hostapd, freeradius and the ISC dhcp server. > > Manually doing an /etc/rc.d/netif stop ath0 followed by /etc/rc.d/netif > start > ath0 doesn't work either. When I reboot the ThinkPad, the machine gets > an IP > address instantaneously. > > Checking the logfiles on the server side, I can see, that the EAP > negotiation > after the resume works just fine. Also using ethereal I can see that the > DHCP > requests arrive on the server, and the server sends replies. But the client > does not seem to receive or react to those replies. I am not in to DHCP > that > deep, but could this possibly be due to the server sending unicast replies > instead of broadcast? Is the client supposed to do a DHCPRELEASE before > going > to sleep mode? > > Windows 2000, which runs in a dual-boot configuration on the ThinkPad can > suspend/resume in the same setup without any problem, so I assume it's a > client side problem. > > Any help would be appreciated. > Sounds like the h/w lost the crypto keys if you can see the DHCP frames as they should be encrypted. Unfortunately none of my Thinkpads have had working suspend/resume forever so it's hard for me to investigate. If you want to investigate turn on debug msgs in the 802.11 layer and the ath driver to watch what happens plumbing keys: wlandebug crypto athdebug key You'll need to build the driver with ATH_DEBUG enabled to get debug msgs. Sam