| Message ID | 20260513100010.1947710-1-kavita.kavita@oss.qualcomm.com |
|---|---|
| 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=vFyYVv0v;
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=R8mm+0X4;
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=OTalE2Gy;
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 4gFpt40MXVz1yJ5
for <incoming@patchwork.ozlabs.org>; Wed, 13 May 2026 20:02:36 +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: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=aNi28jc5uENOQTJj3a7N+/THS5Rsuecr2ZyArG9CGaI=; b=vFyYVv0vZsxMOb
uIef9fs4NAipnWGLOFFbHNsL6m/zkjeD1BHGJvwsT+ktDsLU/a2YaDv0cXDSw64nIS/rvMuF6vRUJ
fA6jJl8NjsZbDM+itWb7+dqFgFZhpzKZL2guDW1dcCImWaK6ZBjizjkdaFDKD+CVjJhSRf9GeHwg9
QuJUtb5adKwgL62zadTl3Ac3vmead6cNUC14+SeW5PXtQedSboesST+hBcfwAtaaiYiOgNOePAxvK
cMhZoa3snGoSg292Garr/4Ns/pkvrGQ0sj9h2VAezJT63dC6dT8sHAiz0P2rPkV6XO5nQ9p/9WtnE
mfmseFXzuTYTJSuYPo8w==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux))
id 1wN6OW-000000020dw-1YfJ;
Wed, 13 May 2026 10:00:48 +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 1wN6OR-000000020cQ-2toZ
for hostap@lists.infradead.org;
Wed, 13 May 2026 10:00:45 +0000
Received: from pps.filterd (m0279868.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id
64D4pHgu2652848
for <hostap@lists.infradead.org>; Wed, 13 May 2026 10:00:42 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:content-type:date:from:message-id
:mime-version:subject:to; s=qcppdkim1; bh=tZFrjAUZIJ1e7PZ2NMlaXD
vt36eYMPfvNRanmxe7GLA=; b=R8mm+0X49t4Sza6vVPuclIERAMrUaB0LYEdHUx
UYPOVFI+ZMiyA+R/t+4qb1ObRa3dXUXnJenvG5YZaFsxaI7GQEkqUBBfLWLf0AjT
u0bHCAiBfyTupkzBuss4eNlInakvSCEVLLzxkyjynpJKC/WlB4xFg7dyWVEc2RTA
K4f2qjSVMhWuMON+yTWumAmB/RyrL+AJIJDYnnQtgzG/rdFP+hjumuPkvN9yqXlq
slr5EvSgd5Z2FFPYcJAL8pFKGGw5b/gIPXlPGoIKfPnRPUquAwSO5XKp/oIO6uav
4Erdw0a16Avh1dN4DfaOutQTyrcvFQ5/oE7UOrjf6QHf8jzw==
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 4e45avm53k-1
(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
for <hostap@lists.infradead.org>; Wed, 13 May 2026 10:00:41 +0000 (GMT)
Received: by mail-pl1-f198.google.com with SMTP id
d9443c01a7336-2ba718173d1so113676885ad.0
for <hostap@lists.infradead.org>;
Wed, 13 May 2026 03:00:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=oss.qualcomm.com; s=google; t=1778666441; x=1779271241;
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=tZFrjAUZIJ1e7PZ2NMlaXDvt36eYMPfvNRanmxe7GLA=;
b=OTalE2GyFnBQfe9Xx2omSXF/ogiZYPEyJlRhSdIOvwH5LdXOMAei0QjHlghJzvZ2ud
vxITBtXg2ow5gCZD5tP1FRF8Yvu6p2/uqIW0O4MGRly1Fp76Hz5skCLsVHC1U3BxBlgB
th8iJWIuScxvFalTyvAiZZDwffRxMpBCgBYOtp6UCbG+JinjmI1J6FXZ6rm0mMskarID
8CRT9dNrmkOAUx8oNCFi3CMzGsdECpmD9oS6zQ+uZLOVu1UoUDPp+bdOQ7ZSIF0HRchB
wUqJD/poFLqhYrJ/IcZhpaVx7vpevvTCXRJsbxjfXWiprokD+ccCeCITlB+nWHcsSMBx
q7Zg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1778666441; x=1779271241;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=tZFrjAUZIJ1e7PZ2NMlaXDvt36eYMPfvNRanmxe7GLA=;
b=W27WJm6PWanDEIjQ9xSjY7m+OyMp1DbsjB53KZWhMC1rd3SgssUEmIYRtVM6H163rA
Oql5Nj45ObT7LzB3xdZXaO4OZIWnC7khy1EIxDFAeryTdyTxftnmYeQq1We8InfEF9vQ
/yI38r3aNYLu7l3MtM7TTcLNT+tUWrqPGyxniuYA4rNF/ma+RcAx7vuXuurYlM27DcXn
VRgiRn8p4la7GeVPwYAeY5zBDQqdz30MeS2+rIaPRc3PV4RSJZu0rts5fFXFW5suvdod
KRoGO+LPTk9s7IrZ89ejuJkPM2LWJMYqS/F20n61pN/OR0/EG3fImQ9MmOIcz3IJI0YY
Pecg==
X-Gm-Message-State: AOJu0YyIeUyXPhoCH4IClbJzKhlXE2W4plovnyxvJgfH4jHQfaoXK1HT
33NT7faviLqMTHhO17cea1Cj2cMbQXrSS3xCFcUG2e4z7omT0tjPhNCcwvKp/qej1FjIfAPTWHh
EXvQ5FkLnyaEYmrcwvtqvtgvm1SzODEVxYNuHcBGC4uEX0fqLGBaGsq2OF8opcAeV/8Es6oH9
X-Gm-Gg: Acq92OHe4wJX1E9FkL4n2gMwstzyLLrlRfq2DDhPebd0Q4MONZKjgg8yXVHjPMXlrve
2/OGsBGwuM0LA2SHlCI21S7xrXBMrOgvyHNI7/QkAMq7z6BJaKAFl7fSdUCH2YA6OmcneodBBg/
N6T9lM0NU4a03FxtBQb3+KgdOEJ6bZgSKbsqlY4pebMN7eGnIn1BeVb9MiQX6O679hnYJFdYhpA
DVfRWIFDJLpqiQPhUZCkauOyQ0GyMe04XvJojvIMVamkfu7TnBIDe/gtf4Dq+8yJsSqOt9BB427
8OT3b1HRH/9VBMbRLWvKRj6haI3U+Wrmr1eOYq774zRCsCXA8c6lJrY0OTepo1mGckFRahAPBuI
TjN074u7/QVmK0xZjmg2GAavnPdPf89BKV2yzktMojYtWk94XCUtj4g==
X-Received: by 2002:a17:902:cf07:b0:2b2:549f:7d2b with SMTP id
d9443c01a7336-2bd2f7113f0mr24939225ad.11.1778666438857;
Wed, 13 May 2026 03:00:38 -0700 (PDT)
X-Received: by 2002:a17:902:cf07:b0:2b2:549f:7d2b with SMTP id
d9443c01a7336-2bd2f7113f0mr24938285ad.11.1778666438054;
Wed, 13 May 2026 03:00:38 -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.00.36
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 13 May 2026 03:00:37 -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 00/46] PR: Add nl80211 support and ranging for Proximity
Detection
Date: Wed, 13 May 2026 15:29:24 +0530
Message-Id: <20260513100010.1947710-1-kavita.kavita@oss.qualcomm.com>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
X-Proofpoint-GUID: ts1UQXsMlcKmeeny3lIO2oMe_Jd3BmY1
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEzMDEwMyBTYWx0ZWRfXy7SRUvetPvKE
z1RPi2ueW0xF/dFVdRyF1zkrw+rPfb2PmciMW01lb3MiNJWk23aOq+Xa3ZOwm8P68DJYxBR/w9v
cTR+go0IzqFJ2GTyqgqqUojV6yEz7pG26qxfOH+64cX8F5Lmt+od78HwNh8KxbG/pVMZ1EHIjhu
zbPqgCnvfdQeqDTz9NWaGnBrDcJrs/WKEvm8XQBsioq5rQ/3Wiu76i8Lfmv43L+8KEQ/fP2PVjg
kR5yH2bO9yeKsbijpFSKwPDLOT4Om9uAKXD3MGdxejHmIGBmuHecJHFTBXvoZZKqjInmLwnFD0c
LzC7On25kLoBzb6PVEOyi67yov/CXIjdpRjwOnQ1xhY4kg8QqVx7l2bb+xJwyMS9Lvsxg/NdEsi
nDOp1L6bVzfhsfbeVhEuIVcIAKl+k/9XOq+lLtfaCGfnRJp2ljaW/spqbkDb+tGYC2zTl3aiQK9
jWIApmc4hL+fgP0Zudw==
X-Authority-Analysis: v=2.4 cv=bOwm5v+Z c=1 sm=1 tr=0 ts=6a044bc9 cx=c_pps
a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17
a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10
a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22
a=VwQbUJbxAAAA:8 a=BRwot-EIt4jZnXUtH3YA:9 a=QEXdDO2ut3YA:10
a=GvdueXVYPmCkWapjIL-Q:22
X-Proofpoint-ORIG-GUID: ts1UQXsMlcKmeeny3lIO2oMe_Jd3BmY1
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
bulkscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 spamscore=0
malwarescore=0 clxscore=1011 adultscore=0 priorityscore=1501 impostorscore=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_030043_850136_8065962A
X-CRM114-Status: GOOD ( 19.00 )
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: wpa_supplicant already had PASN authentication support for
Proximity Ranging (PR). This series adds the missing nl80211 driver
support
and ranging to complete the PD (Proximity Detection) flow. It introduces
a dedicated PD virtual interface (NL80211_IFTYPE_PD) with its own MAC
address,
updates nl80211_copy.h with the proposed kernel API additions for PD,
improves
driver capability parsing wi [...]
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
|
On Wed, May 13, 2026 at 03:29:24PM +0530, Kavita Kavita wrote: > wpa_supplicant already had PASN authentication support for > Proximity Ranging (PR). This series adds the missing nl80211 > driver support and ranging to complete the PD (Proximity > Detection) flow. I applied patches 1-13 and 16-17. I'll continue reviewing patches 21, 23-24, 26-29, 32-33, 39, 41, 44, 46. The I dropped other patches based on open questions and dependencies to the patches with open questions.
On Thu, May 21, 2026 at 11:32:41AM +0300, Jouni Malinen wrote: > On Wed, May 13, 2026 at 03:29:24PM +0530, Kavita Kavita wrote: > > wpa_supplicant already had PASN authentication support for > > Proximity Ranging (PR). This series adds the missing nl80211 > > driver support and ranging to complete the PD (Proximity > > Detection) flow. > > I applied patches 1-13 and 16-17. I'll continue reviewing patches 21, > 23-24, 26-29, 32-33, 39, 41, 44, 46. The I dropped other patches based > on open questions and dependencies to the patches with open questions. I applied patches 21, 23-24, 26-27, 29, 32, 39, 41, 44, 46. I have no patches remaining in my queue, i.e., other patches had either open questions or dependencies to the patches with open questions.
wpa_supplicant already had PASN authentication support for Proximity Ranging (PR). This series adds the missing nl80211 driver support and ranging to complete the PD (Proximity Detection) flow. It introduces a dedicated PD virtual interface (NL80211_IFTYPE_PD) with its own MAC address, updates nl80211_copy.h with the proposed kernel API additions for PD, improves driver capability parsing with dedicated PR-specific flags, extends the set_key path to carry LTF key seeds for secure ranging, and wires up peer measurement start and result handling through the nl80211 driver. The existing PR_PASN_START control interface command is extended with the full set of EDCA, NTB, and proximity threshold parameters and rerouted through wpas_pr_pasn_trigger() to drive the complete PASN-then-ranging flow in a single step. Support is also added for Out-of-Band peer discovery where USD is handled by an external application, and per-peer PMK and password configuration via PR_PASN_START for authenticated PASN without prior NAN USD discovery. Kernel Changes are merged into wireless-next tip. Link: https://patchwork.kernel.org/project/linux-wireless/list/?series=1083204&state=%2A&archive=both --- Changes in v3: - The earlier supplicant patchset (v2) was aligned with a previous kernel patchset series. Since that kernel series has now been merged, the supplicant has been updated again (v3) to align with the current wireless-next. - Fixed several bugs identified during internal testing. Introduced new patches in this series. - Added support for Out-of-Band (OOB) peer discovery: when USD service discovery is handled by an external application and PASN is triggered separately via PR_PASN_START, a minimal peer entry is created automatically to allow PASN to proceed without prior NAN USD discovery. --- Changes in v2: - Added the correct NL attributes. - Refactored dependent code paths to reflect the updated NL attribute handling. --- Kavita Kavita (11): nl80211: Sync with wireless-next.git include/uapi/linux/nl80211.h PR: Add CONFIG_PR to defconfig PR: Guard wpas_pr_usd_elems() against uninitialized PR context PR: Gate EDCA ranging support on ASAP capability PR: Move ranging_wrapper free inside CONFIG_PASN ifdef PR: Default pasn_type to DH19_UNAUTH|DH19_AUTH when not configured PR: Restore dev_addr to station MAC after PD wdev stop PR: Flush PMKSA cache after TK is configured for ranging PR: Track peer discovery type and handle OOB peers in PASN initiation PR: Allow PMK and password configuration in PR_PASN_START PR: Skip key installation for EDCA-based ranging Peddolla Harshavardhan Reddy (30): ctrl_iface: Add forced_addr parameter to NAN_PUBLISH and NAN_SUBSCRIBE nl80211: Add MAC address filter support for remain-on-channel nl80211: Allow NAN USD frames with foreign destination address NAN: Make NAN and P2P network IDs globally accessible NAN: Use protocol-specific network ID in USD offload to driver NAN: Pass forced_addr to remain-on-channel listen callback nl80211: Parse Peer Measurement (PMSR) capabilities PR: Use stored capabilities instead of driver flags PR: Add support to use stored 6GHz capability for PR PR: Fix wrong channel set used in NTB capabilities PR: Replace format_and_bw attribute with preamble/BW bitmaps PR: Add nl80211 driver support for PD interface nl80211: Use wdev-based message for SET_KEY on wdev-only interfaces PR: Use set_key to configure secure ranging context for PASN PR: Extend PR_PASN_START ctrl iface with src_addr and role PR: Add remain-on-channel support for PASN responder role PR: Add dedicated PD wdev for PASN with custom MAC address PR: Add interface to trigger PASN authentication for ranging PR: Add PR_PASN_NEGOTIATION_STARTED event PR: Add extended ranging parameters to PASN peer structure PR: Use op_class_to_bandwidth() in wpas_pr_ranging_params() nl80211: Add peer measurement support for proximity ranging PR: Use session time as total ROC budget for PASN responder PR: Extend PR_PASN_START ctrl iface with full ranging parameters wpa_supplicant: Add FTM peer measurement result handling PR: Handle peer measurement complete event PR: Add ranging session timeout and integrate socket cleanup PR: Add API and ctrl iface command to abort ranging session PR: store resolved peer DevIK in pr_device after DIRA match PR: use USD source address for DIRA tag computation Veerendranath Jakkam (5): nl80211: Add Proximity Detection (PD) wdev support nl80211: Route MLME TX via PD wdev based on source address nl80211: Factor out global event BSS lookup and add PD wdev event routing nl80211: Route key operations to PD wdev based on own_addr nl80211: Add dedicated PR ranging socket and stop op src/ap/nan_usd_ap.c | 2 +- src/common/nan_de.c | 13 +- src/common/nan_de.h | 6 +- src/common/nan_defs.h | 4 + src/common/proximity_ranging.c | 134 ++- src/common/proximity_ranging.h | 166 +++- src/common/wpa_ctrl.h | 11 + src/drivers/driver.h | 231 ++++- src/drivers/driver_common.c | 2 + src/drivers/driver_nl80211.c | 677 ++++++++++++++- src/drivers/driver_nl80211.h | 7 + src/drivers/driver_nl80211_capa.c | 176 ++++ src/drivers/driver_nl80211_event.c | 397 ++++++++- src/drivers/nl80211_copy.h | 303 ++++++- wpa_supplicant/ctrl_iface.c | 157 +++- wpa_supplicant/defconfig | 3 + wpa_supplicant/dpp_supplicant.c | 2 +- wpa_supplicant/driver_i.h | 60 +- wpa_supplicant/events.c | 18 + wpa_supplicant/nan_supplicant.c | 40 +- wpa_supplicant/notify.c | 45 + wpa_supplicant/notify.h | 7 + wpa_supplicant/offchannel.c | 4 +- wpa_supplicant/p2p_supplicant.c | 2 +- wpa_supplicant/pr_supplicant.c | 1280 +++++++++++++++++++++++++--- wpa_supplicant/pr_supplicant.h | 56 +- wpa_supplicant/wpa_supplicant.c | 6 +- wpa_supplicant/wpa_supplicant_i.h | 19 + 28 files changed, 3557 insertions(+), 271 deletions(-) base-commit: a034719032e92e65a18e28175e009d2598bae453 -- 2.34.1