| Message ID | 20260513100010.1947710-16-kavita.kavita@oss.qualcomm.com |
|---|---|
| State | Deferred |
| 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=rVowA2vd;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256
header.s=qcppdkim1 header.b=is3KPKif;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com
header.a=rsa-sha256 header.s=google header.b=Xn4BMxFz;
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 4gFptl1mrPz1yLV
for <incoming@patchwork.ozlabs.org>; Wed, 13 May 2026 20:03:11 +1000 (AEST)
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:References:In-Reply-To:
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:
List-Owner; bh=37LWyQI1DKytVaYp93IxUp3dCebXXPGYTXuS9X7m0pQ=; b=rVowA2vdDPuShY
Sg/6hgmPYXXlXu1YLN5aTvV5y5SAJo+vqb3VwKomYLqcqrWloKqm344MCmLgiFHb+mw4YH7jBiGCZ
J81CYHvSiIe1yJcL3wC5X5/C/KTJ5oM2cRfTBOrTmOkAKo63UV3QEYYICodRgBXzB0Y6zJ3vbjDtQ
qidqi1jH19YAWYlBlRdVt6s+wyGU4PleiqMx38az76pJMP79vGU1peTCwcH4uiLA7WlUu7tkdIMPq
Wt4DJ5gf2XFszsF23n8uy54Da8WM7LvvB2BEV3HQ7oILNQMVYBL5ukM18g35BH4xgD5bnSDeCgHO8
Y4k1069rtjRvAkPhwWdQ==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux))
id 1wN6P0-000000021Cw-35Tp;
Wed, 13 May 2026 10:01:18 +0000
Received: from mx0b-0031df01.pphosted.com ([205.220.180.131])
by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))
id 1wN6Ow-0000000214a-30rQ
for hostap@lists.infradead.org;
Wed, 13 May 2026 10:01:16 +0000
Received: from pps.filterd (m0279870.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id
64D4p6WT2338782
for <hostap@lists.infradead.org>; Wed, 13 May 2026 10:01:13 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:date:from:in-reply-to:message-id
:mime-version:references:subject:to; s=qcppdkim1; bh=ZN2nGcHkjT0
mfWatbWDfH7ifvRVTE4dZ4NyhL/SJWXk=; b=is3KPKifEBMm2mLEa/i6JnlBY58
86P4vPkSRJVC7fXienjr1+MF8alBl8p01mnsyeehJzDUGP30PU6tNEzkz2ZrQuJt
CPvywsqO/W4WdM2V9ihtRt1zGasu9mlAHYm8HjMGFzgNuNlWG4E9lp7euP/3MG7h
iphLhnHqPSLSJtzTbtk3cPrrNVnpDjb8PGON5KCs1SZkavjZ5a1cw5SO8ba+9+EK
8MXaDCyls6zJZxZFznsptuQ2MJnMzIpOd50bOTcJTufzc+iHTYauxRuD6N35Zp+2
7WNkk9xAs8NnXrV2kR5qeD+0xUaCUoAnaclm6Sf/oSo7jd+Zo4lA4A0ulpQ==
Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com
[209.85.214.198])
by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e49vxavwj-1
(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
for <hostap@lists.infradead.org>; Wed, 13 May 2026 10:01:13 +0000 (GMT)
Received: by mail-pl1-f198.google.com with SMTP id
d9443c01a7336-2ba224c3ffdso98519625ad.0
for <hostap@lists.infradead.org>;
Wed, 13 May 2026 03:01:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=oss.qualcomm.com; s=google; t=1778666472; x=1779271272;
darn=lists.infradead.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to;
bh=ZN2nGcHkjT0mfWatbWDfH7ifvRVTE4dZ4NyhL/SJWXk=;
b=Xn4BMxFzHakJMN0NN39kXugi9tmA6D05BnqpuG7VwYaRvzEV/uuXYKj3C4P9WCGXMh
/+lB0fkyrTgK5tyeiDKOtQdr0xmpuYGwWEVZnfZ/buzsyKzJBRFjZGg9lone21V0jIyF
iq4N7/81wGg3BExvP6jmrESHWXZrxQYsef2MYl9iwXa5mLYVcS87XZeVB34FleAHqhOK
/K94ZrHFYPAKp8jlc4zjr6YLcO7Yuq9vBxSQUYM6GtilKoESnLndWto2BSXcAEo7ldAB
HZKr/9aB2e3kB3E8tiJHRuTD5qN4qIfyllLl4z/WRxblrGNZh4z5ONwmcoZGhRaR1IYh
1y7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1778666472; x=1779271272;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to;
bh=ZN2nGcHkjT0mfWatbWDfH7ifvRVTE4dZ4NyhL/SJWXk=;
b=q2UmhgMqEqIXSf9+IUGHiyvFmQXmA8t+gzrpl7d3CQXy2pwx8lh83rvu2tqN0mnEbK
Y/3Sbk9U+m6TWxej8oSFsw8QxigFapk6kRbe55qF2ilU9oOI0o73fOYuZURxjKyx62yW
cJN9Vkh2CtAa+p/zhUNqKOwNme6BvGr9pr2wRqctTjAgmKGuypu5/goU413hefai+v4u
H+s0HH8U/2/D3TkFHaBfIv+N6jlvfU2L0aRMl3tYTAr7AvKvvYII5jQq7R7RBGr9+77I
nCljx8vK1RQ5zUPE0Ap+vuO8vAuEESObzMRuLPCYlfzk3OEqOpsS+75cBMVqEk+LK1g7
bXCw==
X-Gm-Message-State: AOJu0YwijdOsmOtnhjKxc4m7PlTuzLVNJdv4bYus1yC5dWxEA/S4UDWS
tGpT8PPptSjHD8wv7jvD5QUpMTdHvdXyUGbCC/q79B8tDGUSqsNwLQMVv9iObEDX2zCRMN0U1dH
LNBg8dxxSL2UKSrJfP3wlGqoD3tmxQmIUUGsckX0wy6dBlmwDNRG4RiZDrXz0XlGMHosYqVjN
X-Gm-Gg: Acq92OHcVcDFxOkQnyRfnKWhbTTW4xAapKsgGoIBILu7amchWgJfP5T4Q/1xj89s8g+
26LtlS+ZvPh1XFe8Kq9KIGUrM55EFOgkLKDvwsz3lmVHQ4I+3vMUK2R3Ow51+sOaInjklkmEXqK
V0yACWkVr8162YGtR3g1dzD/RJXkbX3r1d53f7IDSwL5E6Wy9LqPgQoCy2ns9JmRjvU5ZlEAoFa
upA5068Sj8VroOz4zE7fwFAZdI9aKbBXD50IBdrbBKf0/5neN67qFz/uRQ+1S59zrYxsPmSeVFW
fJmiuLGxQ/tcMU45RWFMLBgyWwGvO5e8X0rWNSr5SPbHQMuS1q2/cylp45FzRJZ5b6481MRcxkL
m7VCL/3fc5Abbp1gkg4IEkd0lWVpqXe90BxrEZi02AnX2JwYrKLDwdg==
X-Received: by 2002:a17:903:37ce:b0:2bc:db02:d1ed with SMTP id
d9443c01a7336-2bd2771282bmr29089945ad.38.1778666472229;
Wed, 13 May 2026 03:01:12 -0700 (PDT)
X-Received: by 2002:a17:903:37ce:b0:2bc:db02:d1ed with SMTP id
d9443c01a7336-2bd2771282bmr29088785ad.38.1778666471030;
Wed, 13 May 2026 03:01:11 -0700 (PDT)
Received: from hu-kkavita-hyd.qualcomm.com ([202.46.22.19])
by smtp.gmail.com with ESMTPSA id
d9443c01a7336-2baf1e35632sm168983355ad.53.2026.05.13.03.01.09
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 13 May 2026 03:01:10 -0700 (PDT)
From: Kavita Kavita <kavita.kavita@oss.qualcomm.com>
To: hostap@lists.infradead.org
Cc: kavita.kavita@oss.qualcomm.com, peddolla.reddy@oss.qualcomm.com,
vamsin@qti.qualcomm.com
Subject: [PATCH v3 15/46] PR: Gate EDCA ranging support on ASAP capability
Date: Wed, 13 May 2026 15:29:39 +0530
Message-Id: <20260513100010.1947710-16-kavita.kavita@oss.qualcomm.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20260513100010.1947710-1-kavita.kavita@oss.qualcomm.com>
References: <20260513100010.1947710-1-kavita.kavita@oss.qualcomm.com>
MIME-Version: 1.0
X-Proofpoint-ORIG-GUID: E1X0oHfAITW5GvJQlm7ff9i0A69p6T3l
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEzMDEwMyBTYWx0ZWRfX6lNBsWUmzStv
z0N7v8hHSt+MQmwPRy4qxEmslZUox4H1iHNyDEtHKb/Toi/hIa6KmwrCaL3wPlOWNkNVdDh2T5/
7QSi4XnHZxTVe807sMDA0eI1zdWcGy4x9Aff8s31D86lWngg4WQ6a3Zm1bPogvzi5IJtFXlbeIJ
O1zDND0V47BbQNnd55EMYkpjwZjQPu6CCrBqdkwimWSQZyR1xdsKD9KxEUiF6fFV/5VDze7CA4x
UQaSqwyrOb5NqJpvmjSgfr7+GcnyAz+mviW7WsPqoSvBNLf4lmLaKc1jNaliPFYxuQvWbLuFbM2
uW/tV44B8jBF4SVQE1mVzkKsnZSDOOEyDzgccG40RQ0qbjDSdg2WNRWm4tkAMyKGfnB0/zW4uOv
5IKShd+Lvuth0HWgJ6exvzJMiLBA8lvMzls2jRvsjCA+s7A0HwyQ2Ey2vS9yi8Np2/KPH7hiJLv
uIb0G58+weQtk0wwYiA==
X-Proofpoint-GUID: E1X0oHfAITW5GvJQlm7ff9i0A69p6T3l
X-Authority-Analysis: v=2.4 cv=A8Fc+aWG c=1 sm=1 tr=0 ts=6a044be9 cx=c_pps
a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17
a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22
a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8
a=O9BcEC6yCEQ8aOg0kzsA:9 a=GvdueXVYPmCkWapjIL-Q:22
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49
definitions=2026-05-11_05,2026-05-08_02,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
malwarescore=0 suspectscore=0 impostorscore=0 bulkscore=0 phishscore=0
clxscore=1015 priorityscore=1501 spamscore=0 lowpriorityscore=0 adultscore=0
classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605130103
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20260513_030114_954038_924DC4C9
X-CRM114-Status: GOOD ( 15.94 )
X-Spam-Score: -2.8 (--)
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: Parse NL80211_PMSR_FTM_CAPA_ATTR_ASAP from the driver and
store it in capa->asap_support. Gate both pr.edca_ista_support and
pr.edca_rsta_support
on ASAP support since ASAP is mandatory for EDCA-based [...]
Content analysis details: (-2.8 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low
trust
[205.220.180.131 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
-0.1 DKIM_VALID Message has at least one valid DKIM or DK
signature
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
-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
-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: Add nl80211 support and ranging for Proximity Detection
|
expand
|
diff --git a/src/drivers/driver.h b/src/drivers/driver.h index a1f922f9a..18c51b75c 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -2699,6 +2699,7 @@ struct wpa_driver_capa { u8 max_ftms_per_burst; bool concurrent_ista_rsta; bool support_6ghz; + bool asap_support; u32 pd_preambles; u32 pd_bandwidths; diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index 281f06d22..6051a0801 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -1251,6 +1251,9 @@ static void pmsr_type_ftm_handler(struct wpa_driver_nl80211_data *drv, drv->capa.support_6ghz = !!tb[NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT]; + drv->capa.asap_support = + !!tb[NL80211_PMSR_FTM_CAPA_ATTR_ASAP]; + if (tb[NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES]) drv->capa.pd_preambles = nla_get_u32(tb[NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES]); diff --git a/wpa_supplicant/pr_supplicant.c b/wpa_supplicant/pr_supplicant.c index f50712a96..9b3e09d82 100644 --- a/wpa_supplicant/pr_supplicant.c +++ b/wpa_supplicant/pr_supplicant.c @@ -355,8 +355,8 @@ int wpas_pr_init(struct wpa_global *global, struct wpa_supplicant *wpa_s, pr.pasn_type = wpa_s->conf->pr_pasn_type; pr.preferred_ranging_role = wpa_s->conf->pr_preferred_role; - pr.edca_ista_support = capa->ista.support_edca; - pr.edca_rsta_support = capa->rsta.support_edca; + pr.edca_ista_support = capa->ista.support_edca && capa->asap_support; + pr.edca_rsta_support = capa->rsta.support_edca && capa->asap_support; pr.pd_format_bw_bitmap = capa->pd_bandwidths; pr.pd_preamble_bitmap = capa->pd_preambles; pr.edca_format_and_bw =
Parse NL80211_PMSR_FTM_CAPA_ATTR_ASAP from the driver and store it in capa->asap_support. Gate both pr.edca_ista_support and pr.edca_rsta_support on ASAP support since ASAP is mandatory for EDCA-based ranging. This ensures EDCA ranging requests are only sent when the driver advertises ASAP support, preventing invalid ranging attempts. Signed-off-by: Kavita Kavita <kavita.kavita@oss.qualcomm.com> --- src/drivers/driver.h | 1 + src/drivers/driver_nl80211_capa.c | 3 +++ wpa_supplicant/pr_supplicant.c | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-)