From owner-freebsd-current@FreeBSD.ORG Tue Jan 3 00:45:19 2006 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 C202D16A41F for ; Tue, 3 Jan 2006 00:45:19 +0000 (GMT) (envelope-from cisbjc@cs.unisa.edu.au) Received: from reason.levels.unisa.edu.au (reason.levels.unisa.edu.au [130.220.33.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECA5643D4C for ; Tue, 3 Jan 2006 00:45:18 +0000 (GMT) (envelope-from cisbjc@cs.unisa.edu.au) Received: from [192.168.0.91] (cis220313.levels.unisa.edu.au [130.220.37.202]) by reason.levels.unisa.edu.au (8.12.10/8.12.10) with ESMTP id k030j1vp018437; Tue, 3 Jan 2006 11:15:03 +1030 (CST) Message-ID: <43B9C7F1.5030303@cs.unisa.edu.au> Date: Tue, 03 Jan 2006 11:10:17 +1030 From: Benjamin Close User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050627) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Gilbert References: <17337.50303.811554.900031@canoe.dclg.ca> In-Reply-To: <17337.50303.811554.900031@canoe.dclg.ca> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: dhclient ignoring link on wi0 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, 03 Jan 2006 00:45:19 -0000 David Gilbert wrote: >I've got a laptop with the PC-CARD wi0 in it. I've currently got >"ifconfig_wi0="DHCP"" in the rc.conf file. dhclient runs and >everything is fine... until the association drops for a little bit. >Then it looses the IP address and dhclient never relizes that it's >associated again. Very annoying. > >I thought the whole point was that dhclient was suppose to notice >these events? > >Dhclient in this case never quits ... and ... as far as I can tell, >never looks for an address again (athough I'm not going to wait a >whole day for the dhcp lease to timeout). > >Has anyone looked into this? This is on 6.0-p1. > > I have a slightly different but some what related issue. I can't get an initial IP. The ironic thing is sometimes I can, other times I can't. It seems to be related to whether the lease has expired on the server or not. Commenting out line 274 in dhclient.c seems to fix the problem as a temporary solution, but it's not the correct fix. There was one point after the dhcp import where things worked but it might have been luck. I've been trying to trace this down for a while. I believe it's a bug in the wi code. Two Dissassociate events are sent to the 80211 state machine by dhclient and it gets put in the INIT state, later the card gets link and it puts the 80211 state machine in the RUN state, though it's an invalid state transition. I've tried forcing it to the ASSOC state first with minor luck but I've not yet been able to get it consistent. I'll try and provide more concrete data tonight... Cheers, Benjamin -- 3D Research Associate / System Administrator +61 8 8302 3669 School of Computer and Information Science Room D1-07, ML Campus University of South Australia Mawson Lakes Blvd. Benjamin.Close@cs.unisa.edu.au South Australia, 5095 F00D C83D 5F7E 5561 DF91 B74D E602 CAA3 4842 B5B4