| Message ID | 20261104084113.1978074-3-xiayucheng@google.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>
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=kxU6jzDn;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256
header.s=20260707 header.b=hf3c6NHu;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) 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 4jKJpt6V0Fz1yHX
for <incoming@patchwork.ozlabs.org>; Wed, 04 Nov 2026 19:42:30 +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:Cc:To:From:Subject:Message-ID:
References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Unsubscribe-Post:List-Owner;
bh=KceBegjuaSFORR9CgxsHy534sYSfuJuhPgxsR/FD7BY=; b=kxU6jzDnWXUCds7VH1I0XvX2qf
u/P0kymP8a3H+7DAzaya95V7f9L3H+lmzEukbo4FfEhYcQj6ycyhTVyL94WLI8fzor3X+LCytzXim
xl8teFuoNc+hJXtZxrrr2cIyLUrTQ8PQ8xu+SzvZUBhvz2ixPpejdRkc1+ZIUT8qMVAGUFKJucK1t
NiN6Gn/A7dHILTwbcud8kDKFjBEZYi0EuuF9UJSI+VnK921UCqsqqqVddON5z4TCMSldSBaQgDk8r
ThoKUXTd5MjImNhoZepbHfuroYkX8z6VKJli7QO/sZu69mVu+kWMa3aA1lj8C5p8kri1G9naA+w9x
0M1DvCCw==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux))
id 1xOWYd-00000004jaP-3EdC;
Wed, 04 Nov 2026 08:41:23 +0000
Received: from mail-pf1-x446.google.com ([2607:f8b0:4864:20::446])
by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux))
id 1xOWYb-00000004jYn-0Lpg
for hostap@lists.infradead.org;
Wed, 04 Nov 2026 08:41:22 +0000
Received: by mail-pf1-x446.google.com with SMTP id
d2e1a72fcca58-8a030e0f9c1so679054b3a.2
for <hostap@lists.infradead.org>;
Wed, 04 Nov 2026 00:41:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20260707; t=1793781680; x=1794386480;
darn=lists.infradead.org;
h=content-type:cc:to:from:subject:message-id:references:mime-version
:in-reply-to:date:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=Ca0M4nYAvvpFcgPo26IIMMtIxEii+IEFTmKuQdGtzPk=;
b=hf3c6NHulM8T8TtgJFRGdqYXEiCr/YGxf1bl3vQSNKdes5AIp4Ay5zdObn3KqtscVq
EYhPpxXQW/6hhQb/j3JbuOW70J2v3ZV3Z+k7ApyDY8oBqb66yDyPSRZpQbWJcUNo9P4c
8IC1mpaJ8HMN4Rfgt7D7I0upEoAuszskpOgNKYDx4nzDqyRJDCAKngLiz1MOF/2zFORj
/oZ0fikSqhGf6QEaTRU6DXF0BEoxB1v/2NGeEKBagRgdG0LrXg7EjeI4tJnhXJz8CR4K
tIqZrzknj/H5SKnMz8N+sxYPeqtgnqsK/vhzikBw2e6nMIDf1sy6qiaccIRIqJ9/9hUY
K/KA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793781680; x=1794386480;
h=content-type:cc:to:from:subject:message-id:references:mime-version
:in-reply-to:date:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=Ca0M4nYAvvpFcgPo26IIMMtIxEii+IEFTmKuQdGtzPk=;
b=NayNerWdB9oG7yGlIFR6yrwgyoxCD7ls/iCBz7PchshedqBcI366PR4pBUjV2tDSpt
XBPF+a8WDxnbZZL+3hj5m2xmuTf6TIVNVClT1ta21LI1OrUK1f2YrKfEpZbWtSf0CKB3
R9oqwXuZdsz2VHcqmnBl1lNe3o0vcSx4g1HuTAbUKGy8D7DZ9aeBRTnRraKavpXo6EfR
gZTcEuzrR1QYvg81I8bFrlfdP05WxWXt47cIsyix2Z3KQ1Gi+B0MCPIPOvgtAfZmSfg9
+6BM/C1TtdHr2eKa8o+qMeMd2k5mX7XUYprWg9X3YiGNQnIbuIvmq9l5XoLRGpKAEwUV
D/BQ==
X-Gm-Message-State: APuU4Z/IDa6agtZNDkdWtM5OwCSSDGZRqJZx1c+IDzy40rxtrjSmcrx1
5UIH1FaqUs/E2nwPYY+bYh0Ymjj8VhKvsJq6Nk4G+KLv+/7cwLkkhSFq11Mcc9oxmz7VKwJcthg
WScV57zK3S1QfeA2fy8aOAoGTpsUhhe6q/mz93fCwHW+/VXNOb5tciBFRK5UcxKr3yJysp3WsTI
FbfT0hdBjabzLsHLHvxtgDKet5TaMHiK1iFAnjPeub6TC/Spf+uPoyU5MKCPIiSf4=
X-Received: from pfbhd14.prod.google.com
([2002:a05:6a00:658e:b0:899:1f5b:5265])
(user=xiayucheng job=prod-delivery.src-stubby-dispatcher) by
2002:a05:6a00:4f8c:b0:888:add:a74c with SMTP id
d2e1a72fcca58-8a9ba229a47mr13328601b3a.4.1793781679697;
Wed, 04 Nov 2026 00:41:19 -0800 (PST)
Date: Wed, 4 Nov 2026 08:41:13 +0000
In-Reply-To: <20261104084113.1978074-1-xiayucheng@google.com>
Mime-Version: 1.0
References: <20261104084113.1978074-1-xiayucheng@google.com>
X-Mailer: git-send-email 2.56.0.385.gac671c819a-goog
Message-ID: <20261104084113.1978074-3-xiayucheng@google.com>
Subject: [PATCH 2/2] PR: Match 6 GHz op class when resolving preferred freq
From: Emily Xia <xiayucheng@google.com>
To: hostap@lists.infradead.org
Cc: Emily Xia <xiayucheng@google.com>
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20261104_004121_133142_5D03FE70
X-CRM114-Status: UNSURE ( 9.10 )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -9.5 (---------)
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: In pr_get_preferred_channel(),
both 5 GHz (op_class 115-130)
and 6 GHz (op_class 131-137) operating classes map to
HOSTAPD_MODE_IEEE80211A.
Because channels 149-177 exist in both 5 GHz UNII-3 and 6 GH [...]
Content analysis details: (-9.5 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no
trust
[2607:f8b0:4864:20:0:0:0:446 listed in]
[list.dnswl.org]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
-7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM welcome-list
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's
domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK
signature
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.0 DMARC_PASS DMARC pass policy
X-BeenThere: hostap@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <hostap.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>,
<mailto:hostap-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/hostap/>
List-Post: <mailto:hostap@lists.infradead.org>
List-Help: <mailto:hostap-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>,
<mailto:hostap-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Hostap" <hostap-bounces@lists.infradead.org>
Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org
|
| Series |
PR: Support preferred frequency for PASN channel selection
|
expand
|
diff --git a/src/common/proximity_ranging.c b/src/common/proximity_ranging.c index b7d088e63..2d66a88ac 100644 --- a/src/common/proximity_ranging.c +++ b/src/common/proximity_ranging.c @@ -654,6 +654,9 @@ static bool pr_get_preferred_channel(int preferred_freq, for (j = 0; j < common_chan->op_class[i].channels; j++) { if (common_chan->op_class[i].channel[j] != channel) continue; + if (is_6ghz_op_class(common_chan->op_class[i].op_class) != + is_6ghz_op_class(base_op_class)) + break; map = get_oper_class(NULL, common_chan->op_class[i].op_class); if (!map || map->mode != hw_mode)
In pr_get_preferred_channel(), both 5 GHz (op_class 115-130) and 6 GHz (op_class 131-137) operating classes map to HOSTAPD_MODE_IEEE80211A. Because channels 149-177 exist in both 5 GHz UNII-3 and 6 GHz UNII-6/7, checking only map->mode == hw_mode allows a 6 GHz preferred_freq (e.g. 6695 MHz on channel 149) to falsely match 5 GHz op_class 128 (5745 MHz). Verify that each candidate op_class matches is_6ghz_op_class() of the base_op_class resolved from preferred_freq before selecting it. Signed-off-by: Emily Xia <xiayucheng@google.com> --- src/common/proximity_ranging.c | 3 +++ 1 file changed, 3 insertions(+)