From patchwork Fri Mar 6 11:27:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SenthilKumar Jegadeesan X-Patchwork-Id: 5954141 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 D794CBF6C3 for ; Fri, 6 Mar 2015 11:29:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BF8E20430 for ; Fri, 6 Mar 2015 11:29:15 +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 329472034E for ; Fri, 6 Mar 2015 11:29:14 +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 1YTqRL-0000YT-1s; Fri, 06 Mar 2015 11:29:11 +0000 Received: from wolverine02.qualcomm.com ([199.106.114.251]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YTqRI-0000Pp-DW for ath10k@lists.infradead.org; Fri, 06 Mar 2015 11:29:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1425641349; x=1457177349; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=gUt/SDprpU0NfVfwnbuQY3BGOOf6HZ0Pfrx6ecmPvxA=; b=h+wCvao6Kym+XbtwAIGNJlh47Cl21mF0TIsUeoVleYQPQRPHa54KXyiP zbMVZ+kJAMoP4Rtw9No0UEguHxcsXZiLgG5OCx6sbWgZpCYYIVsiuADWf EeGl/uBiwW/wBbJzptIdIVP8b4E+dl6M+deTalpelpB/Im4Vgyhpc1bEm o=; X-IronPort-AV: E=McAfee;i="5600,1067,7731"; a="198720010" Received: from ironmsg01-lv.qualcomm.com ([10.47.202.180]) by wolverine02.qualcomm.com with ESMTP; 06 Mar 2015 03:28:48 -0800 X-IronPort-AV: E=Sophos;i="5.11,352,1422950400"; d="scan'208";a="32543208" Received: from nasanexm01f.na.qualcomm.com ([10.85.0.32]) by ironmsg01-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 06 Mar 2015 03:28:46 -0800 Received: from aphydexm01a.ap.qualcomm.com (10.252.127.10) by NASANEXM01F.na.qualcomm.com (10.85.0.32) with Microsoft SMTP Server (TLS) id 15.0.995.29; Fri, 6 Mar 2015 03:28:45 -0800 Received: from localhost (10.80.80.8) by aphydexm01a.ap.qualcomm.com (10.252.127.10) with Microsoft SMTP Server (TLS) id 15.0.995.29; Fri, 6 Mar 2015 16:58:39 +0530 From: SenthilKumar Jegadeesan To: Subject: [PATCH V3 2/2] ath10k: Enable encryption of ADDBA request in PMF configuration Date: Fri, 6 Mar 2015 16:57:50 +0530 Message-ID: <1425641270-4059-2-git-send-email-sjegadee@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425641270-4059-1-git-send-email-sjegadee@qti.qualcomm.com> References: <1425641270-4059-1-git-send-email-sjegadee@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01E.na.qualcomm.com (10.85.0.31) To aphydexm01a.ap.qualcomm.com (10.252.127.10) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150306_032908_486876_7CEB3DF3 X-CRM114-Status: UNSURE ( 7.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.1 (-----) Cc: linux-wireless@vger.kernel.org, SenthilKumar Jegadeesan 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: , 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=unavailable 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 In HT mode, firmware is not encrypting ADDBA request as PMF configuration is not set in peer flags during association. Set peer flags for MFP enabled station in ath10k driver. This change depends on mac80211 patch "[PATCH] mac80211: send station PMF configuration to driver". Signed-off-by: SenthilKumar Jegadeesan --- drivers/net/wireless/ath/ath10k/mac.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.9.1 diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 0c69687..83baed7 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1759,6 +1759,9 @@ static int ath10k_peer_assoc_prepare(struct ath10k *ar, ath10k_peer_assoc_h_qos(ar, vif, sta, arg); ath10k_peer_assoc_h_phymode(ar, vif, sta, arg); + if (sta->mfp) + arg->peer_flags |= ar->wmi.peer_flags->wmi_peer_pmf; + return 0; }