[PATCH 29/34] PR: Control iface support to initiate USD with PR elements
Peddolla Harshavardhan Reddy
peddolla at qti.qualcomm.com
Thu Jun 19 08:37:22 PDT 2025
Changes in initiate USD with Proximity Ranging capability IE. A new
attribute "pr" is added to the USD ctrl-iface command to add the PR
IE to the USD frames.
Signed-off-by: Peddolla Harshavardhan Reddy <peddolla at qti.qualcomm.com>
---
wpa_supplicant/ctrl_iface.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 8c81fd549..e4e21fa77 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -12572,6 +12572,11 @@ static int wpas_ctrl_nan_publish(struct wpa_supplicant *wpa_s, char *cmd,
continue;
}
+ if (os_strcmp(token, "pr=1") == 0) {
+ params.proximity_ranging = true;
+ continue;
+ }
+
wpa_printf(MSG_INFO, "CTRL: Invalid NAN_PUBLISH parameter: %s",
token);
goto fail;
@@ -12729,6 +12734,11 @@ static int wpas_ctrl_nan_subscribe(struct wpa_supplicant *wpa_s, char *cmd,
continue;
}
+ if (os_strcmp(token, "pr=1") == 0) {
+ params.proximity_ranging = true;
+ continue;
+ }
+
wpa_printf(MSG_INFO,
"CTRL: Invalid NAN_SUBSCRIBE parameter: %s",
token);
--
2.34.1
More information about the Hostap
mailing list