]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PR: Control interface support to initiate USD with PR elements
authorPeddolla Harshavardhan Reddy <peddolla@qti.qualcomm.com>
Sat, 26 Apr 2025 21:50:43 +0000 (03:20 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 17 Oct 2025 10:22:52 +0000 (13:22 +0300)
A new pr=1 argument in NAN_PUBLISH and NAN_SUBSCRIBE can now be used to
request Proximity Ranging element to be included in USD frames.

Signed-off-by: Peddolla Harshavardhan Reddy <peddolla@qti.qualcomm.com>
wpa_supplicant/ctrl_iface.c

index 9f9cbde1e12b72410954ad5e475c46632112d760..c7ce6c060f74d91ed4fbad993e779f682b43adb8 100644 (file)
@@ -12657,6 +12657,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;
@@ -12814,6 +12819,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);