diff -r 1c425781161e -r 3d23268b50f6 wlan_bearer/wlanldd/wlan_common/umac_common/src/umacdot11ibssnormalmode.cpp --- a/wlan_bearer/wlanldd/wlan_common/umac_common/src/umacdot11ibssnormalmode.cpp Tue Jul 06 16:24:00 2010 +0300 +++ b/wlan_bearer/wlanldd/wlan_common/umac_common/src/umacdot11ibssnormalmode.cpp Wed Aug 18 11:35:02 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" @@ -16,7 +16,7 @@ */ /* -* %version: 14 % +* %version: 15 % */ #include "config.h" @@ -110,13 +110,14 @@ aCtxImpl.IeData( aIeData ); aCtxImpl.IeDataLength( aIeDataLength ); + TInt status(KErrNone); // check do we meet the requirements for the network // and construct necessary objects for establishing the connection - if ( InitNetworkConnect( + if ( ( status = InitNetworkConnect( aCtxImpl, aScanResponseFrameBodyLength, - aScanResponseFrameBody ) ) + aScanResponseFrameBody ) ) == KErrNone ) { // continue @@ -134,7 +135,7 @@ { // abort ret = EFalse; - OnOidComplete( aCtxImpl, KErrGeneral ); + OnOidComplete( aCtxImpl, status ); } return ret;