Share via


OID_DOT11_CREATE_MAC

Important  The Native 802.11 Wireless LAN interface is deprecated in Windows 10 and later. Please use the WLAN Device Driver Interface (WDI) instead. For more information about WDI, see WLAN Universal Windows driver model.

 

When a method request of the OID_DOT11_CREATE_MAC object identifier (OID) is made, the miniport driver must create a new 802.11 MAC entity and return a DOT11_MAC_INFO structure. For more information about the method request type, see NDIS_OID_REQUEST.

Note  Support for this OID is mandatory.

 

The data type for this OID is the DOT11_MAC_INFO structure.

If the miniport driver has already created the maximum number of MAC entities that it can support, it should fail this OID method request and return the status indication NDIS_STATUS_OPEN_LIST_FULL.

Before the miniport driver completes its response to this OID request, it should call the NdisMAllocatePort function to allocate a corresponding NDIS port for each 802.11 MAC entity that the driver creates.

Starting in Windows 8, if the input buffer size is > 0, the input for this OID is formatted as a DOT11_MAC_PARAMETERS structure.

Remarks

If the MAC is to function as a Wi-Fi Direct device port, uOpmodeMask in DOT11_MAC_PARAMETERS will contain the DOT11_OPERATION_MODE_WFD_DEVICE flag. In this case, the miniport driver must return the same device address in DOT11_MAC_INFO as the one specified in the DeviceAddress member of DOT11_WFD_ATTRIBUTES sent with the NdisMSetMiniportAttributes function.

Requirements

Version

Available starting with Windows 7.

Header

Windot11.h (include Ndis.h)

See also

DOT11_MAC_INFO

DOT11_MAC_PARAMETERS

NDIS_OID_REQUEST

NdisMAllocatePort

Native 802.11 Wireless LAN OIDs