bluetooth/btstack/linkmgr/physicallinks.cpp
changeset 19 4b81101308c6
parent 17 907b2fb7aa8e
child 21 5e5528a288fe
child 33 4e80e1b997a8
--- a/bluetooth/btstack/linkmgr/physicallinks.cpp	Fri Apr 16 16:09:25 2010 +0300
+++ b/bluetooth/btstack/linkmgr/physicallinks.cpp	Mon May 03 13:34:38 2010 +0300
@@ -818,7 +818,7 @@
 		if (!aEncrypted)
 			{
 			iLinksMan.LinkManagerProtocol().ACLController().SetParked(iHandle, ETrue);
-			iEncryptionEnforcer->EncryptionDisabled(SimplePairingMode()== EPhySimplePairingEnabled);
+			iEncryptionEnforcer->EncryptionDisabled(IsEncryptionPauseResumeSupported());
 			}
 		else
 			{
@@ -4162,12 +4162,12 @@
 		}
 	}
 
-void CEncryptionEnforcer::EncryptionDisabled(TBool aSecurityModeFour)
+void CEncryptionEnforcer::EncryptionDisabled(TBool aEncryptionPauseResumeSupported)
 	{
 	LOG_FUNC
 	LOG1(_L("CEncryptionEnforcer::EncryptionDisabled() : current status = %d"), iState);
 
-	if(aSecurityModeFour)
+	if(aEncryptionPauseResumeSupported)
 		{
 		Stop();
 		ChangeState(EForcingInProgress);