mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[WLANCONF]
- Don't manually refresh IP information when connecting to a network svn path=/branches/wlan-bringup/; revision=54931
This commit is contained in:
parent
a7427b3bde
commit
0552bdfef6
1 changed files with 2 additions and 6 deletions
|
@ -563,7 +563,7 @@ WlanPrintCurrentStatus(HANDLE hAdapter)
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
WlanConnect(HANDLE hAdapter, PIP_ADAPTER_INDEX_MAP IpInfo)
|
WlanConnect(HANDLE hAdapter)
|
||||||
{
|
{
|
||||||
BOOL bSuccess;
|
BOOL bSuccess;
|
||||||
DWORD dwBytesReturned, SetOidSize;
|
DWORD dwBytesReturned, SetOidSize;
|
||||||
|
@ -725,10 +725,6 @@ WlanConnect(HANDLE hAdapter, PIP_ADAPTER_INDEX_MAP IpInfo)
|
||||||
|
|
||||||
if (!bSuccess)
|
if (!bSuccess)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Update our IP address */
|
|
||||||
IpReleaseAddress(IpInfo);
|
|
||||||
IpRenewAddress(IpInfo);
|
|
||||||
|
|
||||||
_tprintf(_T("The operation completed successfully.\n"));
|
_tprintf(_T("The operation completed successfully.\n"));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -943,7 +939,7 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
else if (bConnect)
|
else if (bConnect)
|
||||||
{
|
{
|
||||||
if (!WlanConnect(hAdapter, &IpInfo))
|
if (!WlanConnect(hAdapter))
|
||||||
{
|
{
|
||||||
DoFormatMessage(GetLastError());
|
DoFormatMessage(GetLastError());
|
||||||
CloseHandle(hAdapter);
|
CloseHandle(hAdapter);
|
||||||
|
|
Loading…
Reference in a new issue