WIFI Direct --> Do we require hostapd for wifi direct setup and implementatipn

Can someone explain me, do we require HostApd for wifi direct setup and implementation.

I understand that, hostapd --> works as WPA/WPA2 authenticator and mostly used for AP functionality.

wpa supplicant --> works as WPA/WPA2 client

But looking at some of the recommendation, we need hostapd daemon also for WIFI direct. I do not understand the role of Hostapd here in wifi direct. Can anyone help me.