Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:50766 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932265Ab2CGOuz (ORCPT ); Wed, 7 Mar 2012 09:50:55 -0500 Subject: Re: Hw Accel in Secured Mesh No Longer Work From: Johannes Berg To: Yeoh Chun-Yeow Cc: linux-wireless@vger.kernel.org, Javier Cardona In-Reply-To: (sfid-20120307_154743_314516_32C26C90) References: <1331105902.3519.2.camel@jlt3.sipsolutions.net> <1331130686.3519.14.camel@jlt3.sipsolutions.net> <1331130810.3519.16.camel@jlt3.sipsolutions.net> (sfid-20120307_154743_314516_32C26C90) Content-Type: text/plain; charset="UTF-8" Date: Wed, 07 Mar 2012 15:50:53 +0100 Message-ID: <1331131853.3519.17.camel@jlt3.sipsolutions.net> (sfid-20120307_155058_374701_FE09C43F) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2012-03-07 at 22:47 +0800, Yeoh Chun-Yeow wrote: > Hi, Johannes > > > Does meshd-nl80211 set the station flag NL80211_STA_FLAG_AUTHENTICATED > > before the key? > > The key is installed before the set the station flag > NL80211_STA_FLAG_AUTHENTICATED. > > /* key to encrypt/decrypt unicast data AND mgmt traffic to/from this peer */ > install_key(&nlcfg, peer, CIPHER_CCMP, NL80211_KEYTYPE_PAIRWISE, 0, mtk); > ..... > set_authenticated_flag(&nlcfg, peer); Does it work if you turn it around? Are there any problems with doing so? This is solvable in the kernel, but probably harder, and impossible if you wanted to use crypto algorithms that mac80211 doesn't support in software. johannes