WifiDeviceSetDeviceCapabilities function (wificx.h)
The WifiDeviceSetDeviceCapabilities function sets the device capabilities for a WiFiCx device.
Syntax
NTSTATUS WifiDeviceSetDeviceCapabilities(
WDFDEVICE Device,
const WIFI_DEVICE_CAPABILITIES *DeviceCapabilities
);
Parameters
Device
A handle to a framework device object the client driver obtained from a previous call to WdfDeviceCreate.
DeviceCapabilities
A pointer to a client driver-allocated and initialized WIFI_DEVICE_CAPABILITIES structure.
Return value
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
Remarks
Client drivers typically call WifiDeviceSetDeviceCapabilities within EvtDevicePrepareHardware.
Call WIFI_DEVICE_CAPABILITIES_INIT to initialize the WIFI_DEVICE_CAPABILITIES structure and fill in its Size field. Then call WifiDeviceSetDeviceCapabilities to report device capabilities to WiFiCx.
For more information see Default (station) adapter creation flow.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11 |
Minimum supported server | Windows Server 2022 |
Header | wificx.h |
IRQL | PASSIVE_LEVEL |