diff -r 04408506c6e0 -r 4c83dcfb6f1a bearermanagement/mpm/src/mpmiapselection.cpp --- a/bearermanagement/mpm/src/mpmiapselection.cpp Wed Jun 09 10:07:12 2010 +0300 +++ b/bearermanagement/mpm/src/mpmiapselection.cpp Mon Jun 21 16:06:29 2010 +0300 @@ -493,17 +493,7 @@ // Check if any suitable IAP's were found, if not then complete selection with error code if ( validateIapId == 0 ) { - if ( !( iChooseIapPref.NoteBehaviour() & TExtendedConnPref::ENoteBehaviourConnDisableQueries ) && - ( iChooseIapPref.ConnType() == TMpmConnPref::EConnTypeDefault || - ( iChooseIapPref.ConnType() == TMpmConnPref::EConnTypeExplicit && - iCommsDatAccess->IsInternetSnapL( 0, snap ) ) ) ) - { - ImplicitConnectionL(); - } - else - { - ChooseIapComplete( KErrNotFound, NULL ); - } + ChooseIapComplete( KErrNotFound, NULL ); CleanupStack::PopAndDestroy( &availableIAPList ); return; } @@ -737,9 +727,10 @@ !( iChooseIapPref.NoteBehaviour() & TExtendedConnPref::ENoteBehaviourConnDisableNotes ) ) { - TBool connectionAlreadyActive = - iSession->MyServer().CheckIfStarted( aPolicyPref->IapId(), - iSession->ConnectionId() ); + TConnectionState state = + iSession->MyServer().CheckUsageOfIap( aPolicyPref->IapId(), + iSession->ConnectionId() ); + TBool connectionAlreadyActive = (state == EStarted || state == EStarting || state == ERoaming); if ( !connectionAlreadyActive && ( iSession->IsMMSIap( aPolicyPref->IapId() ) == EFalse ) ) {