Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1222647pxj; Fri, 18 Jun 2021 02:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwD8rOAs8/o4FFTqvpa1nPDn3bLF2jLe8rUVKNEQFCcwnT424cMK/yhy/BCG//yDlRoRTa X-Received: by 2002:a05:6402:1a:: with SMTP id d26mr3715148edu.105.1624007887677; Fri, 18 Jun 2021 02:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624007887; cv=none; d=google.com; s=arc-20160816; b=yVrBC5+P8ZBknT+k5g0QrtOqY8SDWRVhvtafL7fs7NnhYBtX9FRbnB63Hp1exXS3id keV8iRqdUBOy///ALFJ54iKB1Vr7aHlnDF3AnS4azqSDt4NXWdXqcY4YaPud9bDmn1F5 Qh9ig5wlxfIkoJcifSEj+DsJPo3gCJwL9wbQY+JAovKbnMTVt9s4aj1sEKS9oUJjwhKG cJ7ocECkTk1tQT/J8/53eA59ga7MVzLQBZBJgGCrH5TH4P8JCYAgsJhSA2HDLS4+p3XP +Sa2QTSfzevNiDrZULxz5KdE4x/qcLMPW9q/pLIsMh1ldOGxjZNvdUMjq5CRGPHofoKT OPmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from; bh=r03Alh7Q/L6FUat1NYm123U+K8OCV+CIDtGJ8wPLs98=; b=hmCPRLK9bN6Sq8nttz5EpmcW8xOz/kESbQ6fndStvHb5VWbUnobWIf7ni205S5IWPv Axi0yUSvYjhWSyLPkOC2vpP5AiAq5smtprz9vKtuS/GMgSaSelcFCrIIXjmoQ1mm8hwz gD/h0Bi3vhM2RK0WD/HCJFT7fmWnHsigu+UHmAv1rwQjT83HEjOBd3fA7V+c9UFZVsB/ VRgg/F+pswO9c9sjm/fF6eU6RoJHNXOq4b5yE2z7Sw9d88UT0AZpoztM9Ilj57xOVXUD n5qKQ/y4U7dbG1DDRtQeLmO5FM4SEYrA2RG7w49LHMdUqIJ/VuzTaBrasY9TE+N2NrcZ rVBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si1945767ejj.485.2021.06.18.02.17.43; Fri, 18 Jun 2021 02:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232215AbhFRIFp (ORCPT + 99 others); Fri, 18 Jun 2021 04:05:45 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:48090 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233009AbhFRIEC (ORCPT ); Fri, 18 Jun 2021 04:04:02 -0400 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=kveik.lan) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lu9RQ-001YIf-Ln; Fri, 18 Jun 2021 11:01:30 +0300 From: Luca Coelho To: kvalo@codeaurora.org Cc: luca@coelho.fi, linux-wireless@vger.kernel.org Date: Fri, 18 Jun 2021 11:01:18 +0300 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210618080121.588233-1-luca@coelho.fi> References: <20210618080121.588233-1-luca@coelho.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.5-pre1 Subject: [PATCH 07/10] iwlwifi: mvm: fill phy_data.d1 for no-data RX Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg We don't fill in phy_data.d1 in no-data RX, and thus we pretend some data is actually filled in radiotap when it isn't or has default (zero) values. Fill in phy_data.d1 appropriately, and while at it also move the info_type initialization into the initializer. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c index 8e26422ca326..c0babb8d5b5c 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* - * Copyright (C) 2012-2014, 2018-2020 Intel Corporation + * Copyright (C) 2012-2014, 2018-2021 Intel Corporation * Copyright (C) 2013-2015 Intel Mobile Communications GmbH * Copyright (C) 2015-2017 Intel Deutschland GmbH */ @@ -2001,8 +2001,10 @@ void iwl_mvm_rx_monitor_no_data(struct iwl_mvm *mvm, struct napi_struct *napi, struct sk_buff *skb; u8 channel, energy_a, energy_b; struct iwl_mvm_rx_phy_data phy_data = { + .info_type = le32_get_bits(desc->phy_info[1], + IWL_RX_PHY_DATA1_INFO_TYPE_MASK), .d0 = desc->phy_info[0], - .info_type = IWL_RX_PHY_INFO_TYPE_NONE, + .d1 = desc->phy_info[1], }; if (unlikely(iwl_rx_packet_payload_len(pkt) < sizeof(*desc))) @@ -2015,10 +2017,6 @@ void iwl_mvm_rx_monitor_no_data(struct iwl_mvm *mvm, struct napi_struct *napi, energy_b = (rssi & RX_NO_DATA_CHAIN_B_MSK) >> RX_NO_DATA_CHAIN_B_POS; channel = (rssi & RX_NO_DATA_CHANNEL_MSK) >> RX_NO_DATA_CHANNEL_POS; - phy_data.info_type = - le32_get_bits(desc->phy_info[1], - IWL_RX_PHY_DATA1_INFO_TYPE_MASK); - /* Dont use dev_alloc_skb(), we'll have enough headroom once * ieee80211_hdr pulled. */ -- 2.32.0