mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
- Query MaxMulticastAddresses from the miniport
svn path=/trunk/; revision=40175
This commit is contained in:
parent
1c93767ee0
commit
bd33ba7e48
1 changed files with 13 additions and 2 deletions
|
@ -1621,7 +1621,8 @@ NdisIPnPStartDevice(
|
||||||
NDIS_HANDLE ConfigHandle;
|
NDIS_HANDLE ConfigHandle;
|
||||||
ULONG Size;
|
ULONG Size;
|
||||||
LARGE_INTEGER Timeout;
|
LARGE_INTEGER Timeout;
|
||||||
/* FIXME - KIRQL OldIrql; */
|
UINT MaxMulticastAddresses;
|
||||||
|
ULONG BytesWritten;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prepare wrapper context used by HW and configuration routines.
|
* Prepare wrapper context used by HW and configuration routines.
|
||||||
|
@ -1806,7 +1807,17 @@ NdisIPnPStartDevice(
|
||||||
NdisStatus = DoQueries(Adapter, AddressOID);
|
NdisStatus = DoQueries(Adapter, AddressOID);
|
||||||
if (NdisStatus == NDIS_STATUS_SUCCESS)
|
if (NdisStatus == NDIS_STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
Success = EthCreateFilter(32, /* FIXME: Query this from miniport. */
|
NdisStatus = MiniQueryInformation(Adapter, OID_802_3_MAXIMUM_LIST_SIZE, sizeof(UINT),
|
||||||
|
&MaxMulticastAddresses, &BytesWritten);
|
||||||
|
|
||||||
|
if (NdisStatus != NDIS_STATUS_SUCCESS)
|
||||||
|
{
|
||||||
|
ExInterlockedRemoveEntryList( &Adapter->ListEntry, &AdapterListLock );
|
||||||
|
NDIS_DbgPrint(MAX_TRACE, ("MiniQueryInformation failed (%x)\n", NdisStatus));
|
||||||
|
return NdisStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
Success = EthCreateFilter(MaxMulticastAddresses,
|
||||||
Adapter->Address.Type.Medium802_3,
|
Adapter->Address.Type.Medium802_3,
|
||||||
&Adapter->NdisMiniportBlock.EthDB);
|
&Adapter->NdisMiniportBlock.EthDB);
|
||||||
if (Success)
|
if (Success)
|
||||||
|
|
Loading…
Reference in a new issue