From patchwork Mon Dec 17 16:05:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 1905791 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E5F62DFB79 for ; Sat, 22 Dec 2012 14:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412Ab2LVOwQ (ORCPT ); Sat, 22 Dec 2012 09:52:16 -0500 Received: from mail-we0-f175.google.com ([74.125.82.175]:41756 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144Ab2LVOwQ (ORCPT ); Sat, 22 Dec 2012 09:52:16 -0500 Received: by mail-we0-f175.google.com with SMTP id z53so2643138wey.6 for ; Sat, 22 Dec 2012 06:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:in-reply-to:references:from:date:subject:to :cc; bh=b2rPQmVIAGzxMyvqXEVf0ojRlSIer/vumaK/gts2O2o=; b=p8c7v0FyDeuNmVljoULYUGejX7Cf5pI6rmDO0wltfWfcfN1UaTU3zVkSIPLHbEWfM4 j7aSygyPI4xM+cFuJhLmwx6+jCCoK4BI+Twh+FJ6fg+qeNl1gmU5nC46+OsbfdsPDe17 dfS/tr1sjlGXId3TdEjzU9BbBHeZfszrNxjWePwE15d6jxM5i6lpU6fISB0TkvNgwmbk kJy7VlsbTtHUQqj3Fx4F42NoRd2JSKSYxhDeXcu1dbkbC89+pGKiIK403cJkA1dSkRmU QYZ9XVCsTm8FZFm6dg5xI+xf09uGxdVq/Cq6u84lcF2COqGTNFzEMuJNXMC1GoVrshA4 3AiA== X-Received: by 10.194.179.34 with SMTP id dd2mr28782176wjc.1.1356187579186; Sat, 22 Dec 2012 06:46:19 -0800 (PST) Received: from debian64.localnet (pD9F88B3A.dip.t-dialin.net. [217.248.139.58]) by mx.google.com with ESMTPS id i2sm34512442wiw.3.2012.12.22.06.46.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Dec 2012 06:46:18 -0800 (PST) Received: from localhost ([127.0.0.1] helo=debian64.localnet ident=chuck) by debian64.localnet with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1TmQL7-0004Aa-DN; Sat, 22 Dec 2012 15:46:13 +0100 Message-Id: <9ae8ebc3aa563de0978320035906f5d0358a1404.1356186145.git.chunkeey@googlemail.com> In-Reply-To: <8f92b38a456c1dd901ce2022fcb66609a5b8ac4b.1356186145.git.chunkeey@googlemail.com> References: <8f92b38a456c1dd901ce2022fcb66609a5b8ac4b.1356186145.git.chunkeey@googlemail.com> From: Christian Lamparter Date: Mon, 17 Dec 2012 17:05:55 +0100 Subject: [PATCH 6/8] carl9170: disable hw crypto for p2p networks To: linux-wireless@vger.kernel.org Cc: linville@tuxdriver.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org While the driver supports HW offload in a single P2P client configuration, it doesn't support HW offload in the concurrent P2P GO+CLIENT configuration. Signed-off-by: Christian Lamparter --- drivers/net/wireless/ath/carl9170/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index c1a272d..79888c9 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c @@ -583,6 +583,14 @@ static int carl9170_init_interface(struct ar9170 *ar, ar->disable_offload |= ((vif->type != NL80211_IFTYPE_STATION) && (vif->type != NL80211_IFTYPE_AP)); + /* While the driver supports HW offload in a single + * P2P client configuration, it doesn't support HW + * offload in the favourit, concurrent P2P GO+CLIENT + * configuration. Hence, HW offload will always be + * disabled for P2P. + */ + ar->disable_offload |= vif->p2p; + ar->rx_software_decryption = ar->disable_offload; err = carl9170_set_operating_mode(ar);