NDIS-WDM USB WLAN Miniport driver: WdfUsbTargetDeviceCreate error

N

Neeraj

I'm porting my NDIS 5.1 based WLAN Miniport driver with WDM-USB
lower edge on KMDF, the call's to WdfUsbTargetDeviceCreate always
fail with status STATUS_NOT_SUPPORTED.The function
WdfUsbTargetDeviceCreate is called from my MiniportInitialize routine.
Please let me know what might be the possible problem. Also, below is
snapshot of same code from my MiniportInitalize function.


WDF_OBJECT_ATTRIBUTES attributes;
WDFDEVICE WdfDevice;
WDFUSBDEVICE WdfUsbTargetDevice;
WDF_OBJECT_ATTRIBUTES_INIT(&attributes);

NdisMGetDeviceProperty(MiniportAdapterHandle,
&Pdo,
&Fdo,
&NextDeviceObject,
NULL,
NULL);


Status = WdfDeviceMiniportCreate(WdfGetDriver(),
& attributes,
Pdo,
Fdo,
NextDeviceObject,
&WdfDevice);
if (!NT_SUCCESS (Status)){...........}

Status = WdfUsbTargetDeviceCreate(WdfDevice,
WDF_NO_OBJECT_ATTRIBUTES,
&WdfUsbTargetDevice);
if (!NT_SUCCESS(Status)) {.............}



Thanks in Advance.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top