From patchwork Tue Mar 3 05:50:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SenthilKumar Jegadeesan X-Patchwork-Id: 5920031 X-Patchwork-Delegate: kvalo@adurom.com 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 6A6DBBF440 for ; Tue, 3 Mar 2015 05:51:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A8FA620265 for ; Tue, 3 Mar 2015 05:51:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3928920259 for ; Tue, 3 Mar 2015 05:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751544AbbCCFvd (ORCPT ); Tue, 3 Mar 2015 00:51:33 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:40744 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbbCCFvd (ORCPT ); Tue, 3 Mar 2015 00:51:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1425361893; x=1456897893; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=gUt/SDprpU0NfVfwnbuQY3BGOOf6HZ0Pfrx6ecmPvxA=; b=uj09a4ycN65b5EI00sz7B0TQEiOusjByHJh6zPNLEWRCODLceOue2P5m e7syi60Rbl+oyuFIcTrdLh32Lfb+UbJQhdO0nvW8PxgsIfgW9W+E/2fGW fDgjXiCoW3xTWSOlZMnneTz3GS+HQTtF5J/8Zo1MdCeZpoR8XT4DXJpZW Y=; X-IronPort-AV: E=McAfee;i="5600,1067,7728"; a="105967233" Received: from ironmsg04-l.qualcomm.com ([172.30.48.19]) by wolverine01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Mar 2015 21:51:33 -0800 X-IronPort-AV: E=Sophos;i="5.09,680,1418112000"; d="scan'208";a="826872491" Received: from nasanexm01d.na.qualcomm.com ([10.85.0.84]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 02 Mar 2015 21:51:32 -0800 Received: from aphydexm01a.ap.qualcomm.com (10.252.127.10) by NASANEXM01D.na.qualcomm.com (10.85.0.84) with Microsoft SMTP Server (TLS) id 15.0.995.29; Mon, 2 Mar 2015 21:51:31 -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; Tue, 3 Mar 2015 11:21:24 +0530 From: SenthilKumar Jegadeesan To: CC: , SenthilKumar Jegadeesan Subject: [PATCH V2 2/2] ath10k: Enable encrytion of ADDBA request in PMF configuration Date: Tue, 3 Mar 2015 11:20:48 +0530 Message-ID: <1425361848-24727-2-git-send-email-sjegadee@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425361848-24727-1-git-send-email-sjegadee@qti.qualcomm.com> References: <1425361848-24727-1-git-send-email-sjegadee@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To aphydexm01a.ap.qualcomm.com (10.252.127.10) 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=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 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }