- Don't assert on unimplemented ioctl. Print the control code instead.
CORE-7630
svn path=/trunk/; revision=75921
PLOGICAL_ADAPTER Adapter = (PLOGICAL_ADAPTER)DeviceObject->DeviceExtension;
PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp);
NDIS_STATUS Status = STATUS_NOT_SUPPORTED;
+ ULONG ControlCode;
ULONG Written;
Irp->IoStatus.Information = 0;
ASSERT(Adapter);
- switch (Stack->Parameters.DeviceIoControl.IoControlCode)
+ ControlCode = Stack->Parameters.DeviceIoControl.IoControlCode;
+ switch (ControlCode)
{
case IOCTL_NDIS_QUERY_GLOBAL_STATS:
Status = MiniQueryInformation(Adapter,
break;
default:
- ASSERT(FALSE);
+ NDIS_DbgPrint(MIN_TRACE, ("NdisIDeviceIoControl: unsupported control code 0x%lx\n", ControlCode));
break;
}