Return-path: Received: from mail-ob0-f174.google.com ([209.85.214.174]:65075 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757281Ab2IKQg1 (ORCPT ); Tue, 11 Sep 2012 12:36:27 -0400 Received: by obbuo13 with SMTP id uo13so1061222obb.19 for ; Tue, 11 Sep 2012 09:36:27 -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: Tue, 11 Sep 2012 19:36:27 +0300 Message-ID: (sfid-20120911_183631_793862_203D70F6) Subject: Re: [PATCH] ath5k: add support of HW encryption in management frames From: Nick Kossifidis To: Yeoh Chun-Yeow 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=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: 2012/9/11 Yeoh Chun-Yeow : >> 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. > How about disabling acks on hw completely and handle them on sw ? This might keep the engine running ok for unicast frames. #define AR5K_DIAG_SW_DIS_ACK 0x00000002 /* Disable ACKs */ #define AR5K_DIAG_SW_DIS_CTS 0x00000004 /* Disable CTSs */ -- GPG ID: 0xEE878588 As you read this post global entropy rises. Have Fun ;-) Nick