WifiDeviceSetWiFiDirectCapabilities - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wificx.h

NTSTATUS WifiDeviceSetWiFiDirectCapabilities(
  WDFDEVICE                          Device,
  const WIFI_WIFIDIRECT_CAPABILITIES *WiFiDirectCapabilities
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wificx-wifidevicesetwifidirectcapabilities)

Description

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

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.

See also

WIFI_WIFIDIRECT_CAPABILITIES

WIFI_WIFIDIRECT_CAPABILITIES_INIT

Wi-Fi Direct support