bearermanagement/S60MCPR/src/s60mcpr.cpp
branchRCL_3
changeset 62 bb1f80fb7db2
parent 13 68f0c7cd80ec
child 69 cf1b3ddbe9a1
--- a/bearermanagement/S60MCPR/src/s60mcpr.cpp	Wed Sep 01 12:23:51 2010 +0100
+++ b/bearermanagement/S60MCPR/src/s60mcpr.cpp	Tue Sep 14 22:06:05 2010 +0300
@@ -381,23 +381,14 @@
             TMpmNotificationStopIAP& notification = 
                 static_cast<TMpmNotificationStopIAP&>( const_cast<TMpmNotification&>( aNotification ) );
 
-            // Allow TStop message only when ServiceProvider exists and the IAP matches or is unspecified. 
-            // 
-            if ( ServiceProvider() && 
-                    (((RMetaServiceProviderInterface*)ServiceProvider())->ProviderInfo().APId() == notification.iInfo.iIap ||
-                    notification.iInfo.iIap == 0 )) 
-                {
-                S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification IAP %d",(TInt*)this,notification.iInfo.iIap);
-                PostToClients<TDefaultClientMatchPolicy>( TNodeCtxId( 0, Id() ),
-                                                          TCFServiceProvider::TStop( KErrDisconnected ).CRef(),
-                                                          TClientType( TCFClientType::EServProvider) );
-                }
-#ifdef _DEBUG
-            else
-                {
-                S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification NO MATCH! IAP %d",(TInt*)this,notification.iInfo.iIap);
-                }
-#endif
+            S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification IAP %d",(TInt*)this, notification.iInfo.iIap);
+           
+            // Send stop notification into meshmachine.
+            //
+            RNodeInterface ni;
+            ni.OpenPostMessageClose( NodeId(), 
+                                     NodeId(), 
+                                     TCFS60MCPRMessage::TMPMStopIAPNotificationMsg( notification.iInfo.iIap ).CRef() );
             break;
             }
         default: