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: 5667431 Return-Path: X-Original-To: patchwork-ath10k@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 5C6DFC058D for ; Tue, 20 Jan 2015 10:43:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9534A20389 for ; Tue, 20 Jan 2015 10:43:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF13C2035B for ; Tue, 20 Jan 2015 10:43:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YDWHk-0002HW-5A; Tue, 20 Jan 2015 10:43:48 +0000 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YDWHi-00028h-Ao for ath10k@lists.infradead.org; Tue, 20 Jan 2015 10:43:47 +0000 Received: by mail-we0-f182.google.com with SMTP id l61so11012687wev.13 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=U6+h9XwQZ2kfknEXkJAYwt33h4LN/EK89GHhBzbGEbH4Y5WHw9+i/erxr/pBB2Ui5R w8H7KUuMPAl4alLJ5HWmrXX0UBg8zlve8wLLhDuQor928sEaz3rPM+wr1/qoKV25+3uO kLn5YlU7UBXYylI4l3JiInzSdZbWld5ism/xFjGoashoF6ucF4LIPkC7F5HiBf2w9VCa q+cmwRIn9wwCxhyDd7gHszT5o1DWLvNT8pPZfy+wbFE5yiu14SPJQtQMhxcL+CTP4rHn GFAumXEDtEYNUdzwnjeNzZR0/CZy4b7b4HnWqIzKsaSA2/7NeVpWIShduof1Nf8gddy/ a1TA== X-Gm-Message-State: ALoCoQmGrdlQBD/IOzJ7HiLBBg4Zrfc8vdHrqvkGbMjMOb02o67zafw8lEzFsnTmH32Z3oQVfHsEv/8zui1/CRTKCNBlRGWoRy4hzjc0bBf6swiqQjyxq3xG0MtH364A4TlvOo6CicWCM9nYywCDcm4oHdzy/tTgVtN8JsXO4D/n6FmxZLby730= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150120_024346_545517_11AEB20E X-CRM114-Status: UNSURE ( 7.13 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Marek Kwaczynski , linux-wireless@vger.kernel.org, Michal Kazior X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, 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;