diff -r 086aae6fc07e -r f7816ffc66ed bearermanagement/mpm/src/mpmserver.cpp --- a/bearermanagement/mpm/src/mpmserver.cpp Mon Jan 18 20:33:49 2010 +0200 +++ b/bearermanagement/mpm/src/mpmserver.cpp Tue Jan 26 12:12:48 2010 +0200 @@ -1616,8 +1616,12 @@ // Use priority order vpn, wlan and packet for ( TInt index = 0; index < iActiveBMConns.Count(); index++ ) { + CMPMServerSession* serverSession = GetServerSession( + iActiveBMConns[index].iConnInfo.iConnId ); + // Do check only for active connections - if ( iActiveBMConns[index].iConnInfo.iState == EStarted ) + if ( iActiveBMConns[index].iConnInfo.iState == EStarted && + serverSession->ChooseBestIapCalled() ) { TMPMBearerType bearerType = EMPMBearerTypeOther; @@ -1726,7 +1730,11 @@ for ( TInt index = 0; index < iActiveBMConns.Count(); index++ ) { - if ( iActiveBMConns[index].iConnInfo.iState == EStarted ) + CMPMServerSession* serverSession = GetServerSession( + iActiveBMConns[index].iConnInfo.iConnId ); + + if ( iActiveBMConns[index].iConnInfo.iState == EStarted && + serverSession->ChooseBestIapCalled() ) { count++; }