Bewerken

Delen via


OID_WDI_SET_P2P_START_BACKGROUND_DISCOVERY

Important

This topic is part of the WDI driver model released in Windows 10. The WDI driver model is in maintenance mode and will only receive high priority fixes. WiFiCx is the Wi-Fi driver model released in Windows 11. We recommend that you use WiFiCx to take advantage of the latest features.

OID_WDI_SET_P2P_START_BACKGROUND_DISCOVERY instructs the adapter to periodically perform Wi-Fi Direct discovery in the background

Scope Set serialized with task Normal execution time (seconds) Affects data throughput/latency
Port No 1 Yes

The adapter is required to scan the specified channels at regular intervals and be able to find a device that becomes discoverable within the device visibility timeout (typically 5 minutes). The behavior is similar to the regular Wi-Fi Direct Discovery scan (as defined in OID_WDI_TASK_P2P_DISCOVER), but it is not time-bound, and the adapter may schedule the scans at some later point in time. The adapter must perform at least one scan within each device visibility timeout. If the device visibility timeout is 0, the adapter should continue to scan regularly using its own cycle time. If a DISCOVER or SCAN task request is made during this time, the adapter should suspend the background discovery for the duration of the task and continue when the task is finished. Upon completing a background scan, the device should send the NDIS_STATUS_WDI_INDICATION_P2P_DISCOVERY_COMPLETE indication (with transaction ID equal to 0) to let the operating system know that it has completed a scan. The adapter must send this indication every time it completes a background scan.

If the channel list is provided, the adapter should only scan on the specified channels. Otherwise, it should scan all channels. If the firmware happened to discover a device outside of the specified channels, it should still send the information to the operating system.

When Listen Duration and channels (WDI_TLV_P2P_DISCOVERY_CHANNEL_SETTINGS) are specified, they refer to the listen times for the remote devices. Based on all the values of Listen Duration and channels, the adapter needs to come up with a schedule to scan the requested channels in the most efficient manner. The operating system may also specify multiple instances of Listen Duration and channels. In this case, the adapter should first come up with the scan schedule for those entries which have non-zero values of Listen Duration and Channel list. Then, the adapter should use default values in the following cases:

  1. If the Listen duration is 0, the adapter should use the default scan times for the specified channels.
  2. If the channel list is empty, the adapter should scan all of the channels in that band using the listen and cycle times specified for that band. The scan times would not apply to any channels that have separate listen durations specified by the operating system.

When the NIC is in D0, the adapter indicates the responses to the probe requests for the specific service name(s) as NDIS_STATUS_WDI_INDICATION_BSS_ENTRY_LIST notifications to the operating system. WDI caches the response information for the OS for the higher layer services, and notifies them as necessary.

When the NIC is in D2, it suspends background discovery until it goes back to D0.

Set property parameters

TLV Multiple TLV instances allowed Optional Description
WDI_TLV_P2P_BACKGROUND_DISCOVER_MODE Wi-Fi Direct Background Discover Mode parameters.
WDI_TLV_P2P_DISCOVERY_CHANNEL_SETTINGS X X List of recommended channels to scan.
WDI_TLV_P2P_DEVICE_FILTER_LIST X List of Wi-Fi Direct devices and Group Owners to search for during Wi-Fi Direct device discover.
WDI_TLV_P2P_SERVICE_NAME_HASH X X List of Service Hash names to be queried. This is required if WDI_P2P_SERVICE_DISCOVERY_TYPE_SERVICE_NAME_ONLY is specified.
WDI_TLV_VENDOR_SPECIFIC_IE X One or more IEs that must be included in the probe requests sent by the port.

Set property results

No additional data. The data in the header is sufficient.

Unsolicited indication

NDIS_STATUS_WDI_INDICATION_BSS_ENTRY_LIST

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016

Header

Dot11wdi.h