[RFC PATCH 4/6] NAN: Permit creating a proxied service
Benjamin Berg
benjamin at sipsolutions.net
Thu Feb 19 07:55:51 PST 2026
From: Benjamin Berg <benjamin.berg at intel.com>
This adds the minimal set of options to be able to create a proxied
service for publishing purposes.
type=feature
ticket=none
Signed-off-by: Benjamin Berg <benjamin.berg at intel.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 b2b495b907..79ca4a011f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -12754,6 +12754,16 @@ static int wpas_ctrl_nan_publish(struct wpa_supplicant *wpa_s, char *cmd,
params.freq = NAN_USD_DEFAULT_FREQ;
while ((token = str_token(cmd, " ", &context))) {
+ if (os_strncmp(token, "origin_nmi=", 11) == 0) {
+ if (!hwaddr_aton(token + 11, params.origin_nmi))
+ continue;
+ }
+
+ if (os_strncmp(token, "origin_id=", 10) == 0) {
+ params.origin_id = atoi(token + 10);
+ continue;
+ }
+
if (os_strncmp(token, "service_name=", 13) == 0) {
service_name = token + 13;
continue;
--
2.53.0
More information about the Hostap
mailing list