bluetooth/btstack/linkmgr/physicallinks.cpp
branchRCL_3
changeset 12 9b6d3ca0c601
parent 11 20fda83a6398
child 14 f8503e232b0c
equal deleted inserted replaced
11:20fda83a6398 12:9b6d3ca0c601
   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