WifiDeviceSetWiFiDirectCapabilities function (wificx.h)

The WifiDeviceSetWiFiDirectCapabilities function sets the Wi-Fi Direct capabilities for a WiFiCx device.

Syntax

NTSTATUS WifiDeviceSetWiFiDirectCapabilities(
  WDFDEVICE                          Device,
  const WIFI_WIFIDIRECT_CAPABILITIES *WiFiDirectCapabilities
);

Parameters

Device

A handle to a framework device object the client driver obtained from a previous call to WdfDeviceCreate.

WiFiDirectCapabilities

A pointer to a client driver-allocated and initialized WIFI_WIFIDIRECT_CAPABILITIES structure.

Return value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.

Remarks

Client drivers need to call WifiDeviceSetWiFiDirectCapabilities in the set device capabilities phase. Typically this is within EvtDevicePrepareHardware.

Call WIFI_WIFIDIRECT_CAPABILITIES_INIT to initialize the WIFI_WIFIDIRECT_CAPABILITIES structure and fill in its Size field. Then call WifiDeviceSetWiFiDirectCapabilities to report band capabilities to WiFiCx.

For an example showing how to set Wi-Fi Direct capabilities, see Wi-Fi Direct support.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Header wificx.h
IRQL PASSIVE_LEVEL

See also

WIFI_WIFIDIRECT_CAPABILITIES

WIFI_WIFIDIRECT_CAPABILITIES_INIT

Wi-Fi Direct support