Windows Driver Kit: Network Devices and Protocols
Network Association
The driver must do the following when associating:
After it is associated, the 802.11 device is free to roam to another BSSID based on its own set of rules. For example, the device can roam to another BSSID that has a much better RSSI value than the current association.
Note If the desired BSSID has been set through OID_802_11_BSSID, then the 802.11 device must stay associated with that BSSID and cannot roam. After it is set, the desired BSSID can only be cleared when set through OID_802_11_BSSID to a value of 0xFFFFFFFFFFFF.
Whenever the device associates or reassociates, the driver must make a media connect indication. When making this indication, the miniport driver must follow the rules discussed in Media Status Indications for 802.11 Networks.
After it makes the media connect indication, the driver must do the following:
- If the device supports TKIP or AES, then the driver must clear any keys for these cipher suites on the device. These keys are set through OID_802_11_ADD_KEY.
- If media streaming was enabled, then the driver must disable media streaming and set its streaming mode to Ndis802_11MediaStreamOff.
- The driver must clear the DecryptSuccessCount and DecryptFailureCount counters from the NDIS_802_11_STATISTICS structure. For more information about these statistical counters, see OID_802_11_STATISTICS.