'Power Management' option lost from DeviceManager, ndis6.2 miniport driver build with WDK6734.1

Discussion in 'Windows Vista Drivers' started by zhangfei, Jun 30, 2008.

  1. zhangfei

    zhangfei Guest

    DeviceManager ¨¤ property lost the ¡®Power Management¡¯ option.

    My ndis6.2 NIC driver registerd NDIS_PM_CAPABILITIES, but it never gets
    OID_PM_PARAMETERS query/set.

    NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES GeneralAttributes;

    // pPMCapabilities -- PNDIS_PM_CAPABILITIES

    NdisZeroMemory( pPMCapabilities, sizeof(*pPMCapabilities) );

    pPMCapabilities->Header.Type = NDIS_OBJECT_TYPE_DEFAULT; /*fixme!*/

    pPMCapabilities->Header.Revision = NDIS_PM_CAPABILITIES_REVISION_1;

    pPMCapabilities->Header.Size =
    NDIS_SIZEOF_NDIS_PM_CAPABILITIES_REVISION_1;

    pPMCapabilities->SupportedWoLPacketPatterns =
    NDIS_PM_WOL_BITMAP_PATTERN_SUPPORTED | NDIS_PM_WOL_MAGIC_PACKET_SUPPORTED;

    pPMCapabilities->NumTotalWoLPatterns = MAX_PATTERN_COUNT;

    pPMCapabilities->MaxWoLPatternSize = MAX_PATTERN_SIZE; // maximum
    bytes that can be compared against a pattern.

    pPMCapabilities->MaxWoLPatternOffset = 0; // strting from MAC header,
    how many bytes in the packet can be examined.

    pPMCapabilities->MaxWoLPacketSaveBuffer = MAX_PATTERN_SIZE; // how
    many bytes of WOL packet can be saved to a buffer and indicated up.

    pPMCapabilities->MinMagicPacketWakeUp = NdisDeviceStateD3;

    pPMCapabilities->MinPatternWakeUp = NdisDeviceStateD3;

    pPMCapabilities->MinLinkChangeWakeUp = NdisDeviceStateD3;

    GeneralAttributes.PowerManagementCapabilitiesEx = &PMCapabilities;

    Status = NdisMSetMiniportAttributes(Adapter->MiniportAdapterHandle,

    (PNDIS_MINIPORT_ADAPTER_ATTRIBUTES)&GeneralAttributes);

    Any suggestions? Thanks.
     
    zhangfei, Jun 30, 2008
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.