NetAdapterSetLinkLayerCapabilities function

Sets the link layer capabilities of the network adapter.

Syntax

void NetAdapterSetLinkLayerCapabilities(
  NETADAPTER                          Adapter,
  NET_ADAPTER_LINK_LAYER_CAPABILITIES *LinkLayerCapabilities
);

Parameters

Adapter

The network adapter object that the client created in a prior call to NetAdapterCreate.

LinkLayerCapabilities

A pointer to an allocated and initialized NET_ADAPTER_LINK_LAYER_CAPABILITIES structure.

Return value

None

Remarks

The client driver calls this method when starting a net adapter, before calling NetAdapterStart.

This method, along with a few other set capability methods (see below), is the replacement for the NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES union that a (non-WDF) client of Ndis.sys sets by calling NdisMSetMiniportAttributes.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.21
Header netadapter.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL

See also

NetAdapterSetDataPathCapabilities

NetAdapterSetPowerCapabilities