mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NDISUIO]
- Improve NduNetPnPEvent. Patch by Jacob S. Preciado CORE-10205 #resolve svn path=/trunk/; revision=69268
This commit is contained in:
parent
1264afa150
commit
c4503f35a1
1 changed files with 42 additions and 0 deletions
|
@ -45,12 +45,54 @@ NTAPI
|
|||
NduNetPnPEvent(NDIS_HANDLE ProtocolBindingContext,
|
||||
PNET_PNP_EVENT NetPnPEvent)
|
||||
{
|
||||
PNDIS_DEVICE_POWER_STATE PowerState;
|
||||
|
||||
DPRINT("NetPnPEvent\n");
|
||||
|
||||
switch (NetPnPEvent->NetEvent)
|
||||
{
|
||||
case NetEventQueryRemoveDevice:
|
||||
/* Nothing to do */
|
||||
DPRINT1("NetPnPEvent: QueryRemoveDevice\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
case NetEventSetPower:
|
||||
ASSERT(NetPnPEvent->BufferLength >= sizeof(*PowerState));
|
||||
|
||||
PowerState = NetPnPEvent->Buffer;
|
||||
switch (*PowerState)
|
||||
{
|
||||
case NdisDeviceStateD0:
|
||||
DPRINT1("NetPnPEvent: SetPower D0\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
default:
|
||||
DPRINT1("NetPnPEvent: SetPower state %d not supported\n", *PowerState);
|
||||
return NDIS_STATUS_FAILURE;
|
||||
}
|
||||
|
||||
case NetEventQueryPower:
|
||||
DPRINT1("NetPnPEvent: QueryPower\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
case NetEventCancelRemoveDevice:
|
||||
DPRINT1("NetPnPEvent: CancelRemoveDevice\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
case NetEventReconfigure:
|
||||
DPRINT1("NetPnPEvent: Reconfigure\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
case NetEventBindList:
|
||||
DPRINT1("NetPnPEvent: BindList\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
case NetEventBindsComplete:
|
||||
DPRINT1("NetPnPEvent: BindsComplete\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
case NetEventPnPCapabilities:
|
||||
DPRINT1("NetPnPEvent: PnPCapabilities\n");
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue