# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1284701563 -10800 # Node ID 84c6623982f6064ea886612622877d996f16309a # Parent a9c709db68dbb1d3c52c3e0cfa75c86f627afd8a Revision: 201035 Kit: 201037 diff -r a9c709db68db -r 84c6623982f6 bearermanagement/mpm/src/mpmserver.cpp --- a/bearermanagement/mpm/src/mpmserver.cpp Thu Sep 02 20:50:05 2010 +0300 +++ b/bearermanagement/mpm/src/mpmserver.cpp Fri Sep 17 08:32:43 2010 +0300 @@ -732,7 +732,9 @@ if ( iActiveBMConns[i].iConnInfo.iState == EStarting || iActiveBMConns[i].iConnInfo.iState == EStarted ) { - if ( aCdbAccess->CheckWlanL( iActiveBMConns[i].iConnInfo.iIapId ) != ENotWlanIap ) + TWlanIapType iapType( ENotWlanIap ); + TRAPD ( leave, iapType = aCdbAccess->CheckWlanL( iActiveBMConns[i].iConnInfo.iIapId ) ) + if ( ( leave == KErrNone ) && ( iapType != ENotWlanIap ) ) { stopLoop = ETrue; iapId = iActiveBMConns[i].iConnInfo.iIapId; @@ -1493,7 +1495,9 @@ for ( TUint index = 0; index < aIapInfo.iCount; index++ ) { - if ( CommsDatAccess()->CheckWlanL( aIapInfo.iIap[index].iIapId ) != ENotWlanIap ) + TWlanIapType iapType ( ENotWlanIap ); + TRAPD (leave, iapType = CommsDatAccess()->CheckWlanL( aIapInfo.iIap[index].iIapId ) ); + if ( ( iapType != ENotWlanIap ) && ( leave == KErrNone ) ) { // Accept only wlan iaps in internet snap if ( iCommsDatAccess->IsInternetSnapL( aIapInfo.iIap[index].iIapId, 0 ) ) @@ -1550,13 +1554,24 @@ TInt CMPMServer::StartForcedRoamingToConnectedWlanL( TAny* aUpdater ) { MPMLOGSTRING( "CMPMServer::StartForcedRoamingToConnectedWlanL" ); - static_cast( aUpdater )->StartForcedRoamingToWlanL( - static_cast( aUpdater )->iConnMonIapInfo ); + TRAPD( error, static_cast( aUpdater )->StartForcedRoamingToWlanL( + static_cast( aUpdater )->iConnMonIapInfo ) ) + if ( error ) + { + MPMLOGSTRING2("CMPMServer::StartForcedRoamingToConnectedWlan error1 = %d, ", error ) + return 0; + } + // Added also execution of policy based roaming logic because // connections that are in EStarting state, when WLAN signal // gets weak, would remain in WLAN as long as signal is weak. - static_cast( aUpdater )->StartForcedRoamingFromWlanL( - static_cast( aUpdater )->iConnMonIapInfo ); + TRAP( error, static_cast( aUpdater )->StartForcedRoamingFromWlanL( + static_cast( aUpdater )->iConnMonIapInfo ) ) + if ( error ) + { + MPMLOGSTRING2("CMPMServer::StartForcedRoamingToConnectedWlan error2 = %d, ", error ) + } + return 0; } @@ -1597,8 +1612,9 @@ // to a wlan not anymore listed in available iaps and not using mobility api for ( TInt index = 0; index < iActiveBMConns.Count(); index++ ) { - if ( iCommsDatAccess->CheckWlanL( iActiveBMConns[index].iConnInfo.iIapId ) - == EWlanIap ) + TWlanIapType iapType( ENotWlanIap ); + TRAPD( leave, iapType = iCommsDatAccess->CheckWlanL( iActiveBMConns[index].iConnInfo.iIapId ) ) + if ( ( leave == KErrNone ) && ( iapType == EWlanIap ) ) { // Check if used WLAN is still available TBool currentWlanIapAvailable = EFalse; diff -r a9c709db68db -r 84c6623982f6 cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp --- a/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp Thu Sep 02 20:50:05 2010 +0300 +++ b/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp Fri Sep 17 08:32:43 2010 +0300 @@ -187,10 +187,10 @@ if (mDestinationId != 0) { CmDestinationShim *destination = mCmm->destination(mDestinationId); CMManagerShim::CmmProtectionLevel level = destination->protectionLevel(); - if (level == CMManagerShim::ProtLevel3) { + if (level == CMManagerShim::ProtLevel1) { + apProtected = true; + } else { apProtected = apList[i]->getBoolAttribute(CMManagerShim::CmProtected); - } else if (level == CMManagerShim::ProtLevel1) { - apProtected = true; } delete destination; } diff -r a9c709db68db -r 84c6623982f6 package_definition.xml --- a/package_definition.xml Thu Sep 02 20:50:05 2010 +0300 +++ b/package_definition.xml Fri Sep 17 08:32:43 2010 +0300 @@ -138,9 +138,6 @@ - - -