Fixed TC failure
authorJaehwan Lee <jh8379.lee@samsung.com>
Tue, 2 Apr 2013 06:12:10 +0000 (15:12 +0900)
committerJaehwan Lee <jh8379.lee@samsung.com>
Tue, 2 Apr 2013 08:22:33 +0000 (17:22 +0900)
Change-Id: If409b3c73a817b133e1d44d862aa82b564f7574e
Signed-off-by: Jaehwan Lee <jh8379.lee@samsung.com>
src/wifi/FNetWifi_WifiDirectDeviceImpl.cpp
src/wifi/FNetWifi_WifiDirectSystemAdapter.cpp
src/wifi/FNetWifi_WifiSystemAdapter.cpp

index 5c198a6..5046b1f 100644 (file)
@@ -1598,6 +1598,7 @@ _WifiDirectDeviceImpl::GetWifiDirectDeviceInstanceWithoutIpServiceN(void)
 IList*
 _WifiDirectDeviceImpl::GetAllDeviceInfoN(void)
 {
+       ClearLastResult();
        result r = E_SUCCESS;
 
        _WifiDirectSystemAdapter* pWifiSystemAdapter = null;
index 42580c2..5f8f84e 100644 (file)
@@ -1148,7 +1148,7 @@ _WifiDirectSystemAdapter::Construct(void)
        SysTryReturn(NID_NET_WIFI, pWifiDirectEvent != null, false, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
        r = pWifiDirectEvent->Construct();
-       SysTryReturn(NID_NET_WIFI, r == E_SUCCESS, false, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+       SysTryReturn(NID_NET_WIFI, r == E_SUCCESS, false, E_SYSTEM, "[E_SYSTEM] Construction of Event has failed.");
 
        __pWifiServiceProxy = _WifiIpcProxy::GetInstance();
        if (__pWifiServiceProxy != null)
index 9e4bb71..aa5d662 100644 (file)
@@ -341,10 +341,11 @@ _WifiSystemAdapter::OnWifiConnected(wifi_error_e errorCode, void* pUserData)
 {
     result r = E_SUCCESS;
     _WifiConvertErrorResult(errorCode != WIFI_ERROR_NONE, r, E_FAILURE);
+    _WifiConvertErrorResult(errorCode == WIFI_ERROR_ALREADY_EXISTS, r, E_SUCCESS);
     _WifiConvertErrorResult(errorCode == WIFI_ERROR_INVALID_KEY, r, E_AUTHENTICATION);
     _WifiConvertErrorResult(errorCode == WIFI_ERROR_NO_REPLY, r, E_NOT_RESPONDING);
     _WifiConvertErrorResult(errorCode == WIFI_ERROR_DHCP_FAILED, r, E_DHCP);
-    SysTryLog(NID_NET_WIFI, errorCode == WIFI_ERROR_NONE, "Failed result from OnWifiConnected() is 0x%x.", errorCode);
+    SysTryLog(NID_NET_WIFI, r == E_SUCCESS, "Failed result from OnWifiConnected() is 0x%x.", errorCode);
 
     _IWifiManagerEventListener* pMgrEvtListener = null;
     IEnumeratorT<_IWifiManagerEventListener*>* pEnum = null;