From owner-freebsd-current@FreeBSD.ORG Thu Feb 3 04:05:51 2005 Return-Path: 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 A808416A4CE for ; Thu, 3 Feb 2005 04:05:51 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4998A43D4C for ; Thu, 3 Feb 2005 04:05:51 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] (sam@[66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j1345oWi064214 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Feb 2005 20:05:50 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <4201A342.9010201@errno.com> Date: Wed, 02 Feb 2005 20:06:26 -0800 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tai-hwa Liang References: <41F1E26E.8030200@errno.com> <41F2FED8.606@errno.com> <05020311245211.96098@www.mmlab.cse.yzu.edu.tw> In-Reply-To: <05020311245211.96098@www.mmlab.cse.yzu.edu.tw> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Bryan Bunch cc: freebsd-current@freebsd.org Subject: Re: WPA with ath X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 03 Feb 2005 04:05:51 -0000 Tai-hwa Liang wrote: > On Sat, 22 Jan 2005, Sam Leffler wrote: > >> Bryan Bunch wrote: >> >>> I'm trying to connect to a Linksys WRT54G. I have tested the card on >>> the computer when booting up in XP and it connects fine via WPA. I >>> also tested the card in CURRENT with WPA disabled and the card >>> connected fine. >> >> >> There's nothing useful in the log you included. You can get the >> reason code sent by the ap by enabling association debugging in the >> 802.11 layer. I usually do this with the 80211debug program found in >> /usr/src/tools/tools/ath. Something like >> >> 80211debug +assoc+auth >> >> should suffice. Messages go to the console. >> >> I've seen postings in various forums that this AP has issues with >> certain firmware revs; you might check if your firmware is up to date. >> >> Past the above a packet trace is needed. > > > Hi Bunch, > > According to WPA for 802.11i, section 2.2.2: > > The only unencrypted data packets allowed are unicast 802.1X > data packets and unencrypted 802.1X data packets are only > allowed when there is no Pairwise key between the station > and AP otherwise unencrypted data packets must be discarded. > > I guess that's why your station being deauthenticated right after > seeing "Group rekeying completed with..." since WPA requires station > sending group EAPOL key in encrypted form once the pairwise key is > available and installed. > > In my testing environment, -CURRENT if_ath + wpa_supplicant 0.3.0 > always being kicked out by Buffalo AirStation G54 AP(firmware 2.20) > after station completed the group key handshake; however, the same > station/software configuration works flawlessly(read: only one 4-way > handshake + 2 way group key exchange) with another Orinoco AP(which > allows station to reply the last EAPOL successful message in plaintext). > > The attached patch works on my box. Would you please give it a try? > Yes, that makes sense. wpa_supplicant sets up the unicast key in the shared key area and not in the per-node unicast key slot so we're checking the wrong place for a key. Thank you. Sam