The Device port should only make itself discoverable once Windows has enabled Listen State on the port.
The miniport driver must report the list of discovered devices in this completion indication.
This completion behavior is different than scanning in Extensible Station Mode.
Windows may query for the list of discovered devices using OID_DOT11_WFD_ENUM_DEVICE_LIST.
Important The Native 802.11 Wireless LAN interface is deprecated in Windows 10 and later.
Please use the WLAN Device Driver Interface (WDI) instead.
For more information about WDI, see WLAN Universal Windows driver model.
Windows uses the Device Discovery procedure to ask the miniport driver to search for Wi-Fi Direct Devices and optionally search for legacy Wi-Fi networks.
Device discovery is only performed on the NDIS port configured in Wi-Fi Direct Device mode.
The figure below shows the typical interactions between Windows and the miniport driver for device discovery.
A Wi-Fi Direct Device on the PC is not discoverable by default.
Before it becomes discoverable, Windows will configure the P2P Device Info on the port and provide the set of IEs to include in the probe response.