bluetooth/btstack/linkmgr/physicallinks.cpp
changeset 19 4b81101308c6
parent 17 907b2fb7aa8e
child 21 5e5528a288fe
child 33 4e80e1b997a8
equal deleted inserted replaced
17:907b2fb7aa8e 19:4b81101308c6
   816 		// the ACL controller. That means that the request is submitted twice.
   816 		// the ACL controller. That means that the request is submitted twice.
   817 		// This is not supposed to be a problem, but we need to be aware of it.
   817 		// This is not supposed to be a problem, but we need to be aware of it.
   818 		if (!aEncrypted)
   818 		if (!aEncrypted)
   819 			{
   819 			{
   820 			iLinksMan.LinkManagerProtocol().ACLController().SetParked(iHandle, ETrue);
   820 			iLinksMan.LinkManagerProtocol().ACLController().SetParked(iHandle, ETrue);
   821 			iEncryptionEnforcer->EncryptionDisabled(SimplePairingMode()== EPhySimplePairingEnabled);
   821 			iEncryptionEnforcer->EncryptionDisabled(IsEncryptionPauseResumeSupported());
   822 			}
   822 			}
   823 		else
   823 		else
   824 			{
   824 			{
   825 			iLinksMan.LinkManagerProtocol().ACLController().SetParked(iHandle, EFalse);
   825 			iLinksMan.LinkManagerProtocol().ACLController().SetParked(iHandle, EFalse);
   826 			iEncryptionEnforcer->EncryptionEnabled();
   826 			iEncryptionEnforcer->EncryptionEnabled();
  4160 			Stop();
  4160 			Stop();
  4161 			break;
  4161 			break;
  4162 		}
  4162 		}
  4163 	}
  4163 	}
  4164 
  4164 
  4165 void CEncryptionEnforcer::EncryptionDisabled(TBool aSecurityModeFour)
  4165 void CEncryptionEnforcer::EncryptionDisabled(TBool aEncryptionPauseResumeSupported)
  4166 	{
  4166 	{
  4167 	LOG_FUNC
  4167 	LOG_FUNC
  4168 	LOG1(_L("CEncryptionEnforcer::EncryptionDisabled() : current status = %d"), iState);
  4168 	LOG1(_L("CEncryptionEnforcer::EncryptionDisabled() : current status = %d"), iState);
  4169 
  4169 
  4170 	if(aSecurityModeFour)
  4170 	if(aEncryptionPauseResumeSupported)
  4171 		{
  4171 		{
  4172 		Stop();
  4172 		Stop();
  4173 		ChangeState(EForcingInProgress);
  4173 		ChangeState(EForcingInProgress);
  4174 		}
  4174 		}
  4175 
  4175