Add new NAN driver flags to indicate support for:
- Synchronization offload and support for additional NAN sync
parameters.
- Support for user space NAN DE implementation which requires the
driver to send DW notification and be able to transmit and receive
SDF frames over NAN device interface with the correct timing.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
#ifdef CONFIG_NAN
/* Driver supports dual band NAN operation */
#define WPA_DRIVER_FLAGS_NAN_SUPPORT_DUAL_BAND 0x00000001
+/* Driver supports NAN synchronization configuration */
+#define WPA_DRIVER_FLAGS_NAN_SUPPORT_SYNC_CONFIG 0x00000002
+/* Driver supports DW notifications and SDF TX/RX over NAN device interface */
+#define WPA_DRIVER_FLAGS_NAN_SUPPORT_USERSPACE_DE 0x00000004
u32 nan_flags;
#endif /* CONFIG_NAN */
};
return -1;
#endif /* CONFIG_NAN_USD */
+#ifdef CONFIG_NAN
+ wpa_s->nan_drv_flags = capa.nan_flags;
+#endif /* CONFIG_NAN */
+
if (wpa_supplicant_init_eapol(wpa_s) < 0)
return -1;
wpa_sm_set_eapol(wpa_s->wpa, wpa_s->eapol);
bool nan_mgmt;
#ifdef CONFIG_NAN
+ u32 nan_drv_flags;
struct nan_data *nan;
#endif /* CONFIG_NAN */
};