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@xxxxxxxxx> --- 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 6ed007c4ea..28661b4753 100644 --- a/wpa_supplicant/nan_supplicant.c +++ b/wpa_supplicant/nan_supplicant.c @@ -100,6 +100,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 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap