This documentation is archived and is not being maintained.


This OID is used to query and set the list of WPA2 pre-authentication PMKIDs within the miniport driver's pairwise master key (PMK) cache.

When set, this OID requests the miniport driver to overwrite its PMK cache with the list of PMKIDs contained within the OID data. The device must only accept this list if the number of PMKIDs does not exceed the size of the device's PMK cache. The driver returns the PMK cache size it supports through NoOfPMKIDs when queried with OID_802_11_CAPABILITY. If the number of PMKIDs does exceed the driver's NoOfPMKIDs, the driver must return NDIS_STATUS_INVALID_DATA.

Pre-authentication and PMK caching are applicable only when the miniport driver's authentication mode is set to Ndis802_11AuthModeWPA2. If the miniport driver's authentication mode is not set to Ndis802_11AuthModeWPA2, the driver must return NDIS_STATUS_INVALID_DATA in response to a query or setting of this OID.

The driver uses the PMKID cache during an association or reassociation to an access point. If the BSSID of the access point is found within the PMKID cache, the device must use the corresponding PMKID data for that BSSID within the RSN information element of the association or reassociation request.

The driver can only clear its PMKID cache whenever it make a media disconnect indication. Otherwise, it must change the PMKID cache only when set through this OID.

The data for this OID is specified in an NDIS_802_11_PMKID structure, which is defined as follows:

    typedef struct _NDIS_802_11_PMKID {
         ULONG Length;
         ULONG BSSIDInfoCount;
         BSSID_INFO BSSIDInfo[1];
    } NDIS_802_11_PMKID, *PNDIS_802_11_PMKID;

The structure includes the following members:


The length of the NDIS_802_11_PMKID structure and BSSIDInfo array in bytes. Length is calculated as follows:

(BSSIDInfoCount * sizeof(BSSIDInfo)


The number of BSSIDInfo structures.


A variable-length array of BSSID/PMKID pairs. Each pair is formatted as a BSSID_INFO structure.

The BSSID_INFO structure is defined as:

typedef struct _BSSID_INFO {         NDIS_802_11_MAC_ADDRESS BSSID;

The members of this structure contain the following information:


The BSSID to which the PMKID applies.


The PMKID associated with the BSSID.



Send comments about this topic to Microsoft