Return-path: Received: from mail-oa0-f46.google.com ([209.85.219.46]:60362 "EHLO mail-oa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752838Ab2IKQUD (ORCPT ); Tue, 11 Sep 2012 12:20:03 -0400 Received: by oago6 with SMTP id o6so354842oag.19 for ; Tue, 11 Sep 2012 09:20:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1346146446-628-1-git-send-email-yeohchunyeow@gmail.com> <1346746298.3737.0.camel@jlt4.sipsolutions.net> <20120904102204.GA2541@w1.fi> <1346758521.3737.28.camel@jlt4.sipsolutions.net> <20120905071653.GB3629@w1.fi> <20120905080336.GA4747@w1.fi> <87zk4y3tsz.fsf@purkki.adurom.net> Date: Wed, 12 Sep 2012 00:20:02 +0800 Message-ID: (sfid-20120911_182009_064103_D6C0573A) Subject: Re: [PATCH] ath5k: add support of HW encryption in management frames From: Yeoh Chun-Yeow To: Nick Kossifidis Cc: Kalle Valo , Adrian Chadd , Jouni Malinen , Johannes Berg , linux-wireless@vger.kernel.org, jirislaby@gmail.com, mcgrof@qca.qualcomm.com, ath5k-devel@venema.h4ckr.net Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: > To be more clear: you can tell the hw to *only* disable decryption and > keep doing encryption. But the question here is that during Rx, need to do SW decryption for management frame and then HW decryption for unicast data frame for all the frame coming from the same STA. I still not so sure how to do that. Jouni said that the workaround is to re-encrypt(incorrectly) received robust unicast management frames if hwaccel for CCMP was configured for the transmitting STA (this is to undo the incorrect decryption done by the hardware) and then pass the encrypted frame to mac80211 for software decryption. ---- Chun-Yeow