NET_ADAPTER_WAKE_REASON_EAPOL_PACKET_INIT function (netadapter.h)

The client driver calls the NET_ADAPTER_WAKE_REASON_EAPOL_PACKET_INIT function to initialize a NET_ADAPTER_WAKE_EAPOL_PACKET_CAPABILITIES structure when reporting that an EAP over LAN (EAPOL) packet caused a wake-up event.

Syntax

void NET_ADAPTER_WAKE_REASON_EAPOL_PACKET_INIT(
  [out] NET_ADAPTER_WAKE_REASON_PACKET *Reason
);

Parameters

[out] Reason

A pointer to a driver allocated NET_ADAPTER_WAKE_EAPOL_PACKET_CAPABILITIES structure.

Return value

None

Remarks

When the NET_WAKE_SOURCE_TYPE is NetWakeSourceTypeEapolPacket, call NET_ADAPTER_WAKE_REASON_EAPOL_PACKET_INIT to initialize the NET_ADAPTER_WAKE_REASON_PACKET structure. Call NetAdapterReportWakeReasonPacket to report this wake reason to NetAdapterCx.

This function zeroes out the memory for the NET_ADAPTER_WAKE_REASON_PACKET structure, sets the Size member, and sets the PatternId member to NetAdapterWakeEapolPatternId.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Header netadapter.h (include netadaptercx.h)

See also

NET_ADAPTER_WAKE_EAPOL_PACKET_CAPABILITIES

Configuring NetAdapterCx Power Management

NET_ADAPTER_WAKE_REASON_PACKET

NetAdapterReportWakeReasonPacket

NET_WAKE_SOURCE_TYPE