mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
[DHCPCSVC]
- Adapt the reconnect hack to also enable DHCP when transitioning from static configuration to DHCP enabled via netcfgx svn path=/branches/wlan-bringup/; revision=54945
This commit is contained in:
parent
ee49cc8fca
commit
5335d1ce21
1 changed files with 5 additions and 3 deletions
|
@ -210,10 +210,11 @@ IsReconnectHackNeeded(PDHCP_ADAPTER Adapter, const MIB_IFROW* IfEntry)
|
||||||
|
|
||||||
proto = find_protocol_by_adapter(&Adapter->DhclientInfo);
|
proto = find_protocol_by_adapter(&Adapter->DhclientInfo);
|
||||||
|
|
||||||
if (!proto)
|
if (Adapter->DhclientInfo.client->state == S_BOUND && !proto)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (Adapter->DhclientInfo.client->state != S_BOUND)
|
if (Adapter->DhclientInfo.client->state != S_BOUND &&
|
||||||
|
Adapter->DhclientInfo.client->state != S_STATIC)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
ApiUnlock();
|
ApiUnlock();
|
||||||
|
@ -331,6 +332,7 @@ DWORD WINAPI AdapterDiscoveryThread(LPVOID Context) {
|
||||||
{
|
{
|
||||||
/* This handles a disconnect/reconnect */
|
/* This handles a disconnect/reconnect */
|
||||||
|
|
||||||
|
if (proto)
|
||||||
remove_protocol(proto);
|
remove_protocol(proto);
|
||||||
Adapter->DhclientInfo.client->state = S_INIT;
|
Adapter->DhclientInfo.client->state = S_INIT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue