From patchwork Fri Apr 5 07:36:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruth Mekonnen X-Patchwork-Id: 1920055 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=YpwCgEL5; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Uno0vyAp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V9r1r74k6z1yZH for ; Fri, 5 Apr 2024 18:38:08 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mBVgNEZCaraxUbAChFKOZG96+VZ6Gwtjo5GSBsU3LT0=; b=YpwCgEL5nhpqkp k954qalJr5VKt7T9hHATrYmIf1DHRcpfjo0lCK7Xw6ZVjhBXOCz8wQID5FCqQI6mYDDl1a+ijUKim 4GdGGVxPg7QsdNxTyL6kK6aKSuK8ajNQ0fCyLfDCtAqfuHEM4IP86uzFuTn9AnZqe171+mXkiA5Jz Gb5w1iaii++fXXPLpbb4M7i2ChpKp5f/AL3SfThHgAuxJ4UQK3I93r113HPyxhnB9DoZPEJKtQuZK 8Oar8TXUG1JQ/J6Vc98jKdmTFL9ugpQ2NlfT5olGttMrAM9nnE2SAPvJT8/uIciPXPGivUtSzwOUs VdLBqJ6wTIb4rO59TT3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rse8t-00000005hLx-2T7B; Fri, 05 Apr 2024 07:37:43 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rse8q-00000005hKk-2bxF for hostap@lists.infradead.org; Fri, 05 Apr 2024 07:37:42 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6ecff9df447so400021b3a.1 for ; Fri, 05 Apr 2024 00:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712302657; x=1712907457; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8qumEN5WBbdwUO+elucHCgK94d6CGFMyk7Pn+9FN2YE=; b=Uno0vyAp5OHReV9u1UkxifEXw3sqnMfbdCG+OiFvzTrrx5+5dQdodi+JIHG6HomzTl 653Ku9QNdekEvQjQEe/bsf6OiVivEccNLaevIcFysYnzEx/yvuxU5qF5r4C5AGKdc3mc mQ6XmoW4LOC57xdzHb/GRoNOcQXQVVHr1n07g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712302657; x=1712907457; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8qumEN5WBbdwUO+elucHCgK94d6CGFMyk7Pn+9FN2YE=; b=Hluvz5s/NiB9k2X5SLaFsvasQSdeCcFSIEl8+eJsAG3xhOLpdx0/+k88Tlqp1l5Z+V Bou5+tXyBUT43/voqIzD31gUIjw8UTaEnXeCWS6NE1P9EMUMFPtKMztOONeQEeBjVmxk +uGLhwdgBz4O+LdD0f4FJWrk1Nb82k3a5Nk4uh5SM+zrunSQ3kIMj87Utl4Av/1PZDa2 P8lHVeeGG9jNJP5T07rH1L1nqLtm2g6OhIH5qqoj4J3MNUxCKpTc7tMLDPRIdA3TXtQP NcN59YC6vfqufWNZQvIARHHEYwduu82V/L09r9hwJiwoMI9wA2B76JEmlVi8HDaJm8Xg kZoQ== X-Gm-Message-State: AOJu0YwzWELoKwMVBzJjb4YXJ5YjYDxBTl6DcXexP3841opV4M4603xV bfTi6Rt+oRcRsHR+dga394yG1J9/kMwx2d1574tORVMW6OkjOfWbSGrbuGk8ARAFMwy+BaKDn10 = X-Google-Smtp-Source: AGHT+IG5qG1+kd10w740Gd1br0MYgGwE8tQkPHPPtQnZth76sRPmiFSmiXUL+U16lvpb5O6t5rVkUw== X-Received: by 2002:a05:6a00:2355:b0:6eb:1d5:6e43 with SMTP id j21-20020a056a00235500b006eb01d56e43mr838069pfj.11.1712302657247; Fri, 05 Apr 2024 00:37:37 -0700 (PDT) Received: from localhost (98.176.125.34.bc.googleusercontent.com. [34.125.176.98]) by smtp.gmail.com with UTF8SMTPSA id k13-20020aa79d0d000000b006eb3aa197b9sm845793pfp.161.2024.04.05.00.37.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Apr 2024 00:37:36 -0700 (PDT) From: Ruth Mekonnen To: hostap@lists.infradead.org Cc: Ruth Mekonnen Subject: [PATCH] Add non-PSC channels to 6GHz scan request Date: Fri, 5 Apr 2024 07:36:48 +0000 Message-ID: <20240405073708.3846816-1-rmekonnen@chromium.org> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240405_003740_718064_C3E3242E X-CRM114-Status: GOOD ( 13.45 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: When non_coloc_6ghz = false, the STA is expected to scan for colocated APs. However, if the colocated AP is on a non-PSC channel, it will not be detected during the 6GHz-only scan because the frequenc [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:434 listed in] [list.dnswl.org] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org When non_coloc_6ghz = false, the STA is expected to scan for colocated APs. However, if the colocated AP is on a non-PSC channel, it will not be detected during the 6GHz-only scan because the frequency list is limited to PSC channels. Even when the NL80211_SCAN_FLAG_COLOCATED_6GHZ is set, the cfg80211 only scans a subset of the channels in the original 6GHz scan request. Therefore, this patch adds non-PSC channels to the original 6GHz scan request. Signed-off-by: Ruth Mekonnen --- wpa_supplicant/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index ca2794638..955e944e0 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2582,7 +2582,7 @@ static int wpas_trigger_6ghz_scan(struct wpa_supplicant *wpa_s, params.ssids[j] = data->scan_info.ssids[j]; params.num_ssids = data->scan_info.num_ssids; wpa_add_scan_freqs_list(wpa_s, HOSTAPD_MODE_IEEE80211A, ¶ms, - true, !wpa_s->last_scan_non_coloc_6ghz, false); + true, false, false); if (!wpa_supplicant_trigger_scan(wpa_s, ¶ms, true, true)) { os_free(params.freqs); return 1;