mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Add the adapter to the adapter list only after it is bound to the IP layer
svn path=/branches/aicom-network-fixes/; revision=36310
This commit is contained in:
parent
56d37e6da3
commit
249fa88dd2
1 changed files with 5 additions and 5 deletions
|
@ -1207,11 +1207,6 @@ NDIS_STATUS LANRegisterAdapter(
|
|||
/* Convert returned link speed to bps (it is in 100bps increments) */
|
||||
IF->Speed = Speed * 100L;
|
||||
|
||||
/* Add adapter to the adapter list */
|
||||
ExInterlockedInsertTailList(&AdapterListHead,
|
||||
&IF->ListEntry,
|
||||
&AdapterListLock);
|
||||
|
||||
/* Bind adapter to IP layer */
|
||||
if( !BindAdapter(IF, RegistryPath) ) {
|
||||
TI_DbgPrint(DEBUG_DATALINK,("denying adapter %wZ (BindAdapter)\n", AdapterName));
|
||||
|
@ -1219,6 +1214,11 @@ NDIS_STATUS LANRegisterAdapter(
|
|||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
}
|
||||
|
||||
/* Add adapter to the adapter list */
|
||||
ExInterlockedInsertTailList(&AdapterListHead,
|
||||
&IF->ListEntry,
|
||||
&AdapterListLock);
|
||||
|
||||
TI_DbgPrint(DEBUG_DATALINK, ("Leaving.\n"));
|
||||
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue