Check for Adapter Hang and Reset in NDIS 6.0 (Compact 7)
3/12/2014
NDIS 6.0 replaces the NDIS 5.xMiniportCheckForHang function with the MiniportCheckForHangEx function. NDIS calls a miniport driver's MiniportCheckForHangEx function to check the operational state of an adapter. NDIS 6.0 also replaces the NDIS 5.xMiniportReset function with the MiniportResetEx function.
The following table shows which API elements have been renamed and/or changed for NDIS 6.0.
NDIS 5.x | NDIS 6.0 |
---|---|
MiniportCheckForHang |
MiniportCheckForHangEx |
MiniportReset |
MiniportResetEx |
To port adapter hang-checking functionality to NDIS 6.0
Remove the MiniportCheckForHang function from your miniport driver.
Implement MiniportCheckForHangEx to check the operational state of the adapter. MiniportCheckForHangEx does nothing more than check the internal state of the adapter and return TRUE if it detects that the adapter is not operating correctly.
To port adapter reset to NDIS 6.0
Remove the MiniportReset function from your miniport driver.
Implement MiniportResetEx to handle adapter reset. An NDIS 6.0 miniport driver's MiniportResetEx function differs from the NDIS 5.xMiniportReset function in that NDIS 6.0 miniport drivers can complete pending OID requests and send requests in the context of a reset. NDIS no longer performs such completion for the driver. Alternatively, the miniport driver can complete pending OID requests after the reset completes.