mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 23:43:39 +00:00
- Read the maximum packets that the driver allows to be sent at one time
- We don't use it yet svn path=/branches/aicom-network-fixes/; revision=36195
This commit is contained in:
parent
e1800f7c53
commit
bd9013b5ae
1 changed files with 11 additions and 0 deletions
|
@ -1207,6 +1207,17 @@ DoQueries(
|
|||
return NdisStatus;
|
||||
}
|
||||
|
||||
NdisStatus = MiniQueryInformation(Adapter, OID_GEN_MAXIMUM_SEND_PACKETS, sizeof(ULONG),
|
||||
&Adapter->NdisMiniportBlock.MaxSendPackets, &BytesWritten);
|
||||
|
||||
if (NdisStatus != NDIS_STATUS_SUCCESS)
|
||||
{
|
||||
NDIS_DbgPrint(MIN_TRACE, ("OID_GEN_MAXIMUM_SEND_PACKETS failed. NdisStatus (0x%X).\n", NdisStatus));
|
||||
|
||||
/* Set it to 1 if it fails because some drivers don't support this (?)*/
|
||||
Adapter->NdisMiniportBlock.MaxSendPackets = 1;
|
||||
}
|
||||
|
||||
NDIS_DbgPrint(DEBUG_MINIPORT, ("CurLookaheadLength (0x%X).\n", Adapter->NdisMiniportBlock.CurrentLookahead));
|
||||
|
||||
if (Adapter->NdisMiniportBlock.MaximumLookahead != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue