bluetooth/btstack/linkmgr/physicallinks.cpp
branchRCL_3
changeset 14 f8503e232b0c
parent 12 9b6d3ca0c601
child 16 9f17f914e828
equal deleted inserted replaced
13:16aa830c86c8 14:f8503e232b0c
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  2819 		aRequester.PINCodeRequestNegativeReply(aAddr);
  2819 		aRequester.PINCodeRequestNegativeReply(aAddr);
  2820 		return;
  2820 		return;
  2821 		}
  2821 		}
  2822 
  2822 
  2823 	TBTPinCode pinCode;
  2823 	TBTPinCode pinCode;
  2824 	if(iLinksMan.PrefetchMan().IsPrefetchAvailable(aAddr, pinCode))
  2824 	if(iLinksMan.PrefetchMan().GetPrefetch(aAddr, pinCode))
  2825 		{
  2825 	    {
  2826 		aRequester.PINCodeRequestReply(aAddr, pinCode);
  2826         iLinksMan.PrefetchMan().RemovePrefetch(aAddr);
  2827 		return;
  2827         aRequester.PINCodeRequestReply(aAddr, pinCode);
  2828 		}
  2828         return;
       
  2829 	    }
  2829 
  2830 
  2830 	iPinHandler = &aRequester;
  2831 	iPinHandler = &aRequester;
  2831 
  2832 
  2832 	TRAPD(err, DoPinRequestL(aAddr, *this)); // physical links will proxy a request.
  2833 	TRAPD(err, DoPinRequestL(aAddr, *this)); // physical links will proxy a request.
  2833 
  2834