Revision: 201035
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:32:43 +0300
changeset 64 84c6623982f6
parent 60 a9c709db68db
child 66 ed07dcc72692
Revision: 201035 Kit: 201037
bearermanagement/mpm/src/mpmserver.cpp
cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp
package_definition.xml
--- 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<CMPMServer*>( aUpdater )->StartForcedRoamingToWlanL( 
-            static_cast<CMPMServer*>( aUpdater )->iConnMonIapInfo );
+    TRAPD( error, static_cast<CMPMServer*>( aUpdater )->StartForcedRoamingToWlanL( 
+           static_cast<CMPMServer*>( 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<CMPMServer*>( aUpdater )->StartForcedRoamingFromWlanL(
-            static_cast<CMPMServer*>( aUpdater )->iConnMonIapInfo );
+    TRAP( error, static_cast<CMPMServer*>( aUpdater )->StartForcedRoamingFromWlanL(
+          static_cast<CMPMServer*>( 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;
--- 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;
         }
--- 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 @@
    </component>
   </collection>
   <collection id="connectionmonitoring" name="Connection Monitoring" level="server">
-   <component id="connectionmonitorui" filter="s60" name="Connection Monitor UI">
-    <unit bldFile="connectionmonitoring/connectionmonitorui/group"/>
-   </component>
    <component id="connmon" filter="s60" name="Connection Monitor">
     <!-- either split into two components, or #include from a common bld.inf -->
     <unit bldFile="connectionmonitoring/connmon/connectionmonitor/group"/>