Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1949575lqo; Mon, 13 May 2024 03:35:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0Oiw5SqMw2CNLDaa49qbfha+DmYY5YarRmMIG8APMpLaVikBg3WVFPPhV/Gozsih4PZ0Xe9ZShOfdntgcqoa2c+LEpiDOu866U+QfvA== X-Google-Smtp-Source: AGHT+IFQTKAP/ns0AgDhxyRug5oX00sMIurbhZ+JsWWn/VsJOu8NMbD/225Z9YGAln49l31YMWAK X-Received: by 2002:a05:6e02:20e1:b0:36a:32f2:fc76 with SMTP id e9e14a558f8ab-36cc149a2d9mr119412435ab.26.1715596552958; Mon, 13 May 2024 03:35:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715596552; cv=pass; d=google.com; s=arc-20160816; b=I64cJY/hxBR7htM6TQJsIZ0MxAJCcE6SMqIczuRiLsw+Di69NJAEOKJB/LdVj/MxOD Hgx8lrMss2DJKb2tIofxt2rYNmArYF9tuP7akBuSln7JtXnALI2jqbqNGge82bFGAu48 JxiLXbuhsBYUxBWvCpuOyqaGhg94TbOklZCa8gJU9G5eiIgxjDuc25tpHyDc935cdOTV 0wApvR3J4R6j31A460oHMAVDLJQB2m0ssgBLqZCdlZcGMLpBik8K3fnyqrhE0kA4ShHc KKaAYvFyKpySVjEu4vKrHLxxokgFiWsqGzFN88GwhS+PZ9IGQId70Lg99kKboWXzIiH5 jihA== 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=r+sntEv0RqyFx31ulFcKgiTkKXi5BYAaO8zDTLhnfA8=; fh=x64D5kue8nyHAfuSgaJLI4uqlgoG7N1vYXIYFsnk4u4=; b=T1gQsHRWjwJdrVOW/IkBGiRBZ4cMZUki6AJIUROoYYX5NEX6IskXbMEPaeP60JCWv1 6yj+M4/udr1DNorlofbEXaNi16usjJC4NGlpmCsycAuzius5Txdz3NPy2joLJ4iYw8S+ YyO53Q3FAtZCTSrtCGaHENgsjrGtrza483eQQ0cFY7RKB86kiw9mNs0lzmfna6SzL87d Frc3F6uhhDY/AUXTtxrkNHiiHYCurk8w7smtLAUUMtlqe1dy3YFNPrC5nZxuefwL97Y9 a3wPEjawZ0heqhF5QILAqq/vWuCetXId0dzAODq2340jFE078Tu6e9AmWUONNeLoGKdq OXLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dt86Momu; 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-7585-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341276eea7si8635112a12.613.2024.05.13.03.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 03:35:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7585-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dt86Momu; 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-7585-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7585-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AD3B0B225A3 for ; Mon, 13 May 2024 10:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70D9414A4E2; Mon, 13 May 2024 10:27:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dt86Momu" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 DF0CB14A61B for ; Mon, 13 May 2024 10:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715596048; cv=none; b=I8UKr6XcOM0dasQ/9w7w9DCU+ctSTJ+V38I3S0yajsrixkO1XDSoFHk72pDnvQxdZ+ZgPiAmJX9lvjd4u0lb+g7NL99k3B0xXINcFTVMJ6PCt0Yl4icEeuAzGemF41d/Bo69vofNit79M0T8sO6GTg6vl6W7bC8gaqF90T6g5Sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715596048; c=relaxed/simple; bh=dYfuhCe6RwMSb+Vi0N0TYJPlT0h1+m8QLXI1q6AQ1Dw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uynDSTp9a22RqtMZmh91SHlvUoLaiKogQVEl3DEqOQGdPSBHpLZAhlEKaeHwplMp+znYHrAYmNeNs5izMOAv5JXYgUOSfyg5d1aAHn/aefPMABfIhgNgMjsd0jc5Yb8BMjBCAY4PyecKf9qkNgpMzXV9RNBaX8o/xrMBPFvOfXQ= 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=dt86Momu; arc=none smtp.client-ip=198.175.65.12 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=1715596047; x=1747132047; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dYfuhCe6RwMSb+Vi0N0TYJPlT0h1+m8QLXI1q6AQ1Dw=; b=dt86Momu6qr/pcBdfNjJf3KUK2CPTCqFYUFe2sPLDbPNzyeLDSjUjwmT OFV2nxGMo5zqTBzWSrMaVKsR+JsQQkGuwZcAxYD5bUjko6v0yFM4EAU/W 9EbVPcWFlOWJAANCU+aXg7HiWuzzf9wRdo8K3vOfIkL1R8UQfaILl6dii nGzoG7+tmkNCrjeNfTHVOmpATxLhpV9SSv8vVi+CDX8jb28wvvlJPW7BB DX+gt6iu0Ptvd01vIoiYetLHmr8eDq5nsnJFF6EiLBJLlD5PzUp01vbsf NEP6JqPReAEsyugj7eY8opD1fp/SADxIpYDhRPY2US3J6SLQYCvdghZh3 Q==; X-CSE-ConnectionGUID: FefBrzw+Stqbw2ysGnp5ew== X-CSE-MsgGUID: rW9g+euPTBe4yCppfLLfyw== X-IronPort-AV: E=McAfee;i="6600,9927,11071"; a="22928659" X-IronPort-AV: E=Sophos;i="6.08,158,1712646000"; d="scan'208";a="22928659" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2024 03:27:27 -0700 X-CSE-ConnectionGUID: qYq8CADDTKiWRTSnTj+kmw== X-CSE-MsgGUID: m0xpJ1KaR/i6uHmKF5eqsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,158,1712646000"; d="scan'208";a="53516411" Received: from weis0040.iil.intel.com ([10.12.217.108]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2024 03:27:25 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ayala Beker , Ilan Peer Subject: [PATCH 4/7] wifi: iwlwifi: mvm: properly set 6 GHz channel direct probe option Date: Mon, 13 May 2024 13:27:11 +0300 Message-Id: <20240513132416.91a631a0fe60.I2ea2616af9b8a2eaf959b156c69cf65a2f1204d4@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513102714.469087-1-miriam.rachel.korenblit@intel.com> References: <20240513102714.469087-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 Ensure that the 6 GHz channel is configured with a valid direct BSSID, avoiding any invalid or multicast BSSID addresses. Signed-off-by: Ayala Beker Reviewed-by: Ilan Peer Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c index 11559563ae38..85d8cbe6d248 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -1717,7 +1717,10 @@ iwl_mvm_umac_scan_fill_6g_chan_list(struct iwl_mvm *mvm, break; } - if (k == idex_b && idex_b < SCAN_BSSID_MAX_SIZE) { + if (k == idex_b && idex_b < SCAN_BSSID_MAX_SIZE && + !WARN_ONCE(!is_valid_ether_addr(scan_6ghz_params[j].bssid), + "scan: invalid BSSID at index %u, index_b=%u\n", + j, idex_b)) { memcpy(&pp->bssid_array[idex_b++], scan_6ghz_params[j].bssid, ETH_ALEN); } -- 2.34.1