I have a virtual miniport adapter (NDIS 6.0) that I need to remain loaded
during stand by and hibernation (I am communicating with a service which I
don't control that demands this). I have set
NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND in the registration attributes
in MiniportInitializeEx.

Still when the PC is going into stand by MiniportHalt is called with
haltAction = NdisHaltDevicePoweredDown.

Anyone who has an idea of preventing this?

Best regards,
Fredrik Jansson

Re: Miniport that should not be unloaded at stand by and hibernation by Stephan

Stephan
Tue Oct 16 06:40:51 PDT 2007

Carefully read the docs on NDIS_ATTRIBUTE_NO_HALT_ON_SUSPEND. Your
miniport needs to properly reply to PNP requests in order for NDIS to
not halt the miniport during standby/hibernate.

Stephan
---
On Oct 16, 11:17 am, "Fredrik Jansson" <nos...@quarterfive.com> wrote:
> I have a virtual miniport adapter (NDIS 6.0) that I need to remain loaded
> during stand by and hibernation (I am communicating with a service which I
> don't control that demands this). I have set
> NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND in the registration attributes
> in MiniportInitializeEx.
>
> Still when the PC is going into stand by MiniportHalt is called with
> haltAction = NdisHaltDevicePoweredDown.
>
> Anyone who has an idea of preventing this?
>
> Best regards,
> Fredrik Jansson


Re: Miniport that should not be unloaded at stand by and hibernation by Fredrik

Fredrik
Tue Oct 16 11:53:10 PDT 2007

I will try this... I had totaly missed the OID_PNP_CAPABILITIES requirement.

Many thanks, really helpful!

Best regards
Fredrik

"Stephan Wolf [MVP]" <stewo68@hotmail.com> wrote in message
news:1192542051.658227.276130@i38g2000prf.googlegroups.com...
> Carefully read the docs on NDIS_ATTRIBUTE_NO_HALT_ON_SUSPEND. Your
> miniport needs to properly reply to PNP requests in order for NDIS to
> not halt the miniport during standby/hibernate.
>
> Stephan
> ---
> On Oct 16, 11:17 am, "Fredrik Jansson" <nos...@quarterfive.com> wrote:
>> I have a virtual miniport adapter (NDIS 6.0) that I need to remain loaded
>> during stand by and hibernation (I am communicating with a service which
>> I
>> don't control that demands this). I have set
>> NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND in the registration
>> attributes
>> in MiniportInitializeEx.
>>
>> Still when the PC is going into stand by MiniportHalt is called with
>> haltAction = NdisHaltDevicePoweredDown.
>>
>> Anyone who has an idea of preventing this?
>>
>> Best regards,
>> Fredrik Jansson
>


Re: Miniport that should not be unloaded at stand by and hibernation by Alireza

Alireza
Wed Oct 17 02:30:32 PDT 2007

Halting your miniport during power down is not going to cause your driver to
get unloaded because from PnP's point of view, your device is still up and
running.

-ali

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Fredrik Jansson" <nospam@quarterfive.com> wrote in message
news:270CF4CF-65D9-439B-8F66-9618EA598CDE@microsoft.com...
>I have a virtual miniport adapter (NDIS 6.0) that I need to remain loaded
>during stand by and hibernation (I am communicating with a service which I
>don't control that demands this). I have set
>NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND in the registration attributes
>in MiniportInitializeEx.
>
> Still when the PC is going into stand by MiniportHalt is called with
> haltAction = NdisHaltDevicePoweredDown.
>
> Anyone who has an idea of preventing this?
>
> Best regards,
> Fredrik Jansson


Re: Miniport that should not be unloaded at stand by and hibernation by Calvin

Calvin
Wed Oct 17 11:14:33 PDT 2007

I don't remember my ndis6x MiniportHalt being called upon suspend. We stall
the hw and turn on WOL in a "set D3" context. I guess op's problem is he
didn't handle PM/PNP related OID correctly so ndis sends "MiniportHalt on
suspend" instead of a D3 request.

--
Calvin Guan
Principal Engineer
Broadcom Corporation
Connecting Everything(r)

"Alireza Dabagh [MS]" <alid@online.microsoft.com> wrote in message
news:uAa6xBKEIHA.3848@TK2MSFTNGP05.phx.gbl...
> Halting your miniport during power down is not going to cause your driver
> to get unloaded because from PnP's point of view, your device is still up
> and running.
>
> -ali
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "Fredrik Jansson" <nospam@quarterfive.com> wrote in message
> news:270CF4CF-65D9-439B-8F66-9618EA598CDE@microsoft.com...
>>I have a virtual miniport adapter (NDIS 6.0) that I need to remain loaded
>>during stand by and hibernation (I am communicating with a service which I
>>don't control that demands this). I have set
>>NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND in the registration attributes
>>in MiniportInitializeEx.
>>
>> Still when the PC is going into stand by MiniportHalt is called with
>> haltAction = NdisHaltDevicePoweredDown.
>>
>> Anyone who has an idea of preventing this?
>>
>> Best regards,
>> Fredrik Jansson
>