From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 29 19:56:41 2013 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B2A2CB98; Mon, 29 Jul 2013 19:56:41 +0000 (UTC) (envelope-from rpaulo@felyko.com) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 96FE22C5D; Mon, 29 Jul 2013 19:56:41 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:d5bd:470c:54f0:ad1c] (unknown [IPv6:2601:9:4d00:119:d5bd:470c:54f0:ad1c]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 9D8623982B; Mon, 29 Jul 2013 12:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=felyko.com; s=mail; t=1375127800; bh=THwjFTgHyKUTPQmZVvUi857CdVlGRoMd4JnV5VNK5mY=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=MzrlKPwt/FHpgYGe8S7MzLd5VQ8LR+tnX6X2lPhJq+HKR1nCMAKg+tpgCJfLZYCFq 42IinXY5K6zcO3SCagg+Z6B0eoly4UX3K+L5G4r72eoL7RiPx+FWIH1X0mAyyDR/se 22CjtDNCwZqJdC3Y4cG9T1v9Tq0rjCB4d1KBKJeI= Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: 802.1X: dhclient started before the auth. process ends From: Rui Paulo In-Reply-To: <51F6758C.9020004@dumbbell.fr> Date: Mon, 29 Jul 2013 12:56:40 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5FE3C8E1-E073-423D-84E2-242D16CA31E4@felyko.com> References: <51F26CEB.9010200@dumbbell.fr> <20130729095946.GK59101@e-new.0x20.net> <51F6758C.9020004@dumbbell.fr> To: =?iso-8859-1?Q?Jean-S=E9bastien_P=E9dron?= X-Mailer: Apple Mail (2.1508) Cc: freebsd-current@freebsd.org, wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 19:56:41 -0000 On 29 Jul 2013, at 07:00, Jean-S=E9bastien P=E9dron = wrote: > On 29.07.2013 15:34, Adrian Chadd wrote: >> I think you were lucky. >=20 > I think you're right. >=20 > It works perfectly on FreeBSD 9.1, because wpa_supplicant finishes the > auth process really quickly, ie. before dhclient receives an answer = from > dhcpd from the unauthenticated network: >=20 > Jul 29 15:39:46 - kernel: bge0: link state changed to UP > Jul 29 15:39:46 - dhclient[46150]: DHCPREQUEST on bge0 to > 255.255.255.255 port 67 > Jul 29 15:39:47 - wpa_supplicant[46119]: CTRL-EVENT-EAP-STARTED EAP > authentication started > ... > Jul 29 15:39:47 - wpa_supplicant[46119]: CTRL-EVENT-EAP-SUCCESS EAP > authentication completed successfully > Jul 29 15:39:48 - dhclient[46150]: DHCPREQUEST on bge0 to > 255.255.255.255 port 67 > Jul 29 15:39:48 - dhclient[46150]: DHCPACK from 192.168.200.224 > Jul 29 15:39:48 - dhclient: New IP Address (bge0): 192.168.200.91 > Jul 29 15:39:48 - dhclient: New Subnet Mask (bge0): 255.255.255.0 > Jul 29 15:39:48 - dhclient: New Broadcast Address (bge0): = 192.168.200.255 > Jul 29 15:39:48 - dhclient: New Routers (bge0): 192.168.200.254 >=20 > On -CURRENT, wpa_supplicant is started more than 10 seconds after the > interface is UP and dhclient sent its request > (http://pastebin.com/ZHcbHLQZ). Therefore, a lease from the > unauthenticated network arrives first. It was working with a previous > -CURRENT (buildworld from around April if memory serves). Disable all the configuration settings and run wpa_supplicant -ddd -- Rui Paulo