Share via


Media Status Indications for 802.11 Networks

An 802.11 miniport driver reports its association and disassociation status through media status indications by calling NdisMIndicateStatus. There are two types of media status indications for 802.11 devices:

  • Media connect indication
    The driver makes this indication immediately after it associates or reassociates. The driver makes the indication by calling NdisMIndicateStatus with the GeneralStatus parameter set to NDIS_STATUS_MEDIA_CONNECT.

  • Media disconnect indication
    The driver makes this indication whenever it disassociates. The driver makes the indication by calling NdisMIndicateStatus with the GeneralStatus parameter set to NDIS_STATUS_MEDIA_DISCONNECT.

    The driver must make a media disconnect indication only if it was previously associated and had made a media connect indication. The only exception to this is when the driver makes a media disconnect indication shortly after its MiniportInitialize function returns.

After calling NdisMIndicateStatusor making the last call in a series of calls to NdisMIndicateStatus, the miniport driver must call NdisMIndicateStatusComplete.

Note   A miniport driver must not call NdisMIndicateStatus from its MiniportInitialize, MiniportHalt, MiniportISR, or MiniportShutdown functions.

 

The rules for generating media status indications vary according to the driver's network mode. The following sections describe how an 802.11 miniport driver makes media connect indications and media disconnect indications when configured for infrastructure or ad hoc network modes:

Media Status Indications for Infrastructure Networks

Media Status Indications for Ad Hoc Networks

 

 

Send comments about this topic to Microsoft