From patchwork Tue Jan 20 10:42:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5667401 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E09B3C058D for ; Tue, 20 Jan 2015 10:43:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27D762035B for ; Tue, 20 Jan 2015 10:43:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FD6B2034A for ; Tue, 20 Jan 2015 10:43:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753773AbbATKnZ (ORCPT ); Tue, 20 Jan 2015 05:43:25 -0500 Received: from mail-wi0-f170.google.com ([209.85.212.170]:44074 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753636AbbATKnZ (ORCPT ); Tue, 20 Jan 2015 05:43:25 -0500 Received: by mail-wi0-f170.google.com with SMTP id em10so3801287wid.1 for ; Tue, 20 Jan 2015 02:43:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=hqltSDxp0kQtN8ooz/M7g8UKm2sEthAyC6a/RQGA74Y=; b=4N9LyD+U54o74CpcN4zAtsu3oqfrx87Ffc/oblAGSF8WisgzIPoCfLPCrJPcWwvN5f 8LwZCtG3qqmagau3p5VdCVVCi4MsC19j4DPTCwyWnGaH8DTtQINFIx6LG+JxWljfvvG3 HYBNEuKOZc9j3x9e3xXbslWR7XvitIcnaOosY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hqltSDxp0kQtN8ooz/M7g8UKm2sEthAyC6a/RQGA74Y=; b=FTu0eKevMBT8YS8itD0iInErSIB/fDWedPX9hnKipZCR9caSVrHnn3EH6VFfQy0idg c+8D8FHjfoy+W+5OUnw0LWX2FN+Zl83YDY++bt+T8NrGS17ge0YhVKDGMvBXLKN+hdZM ePsYuqvFYRcm2AqWi//z7F+Zie9ymw6zESvVRadous0jMDppfzx5BsPbfHa5GIrqyCLh UQBpyxr06usX0Lhc20syMA2gCBjYuud4xPtnlphKejSbbVB6i0kKg6LKR6FxgryRBrwa WCWyBzbPG8tAEJT3DbPBYFSzLZJwts7Qnhr0aVDJIT5q7RrU/G/+2yDTRw5LZXtY3f8K IjKA== X-Gm-Message-State: ALoCoQkF9bZHz4I8TRD806mWOlLoc9gT/wEuXQy1BoQPPacZzIteYcY7PJM3/M6IQSxJY8WDWQ/w5dup1xOFa2d++HozHS1KApWOK1Xq8d7eBtZfUqFysQye5dzecf3Qd6Vh+/VW6QXK X-Received: by 10.194.185.243 with SMTP id ff19mr20310900wjc.126.1421750603818; Tue, 20 Jan 2015 02:43:23 -0800 (PST) Received: from bob.homerouter.cpe (apn-46-76-65-212.dynamic.gprs.plus.pl. [46.76.65.212]) by mx.google.com with ESMTPSA id da2sm10567030wjb.21.2015.01.20.02.43.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 02:43:23 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Marek Kwaczynski , Michal Kazior Subject: [PATCH 1/2] ath10k: remove sw encryption for pmf Date: Tue, 20 Jan 2015 11:42:42 +0100 Message-Id: <1421750563-15945-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marek Kwaczynski Software encryption was never necessary. Tested with fw 636 and fw 10.x. Signed-off-by: Marek Kwaczynski Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/mac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 9524bc5..78834c3 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -58,10 +58,7 @@ static int ath10k_send_key(struct ath10k_vif *arvif, switch (key->cipher) { case WLAN_CIPHER_SUITE_CCMP: arg.key_cipher = WMI_CIPHER_AES_CCM; - if (arvif->vdev_type == WMI_VDEV_TYPE_AP) - key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT; - else - key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; + key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT; break; case WLAN_CIPHER_SUITE_TKIP: arg.key_cipher = WMI_CIPHER_TKIP;