Re: OID_PNP_ENABLE_WAKE_UP not being set before OID_PNP_SET_POWER

Tech-Archive recommends: Fix windows errors by optimizing your registry



Well, to begin with, ndisuio is not a supported way to talk to ndis drivers
on WinXP ( XP is not CE).
Your app is not the power policy owner of the device.
So, tampering with power OIDs can lead to random results.
Also, when you disable the device, it is not expected to wake up
the system in disabled state, so it is just logical that the
WAKE_UP OID is not sent to it.

Regards,
-- pa

"Gammaraman" <Gammaraman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:CABC8690-4BC7-4863-A4B0-B9AF70CDD8A3@xxxxxxxxxxxxxxxx
I have a NDIS 5.1 miniport driver and I find that I can query/set many PNP
OIDs (such as OID_PNP_CAPABILITIES, OID_PNP_SET_POWER,
OID_PNP_ADD_WAKE_UP_PATTERN, OID_PNP_REMOVE_WAKE_UP_PATTERN, etc)
successfully from a user test application using NDISUIO.

When I try to set OID_PNP_ENABLE_WAKE_UP I find my miniport set handler
entry point not being hit which per MSDN guidelines is expected since NDIS
will cache this value and just before putting the miniport into a low power
state will issue a set on OID_PNP_ENABLE_WAKE_UP.

However when I try to change the device power state I find that the
OID_PNP_SET_POWER is not being preceded by a call to OID_PNP_ENABLE_WAKE_UP.
I have tried changing the power using both a direct invocation from user test
app (through NDISUIO) and also by disabling WiFi which causes a set to D3 on
my system (I am indicating in OID_PNP_CAPABILITIES that the NIC supports
wakeup for both magic packet mode and pattern byte match mode from D3 (link
state change wakeup is not supported).

On some laptops there are some adapter check boxes saying "Allow this card
to bring system out of standby, etc". I am wondering whether something
similar needs to exist in the registry key of the adapter for the wakeup
settings to be applied before the set_power to a low power state? Is there
anything else I am missing due to which NDIS is not applying the wakeup?

Appreciate any insights.

Thanks.

.



Relevant Pages