disabling remote wake

Hi All,

I have a kmdf hid minidriver that I want to disable remote wake on (client
request).

Previously with another driver I managed to do this via a lower filter that
changed the device caps (http://www.osronline.com/showThread.cfm?link=181699,
in the IRP_MN_QUERY_CAPABILITIES completion set SystemWake = 0). This driver
was on a single interface of a composite device and the filter would only
work if it filtered the usb composite device (ie one level down from my hid
minidriver)

I now have a newer hid driver that I need to do the same thing with but this
driver takes the place of the whole composite usb device. So far I haven?t
had any luck changing the device caps (it just seems to be ignored).

If anyone has any ideas it would be much appreciated.

Cheers,

dan

For those interested I have managed to find another way.

The solution for me was to change my filter to complete IRP_MN_WAIT_WAKE
with STATUS_NOT_SUPPORTED which seems to do the trick.

On Fri, Dec 3, 2010 at 4:21 PM, Daniel Newton wrote:

> Hi All,
>
> I have a kmdf hid minidriver that I want to disable remote wake on (client
> request).
>
> Previously with another driver I managed to do this via a lower filter that
> changed the device caps (
> http://www.osronline.com/showThread.cfm?link=181699, in the
> IRP_MN_QUERY_CAPABILITIES completion set SystemWake = 0). This driver was on
> a single interface of a composite device and the filter would only work if
> it filtered the usb composite device (ie one level down from my hid
> minidriver)
>
> I now have a newer hid driver that I need to do the same thing with but
> this driver takes the place of the whole composite usb device. So far I
> haven?t had any luck changing the device caps (it just seems to be ignored).
>
> If anyone has any ideas it would be much appreciated.
>
> Cheers,
>
> dan
>