- Fix a bug where a static IP configuration was not properly restored after a media state change

svn path=/branches/wlan-bringup/; revision=54934
This commit is contained in:
Cameron Gutman 2012-01-13 10:47:44 +00:00
parent e8b08a9dd8
commit 8b3125261d
2 changed files with 4 additions and 0 deletions

View file

@ -1568,6 +1568,7 @@ NTSTATUS DispTdiSetIPAddress( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
TI_DbgPrint(MID_TRACE,("New Netmask : %x\n",
IF->Netmask.Address.IPv4Address));
IF->DhcpEnabled = FALSE;
IPAddInterfaceRoute( IF );
IpAddrChange->Address = IF->Index;
@ -1599,6 +1600,8 @@ NTSTATUS DispTdiDeleteIPAddress( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
IF->Broadcast.Type = IP_ADDRESS_V4;
IF->Broadcast.Address.IPv4Address = 0;
IF->DhcpEnabled = TRUE;
Status = STATUS_SUCCESS;
}
} EndFor(IF);

View file

@ -214,6 +214,7 @@ PIP_INTERFACE IPCreateInterface(
IF->PointToPoint.Type = IP_ADDRESS_V4;
IF->Netmask.Type = IP_ADDRESS_V4;
IF->Broadcast.Type = IP_ADDRESS_V4;
IF->StaticRouter.Type = IP_ADDRESS_V4;
TcpipInitializeSpinLock(&IF->Lock);