WIFI_DEVICE_CONFIG_INIT function (wificx.h)

The WIFI_DEVICE_CONFIG_INIT function initializes the WIFI_DEVICE_CONFIG structure.

Syntax

void WIFI_DEVICE_CONFIG_INIT(
  WIFI_DEVICE_CONFIG                      *Config,
  ULONG                                   WdiVersion,
  PFN_WIFI_DEVICE_SEND_COMMAND            SendCommand,
  PFN_WIFI_DEVICE_CREATE_ADAPTER          CreateAdapter,
  PFN_WIFI_DEVICE_CREATE_WIFIDIRECTDEVICE CreateWifiDirectDevice
);

Parameters

Config

[Out] A pointer to the client driver-allocated WIFI_DEVICE_CONFIG structure.

WdiVersion

[In] The WDI version.

SendCommand

[In] A pointer to the client driver's implementation of the EVT_WIFI_DEVICE_SEND_COMMAND callback function.

CreateAdapter

[In] A pointer to the client driver's implementation of the EVT_WIFI_DEVICE_CREATE_ADAPTER callback function.

CreateWifiDirectDevice

[In] A pointer to the client driver's implementation of the EVT_WIFI_DEVICE_CREATE_WIFIDIRECTDEVICE callback function.

Return value

None

Remarks

The client driver calls this function from its EVT_WDF_DRIVER_DEVICE_ADD event callback function in preparation for calling WiFiDeviceInitialize.

Requirements

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

See also

Writing a WiFiCx client driver

WIFI_DEVICE_CONFIG

EVT_WIFI_DEVICE_SEND_COMMAND

EVT_WIFI_DEVICE_CREATE_ADAPTER

EVT_WIFI_DEVICE_CREATE_WIFIDIRECTDEVICE

WiFiDeviceInitialize