Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1539986pxb; Thu, 16 Sep 2021 09:31:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVuV9e3tvarbRHQ5RSam+6xOKbppF6vs86KdTsqfd/djrau0NftRFOH6bKgPZFLFPGoyrn X-Received: by 2002:a6b:c3ce:: with SMTP id t197mr4994617iof.159.1631809878022; Thu, 16 Sep 2021 09:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809878; cv=none; d=google.com; s=arc-20160816; b=Y7644I/7wT5zCIou/ApXirfCF1yamSN2tMABmkFEsh2fHwdcettU7Iurw84Ze/m963 fND3hlLgAQ2oRIVAGtm/LmCifGmsel1ogePKHmqeFfvQs2nOVW3Zc9M6CoceJmFczS8d oWBjIw2w1Rf9U24BImY/GNVY9kI79N5W5OwBFRNdYVNS85c88F2fTMvHMo1D2HVIunwT Xd7eFKkJnjkMXekNkMvYF2UaR3iQJV/vgsM6pGgi6Ccb2z2ZcovN35y3QtMohRUGchfY 0a7V+0g/c3u2rYYIaR5aeqJvj45lu5sc5+8fwi2MJM3JpIWOsGA/iQbgS4kaXT6SoGKy PAbA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8Gl79Tnd90w80gIX00MPhw74XdG7ADNCx3XTjo8NnBs=; b=ehmbgMKOTIIvr726XIkdtIyHpkd91Mvd/VykpkC7DUyNfDzzslWvrOaW6qq0LfCRln 2V/TXwQevlA1wJgJ3ND3Oz1iZPa5iwz7Rh3NSdrFatQz1oJkh8oFnXBjavPmv9vz9diz IAsyZNTLQtsGgLFBv4ZP30QZ7Fr7wGv3VZIQnsnX4YmmdbMMYxa7pQ2NRqsTG9BrPp/D f/KJVjX4c5tgSYOpbEim1xznwkH7dSr/e3EfEwZkAhi/VC/mnAfL7z7jfThmlCviMl23 mzC5+Twi5sOD4y6hjtG+LyZQGTDIbDiQjEAR7usgejmMdBmkRUn47AZzMI+QpXmmrzbF 6Aug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iZSBhgLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si3261573ilb.43.2021.09.16.09.31.05; Thu, 16 Sep 2021 09:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iZSBhgLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233051AbhIPQaV (ORCPT + 99 others); Thu, 16 Sep 2021 12:30:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:58934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241555AbhIPQVn (ORCPT ); Thu, 16 Sep 2021 12:21:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15F8F61425; Thu, 16 Sep 2021 16:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808907; bh=cV7WmLDjnDZQEeewxro9qVt6omi3siHsFrzxGLSmrOQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZSBhgLkuTSp6IeeaxZHJJR03d5Mo8+AMU9Pq7ypHCCUDmli7Lohj1Mj+d31HCj4j CqByZzvF/grGd6rK2Jdpv6tVVfie57m52C+/T3XiD9/9Jx7+HFQN+IZL6tzv0tLapQ iWKaTrQr6AU4U81mo5G5386zNHcQYaRrc4i2xgDE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilan Peer , Luca Coelho , Sasha Levin Subject: [PATCH 5.10 266/306] iwlwifi: mvm: Fix scan channel flags settings Date: Thu, 16 Sep 2021 18:00:11 +0200 Message-Id: <20210916155803.133853202@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilan Peer [ Upstream commit 090f1be3abf3069ef856b29761f181808bf55917 ] The iwl_mvm_scan_ch_n_aps_flag() is called with a variable before the value of the variable is set. Fix it. Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210826224715.f6f188980a5e.Ie7331a8b94004d308f6cbde44e519155a5be91dd@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c index aebaad45043f..a5d90e028833 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -1682,7 +1682,7 @@ iwl_mvm_umac_scan_cfg_channels_v6(struct iwl_mvm *mvm, struct iwl_scan_channel_cfg_umac *cfg = &cp->channel_config[i]; u32 n_aps_flag = iwl_mvm_scan_ch_n_aps_flag(vif_type, - cfg->v2.channel_num); + channels[i]->hw_value); cfg->flags = cpu_to_le32(flags | n_aps_flag); cfg->v2.channel_num = channels[i]->hw_value; -- 2.30.2