Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp221802lqr; Wed, 5 Jun 2024 04:18:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvCRAFuU/ZReGIdlkXaYxCSpfvmnWXY8+2J39HU1b2Um3UyCYvVwsclzcne+K30REAQW1UeNWYofk+6axSv48FU9AK9rDeB8szq5eo2A== X-Google-Smtp-Source: AGHT+IEirFduVTIMrN9bQG6WGHbTeh6UyVVXYDPpCz//6wZsyN2KSW+u7BmoScuYzaWyqx3ck6If X-Received: by 2002:a05:6358:e49d:b0:18d:8fd8:e523 with SMTP id e5c5f4694b2df-19c6c7c2deemr243366955d.15.1717586322475; Wed, 05 Jun 2024 04:18:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717586322; cv=pass; d=google.com; s=arc-20160816; b=adFyLu1jzzS+IRs00uFa++KPJS9ImAwYjVbTLjOUJBYZBjDorl2K3tFyIKslDqn0oN RqrN0Thrt6q3W2I8BhGfmpznENdaOzNsxp3LLZzZ+ZAJVsij39TtC7PZP7vWSxwNxGaB 6cXs6gQN9QTLmmBNqlEPp53zw6i7JXmrdTDxZwwMY3AngOD1ZXQeHjkKL/2AGYoBLYwS ra6uZspnMcZN/N9B341Bj2t7fbxKS+4K1efpNsQTyiWYlTs9wvHdQqLuq9qu8nHhlp95 jZBqQohDFbd2mlcAUpvX8HY3SuL8tQg3eA1U+hB9CXWaw4djU/ZNQvthLIShWFoJ1FJH 6tQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=FDENho0dpb49mnQ0fIbQvlNS/5pt9iRClaZwBah9shU=; fh=BZy5jxIwA3jbHxMrJjYf+SEtKk9sgaZBZDDEh1XM3PU=; b=OvqwNp10jDuI9RD9IoYOyI3yLyAywFyK0dPTzpX2OKDYfYuLUQrOtNPWi6DH3M1sXF DU4Bhc8Et7YiOUcM9qqfz6YTXk592MNsr4YXFPrrh5FNF+lg0CMGOAKjaj89tpxlTCog 9075LPEEaFRpYC404hbCSMVGahtgKUnXsF9QMO95rtGROUneJFCOQ+xssjU7WkilNz7P 982MFXF9K66VAKL7cuaE7kZ/B/fUch7YvGsl1opgH9u/IhGIAIXFE/4+5QHuSwIMseAY 1USIZ0+qfpgR7MCn2B93EyhEMObNMk1Ncrg3/qAp5gqEdG0/vjS2R5Ghzv+8IyXWTWY9 Ht7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aYRalFHd; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3542e3a54si359464a12.44.2024.06.05.04.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 04:18:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aYRalFHd; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C76C7283DF6 for ; Wed, 5 Jun 2024 11:18:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2BA4194158; Wed, 5 Jun 2024 11:17:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aYRalFHd" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEFAC194131 for ; Wed, 5 Jun 2024 11:17:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717586247; cv=none; b=bVroPQy+mm4BP8fQGSma5KHJm2F335YHbotK7mr7Qj5ZFjCmPDetBwgZMZikG81SJQ3QMXNLhFqqHuneW3dRtz7uMYaqFRGvI/QYjMFg1bpEx65ZJ7G1ghVR/XL1yEAMt9P9c62PCWSbZjRHxQmhjlWdYVzOySlY8alaEpNzTWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717586247; c=relaxed/simple; bh=L/gBlK7If2EttVgOwJIRAx7n48UUcg0EPj79tOCQTqY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qLSZ0jQ7Qvbs1cbMMu42pgVRHjO8MkCiznBg+5uhGj7HQPk+K0FTH2HC1btDxJs8zRuJcFBWMwMzoWRaZIFYXtiTWBzDy6FhfXnG60zVD/ojp78KPo5ZJAb7kjDHH8MtZP9rcZ3qX++kmrihDywwGCqo6r+T5iWFWWyuyhCVlio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=aYRalFHd; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717586246; x=1749122246; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L/gBlK7If2EttVgOwJIRAx7n48UUcg0EPj79tOCQTqY=; b=aYRalFHdLYYzZiPMbOMYXUsS8dcRXKmfI4yAxRntTd4fWDx9mo7Fk9GU pkain/SupbUi/vu+BsjFWpcZ7dJlJqa3toZzDxoxk/e4lnRkF1eJwW9D9 zFlXA/da0Pe3vQ9FD0VDVMPQEHQ6leBVJFA2kplS/MhsFk1rp1u2MIn7R QvDxynatr1G5wJW5pZnCH2t6Hwn2QGzMLoPa3+5NNj3DCIJaM6Ooezi4l /wnFw0jHM6NML5m8LdHCNy1xoeegISiYq8HMpTpkFAa+qJyF2S9CY4338 qhac7WEAXwRSK2kvaT+idGoBTl0nxFPVHQmrYsoq4MfnHCLXwgI79D6cp Q==; X-CSE-ConnectionGUID: 4gYGRy3kRNe+Q5LeHrQ0kA== X-CSE-MsgGUID: vwdXbg35SEWjgBPQ+7WMOg== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="36718056" X-IronPort-AV: E=Sophos;i="6.08,216,1712646000"; d="scan'208";a="36718056" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 04:07:51 -0700 X-CSE-ConnectionGUID: VqNV0kbzSaW3Fe4poytHZg== X-CSE-MsgGUID: bp2k7d1BRs+Fqpw5vU7jAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,216,1712646000"; d="scan'208";a="37433786" Received: from weis0040.iil.intel.com ([10.12.217.108]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 04:07:49 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ayala Beker , Benjamin Berg Subject: [PATCH wireless 3/5] wifi: iwlwifi: scan: correctly check if PSC listen period is needed Date: Wed, 5 Jun 2024 14:07:38 +0300 Message-Id: <20240605140556.291c33f9a283.Id651fe69828aebce177b49b2316c5780906f1b37@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605110740.2046411-1-miriam.rachel.korenblit@intel.com> References: <20240605110740.2046411-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit From: Ayala Beker The flags variable is incorrectly checked while it is still cleared and has not been assigned any value yet. Fix it. Fixes: a615323f7f90 ("wifi: iwlwifi: mvm: always apply 6 GHz probe limitations") Signed-off-by: Ayala Beker Reviewed-by: Benjamin Berg Signed-off-by: Miri Korenblit --- 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 695b5ba3d023..31e014b66161 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -1827,7 +1827,7 @@ iwl_mvm_umac_scan_cfg_channels_v7_6g(struct iwl_mvm *mvm, */ if (!iwl_mvm_is_scan_fragmented(params->type)) { if (!cfg80211_channel_is_psc(params->channels[i]) || - flags & IWL_UHB_CHAN_CFG_FLAG_PSC_CHAN_NO_LISTEN) { + psc_no_listen) { if (unsolicited_probe_on_chan) { max_s_ssids = 2; max_bssids = 6; -- 2.34.1