bluetooth/btstack/linkmgr/physicallinks.cpp
branchRCL_3
changeset 16 9f17f914e828
parent 14 f8503e232b0c
child 17 32ba20339036
equal deleted inserted replaced
14:f8503e232b0c 16:9f17f914e828
   554 		}
   554 		}
   555 	if(juice->IsClockOffsetFromHCI())
   555 	if(juice->IsClockOffsetFromHCI())
   556 		{
   556 		{
   557 		iDevice.SetClockOffset(jle.iClockOffset);
   557 		iDevice.SetClockOffset(jle.iClockOffset);
   558 		}
   558 		}
       
   559 	if(juice->IsCoDFromHCI())
       
   560 		{
       
   561 		iDevice.SetDeviceClass(jle.iCoD);
       
   562 		}
   559 	}
   563 	}
   560 
   564 
   561 void CPhysicalLink::StoreDeviceL( TBool aPreventDeviceAddition )
   565 void CPhysicalLink::StoreDeviceL( TBool aPreventDeviceAddition )
   562 	{
   566 	{
   563 	LOG_FUNC
   567 	LOG_FUNC
  2300 TInt CPhysicalLink::Terminate(THCIErrorCode aReason)
  2304 TInt CPhysicalLink::Terminate(THCIErrorCode aReason)
  2301 	{
  2305 	{
  2302 	LOG_FUNC
  2306 	LOG_FUNC
  2303 	TInt err = KErrNone;
  2307 	TInt err = KErrNone;
  2304 
  2308 
       
  2309 	__ASSERT_DEBUG(aReason == EAuthenticationFailure
       
  2310 				|| aReason == ERemoteUserEndedConnection
       
  2311 				|| aReason == ERemoteLowResources
       
  2312 				|| aReason == ERemoteAboutToPowerOff
       
  2313 				|| aReason == EUnsupportedRemoteLMPFeature
       
  2314 				|| aReason == EPairingWithUnitKeyNotSupported,
       
  2315 				Panic (EInvalidDisconnectReason)); // Check the error code is valid with the spec
       
  2316 	
  2305 	if (iLinkState.LinkState() == TBTBasebandLinkState::ELinkPending)
  2317 	if (iLinkState.LinkState() == TBTBasebandLinkState::ELinkPending)
  2306 		{
  2318 		{
  2307 		// If the Link is not yet up then we cannot know the correct connection handle
  2319 		// If the Link is not yet up then we cannot know the correct connection handle
  2308 		// to disconnect so remember the request so we disconnect the link straight away
  2320 		// to disconnect so remember the request so we disconnect the link straight away
  2309 		// after it does come up.
  2321 		// after it does come up.
  2895 TBool CPhysicalLink::LinkKeyRequestPending()
  2907 TBool CPhysicalLink::LinkKeyRequestPending()
  2896 	{
  2908 	{
  2897 	LOG_FUNC
  2909 	LOG_FUNC
  2898 	return iAuthStateMask & ELinkKeyRequestPending;
  2910 	return iAuthStateMask & ELinkKeyRequestPending;
  2899 	}
  2911 	}
       
  2912 
       
  2913 TBool CPhysicalLink::IsAuthenticationRequestPending() const
       
  2914 	{
       
  2915 	LOG_FUNC
       
  2916 	return iAuthStateMask & EAuthenticationRequestPending;
       
  2917 	}
       
  2918 
  2900 
  2919 
  2901 void CPhysicalLink::SetAuthenticationPending(TUint8 aState)
  2920 void CPhysicalLink::SetAuthenticationPending(TUint8 aState)
  2902 	{
  2921 	{
  2903 	LOG_FUNC
  2922 	LOG_FUNC
  2904 	iAuthStateMask |= aState;
  2923 	iAuthStateMask |= aState;