Skip to content

Commit

Permalink
[netkvm] add surprise remove attribute
Browse files Browse the repository at this point in the history
Signed-off-by:  Zhang JianMing <zhangjianming.zjm@alibaba-inc.com>

for the problem description
please visit #1002
  • Loading branch information
zjmletang authored and YanVugenfirer committed Dec 31, 2023
1 parent a9e5022 commit cb95035
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NetKVM/wlh/ParaNdis6_Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ static NDIS_STATUS ParaNdis6_Initialize(
miniportAttributes.RegistrationAttributes.Header.Size = NDIS_SIZEOF_MINIPORT_ADAPTER_REGISTRATION_ATTRIBUTES_REVISION_1;
miniportAttributes.RegistrationAttributes.MiniportAdapterContext = pContext;
miniportAttributes.RegistrationAttributes.AttributeFlags =
// actual for USB
// NDIS_MINIPORT_ATTRIBUTES_SURPRISE_REMOVE_OK
NDIS_MINIPORT_ATTRIBUTES_SURPRISE_REMOVE_OK |
NDIS_MINIPORT_ATTRIBUTES_HARDWARE_DEVICE |
NDIS_MINIPORT_ATTRIBUTES_BUS_MASTER;

Expand Down

0 comments on commit cb95035

Please sign in to comment.