From owner-freebsd-current@FreeBSD.ORG Sun Mar 29 19:41:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2004F1065670 for ; Sun, 29 Mar 2009 19:41:40 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id E124A8FC1B for ; Sun, 29 Mar 2009 19:41:39 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from Macintosh-4.local ([10.0.0.194]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2TJfdsx077471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Mar 2009 12:41:39 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49CFCEF3.8020308@freebsd.org> Date: Sun, 29 Mar 2009 12:41:39 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Daniel Thiele References: <49C83038.40300@gmx.net> <49CAC1C0.9030506@freebsd.org> <49CEA474.9020302@gmx.net> In-Reply-To: <49CEA474.9020302@gmx.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-current@freebsd.org Subject: Re: Wireless connection (WPA-EAP) stops working after a while 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: Sun, 29 Mar 2009 19:41:40 -0000 Daniel Thiele wrote: > Hi Sam, > > I ran tests with both a CURRENT from March 26 + (the manually updated) > wpa_supplicant 0.6.9 and an older CURRENT from March 1 2000h + > wpa_supplicant 0.5.11. I included the logs below. Unfortunately, in both > cases I get the "WPA: Failed to set PTK to the driver" error and the > wireless adapter stops working. > > wlan0: ieee80211_crypto_newkey: cipher 3 flags 0x3 keyix 4 > wlan0: ieee80211_crypto_newkey: unable to setup cipher AES-CCM Here's the issue. The request to plumb AES PTK uses a fixed key index and not IEEE80211_KEYIX_NONE (-1). This causes the ath driver to return an error. I'll need to review code to understand what's wrong. Odd that it doesn't happen with WPA-PSK as the mechanics are (should be) identical. Sam