[PATCH 22/35] NAN: Enable DW notification
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Mon Oct 20 05:27:57 PDT 2025
Currently, enable DW notification unconditionally.
This should be properly done by checking if there's at least one
service that requires this. This will be extended later.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
wpa_supplicant/nan_supplicant.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/wpa_supplicant/nan_supplicant.c b/wpa_supplicant/nan_supplicant.c
index d03a984be9..511a73b84a 100644
--- a/wpa_supplicant/nan_supplicant.c
+++ b/wpa_supplicant/nan_supplicant.c
@@ -103,6 +103,11 @@ int wpas_nan_start(struct wpa_supplicant *wpa_s)
cluster_config.master_pref = DEFAULT_NAN_MASTER_PREF;
cluster_config.dual_band = DEFAULT_NAN_DUAL_BAND;
+ if (wpa_s->nan_drv_flags & WPA_DRIVER_FLAGS_NAN_SUPPORT_USERSPACE_DE) {
+ wpa_printf(MSG_DEBUG, "NAN: Enable DW notifications");
+ cluster_config.enable_dw_notif = true;
+ }
+
return nan_start(wpa_s->nan, &cluster_config);
}
--
2.49.0
More information about the Hostap
mailing list