bearermanagement/S60MCPR/src/s60mcpr.cpp
changeset 66 ed07dcc72692
parent 18 fcbbe021d614
child 71 9f263f780e41
--- a/bearermanagement/S60MCPR/src/s60mcpr.cpp	Fri Sep 17 08:32:43 2010 +0300
+++ b/bearermanagement/S60MCPR/src/s60mcpr.cpp	Mon Oct 04 00:43:42 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: