Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7566343rwd; Tue, 20 Jun 2023 03:09:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72mmvwIYHrlbaixAjguwCMy4j2+6nO8sTecr6SMH0y/vXzzb1/HP2HMNA7QIFKrkk5gVu9 X-Received: by 2002:a05:6808:2c1:b0:39e:d115:57b1 with SMTP id a1-20020a05680802c100b0039ed11557b1mr7333225oid.14.1687255767342; Tue, 20 Jun 2023 03:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687255767; cv=none; d=google.com; s=arc-20160816; b=KIyQjJ19OuJM6iP1abSpQm6DpCBgmnHHblpQ9oNgrICmZadaJr8mi3mUlOVKQZWMq/ 1Isql0mx0NAXnHBy3EV2M7jeLR/CWUdTB4y1fzJ/TbzwpQ11Pifox17A6TMe4Nn759tM qi5XaIPPpEYnuh85apkwZIO/s5hrUgtarnkaRUUtZeLQsCy80slkQxwZTLDA9EYSDuXg AyxDqd7UJwmWX5h3eo7OIAnpptai21HXX4kD1sTgC4tW1c3akfKuxD942a/9Odm+eshm BPayM4qaoUJpoCafzpdBtrSDLtWKOe1OQYGdjUul42vEFtNAGubIGbPxBZw4wvhjAKmE u2Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/CyB7ESFcIXddyL96JqQPAXVTwHTMZXhkZ4EapvN8uQ=; b=yo8aXuYNB7wRlkep5UZSOuv291CVIa0+T32S71MwLdoquN0pozRyzyKjYAAmXcxL9v 7mp6M99BAVEg598opGfuZiz4qV/8mNsaKkQIK22Ms1HQXUbJDstn9GSBuThMTXQPFGF9 92e/t8+R2Ol74X+IPlMjlcECWYxAmAFuzqsXWwbKs22VLhqyHE6qK7x8ZcB+EXwLfSot GEcH/EzuukFeafXdUvTkuMLQVayVyAFb/RY3TxaosEs3BxJrFsjXVX6+p+ypBjD6Kadv eRRh0uDBEV1PfXADOXbEarQEupNBG1ckKdY2tF2oy0iEqD5m540TIGa4DT/GPw1Cyhho zbnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AsYjErlV; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a17090a648800b002533ea2ad58si9427523pjj.140.2023.06.20.03.09.19; Tue, 20 Jun 2023 03:09:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AsYjErlV; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231954AbjFTKFR (ORCPT + 59 others); Tue, 20 Jun 2023 06:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232147AbjFTKEz (ORCPT ); Tue, 20 Jun 2023 06:04:55 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B4D8E7F for ; Tue, 20 Jun 2023 03:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687255494; x=1718791494; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/Pv7DpwL6dPY29Hb3/kRW9xlFtGj7Dzef9kp10Zyr2Q=; b=AsYjErlVMls1xeMhsBfH75atokFTcgmO3BOLVzZc9VwWVTy8IYReO9BL a868LaEovX9HdnGeujZE/5ROTDxFNgshRpTvGAjR76xOSOLmUbrBaDjPg yDuK21sDxZ+vIstlnz2inreVFHLCP0MRglYhZBMfNe+DN4hk5eG0cJNRf 9GkfTMQE9SLnJfjq0kewJXb8Q7b4koBwqyJYpmV8fjK7JOApT19TIwZhi 6r/CmL9xm04RA1Xax+BYyhdiLMoPo/9tSfb5mj7KgvkDNFyaKoWeN5E97 N8AM+sEmB/yVUv7k6X/95Tg/JmWKCR7q6bvHScmjNNnoz2Lj6n+eZl4rE Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="359819652" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="359819652" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 03:04:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="838143568" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="838143568" Received: from rafist-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.208.68]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 03:04:52 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 15/19] wifi: iwlwifi: mvm: indicate HW decrypt for beacon protection Date: Tue, 20 Jun 2023 13:04:01 +0300 Message-Id: <20230620125813.a50cf68fbf2e.Ieceacbe3789d81ea02ae085ad8d1f8813a33c31b@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230620100405.45117-1-gregory.greenman@intel.com> References: <20230620100405.45117-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg We've already done the 'decryption' here, so tell mac80211 it need not do it again. Fixes: b1fdc2505abc ("iwlwifi: mvm: advertise BIGTK client support if available") Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c index 9dbe71d299ae..8d1e44fd9de7 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -279,7 +279,8 @@ static void iwl_mvm_get_signal_strength(struct iwl_mvm *mvm, static int iwl_mvm_rx_mgmt_prot(struct ieee80211_sta *sta, struct ieee80211_hdr *hdr, struct iwl_rx_mpdu_desc *desc, - u32 status) + u32 status, + struct ieee80211_rx_status *stats) { struct iwl_mvm_sta *mvmsta; struct iwl_mvm_vif *mvmvif; @@ -308,8 +309,10 @@ static int iwl_mvm_rx_mgmt_prot(struct ieee80211_sta *sta, /* good cases */ if (likely(status & IWL_RX_MPDU_STATUS_MIC_OK && - !(status & IWL_RX_MPDU_STATUS_REPLAY_ERROR))) + !(status & IWL_RX_MPDU_STATUS_REPLAY_ERROR))) { + stats->flag |= RX_FLAG_DECRYPTED; return 0; + } if (!sta) return -1; @@ -378,7 +381,7 @@ static int iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_sta *sta, if (unlikely(ieee80211_is_mgmt(hdr->frame_control) && !ieee80211_has_protected(hdr->frame_control))) - return iwl_mvm_rx_mgmt_prot(sta, hdr, desc, status); + return iwl_mvm_rx_mgmt_prot(sta, hdr, desc, status, stats); if (!ieee80211_has_protected(hdr->frame_control) || (status & IWL_RX_MPDU_STATUS_SEC_MASK) == -- 2.38.1