bluetooth/btstack/secman/secman.cpp
changeset 33 4e80e1b997a8
parent 17 907b2fb7aa8e
child 48 22de2e391156
--- a/bluetooth/btstack/secman/secman.cpp	Mon May 03 13:34:38 2010 +0300
+++ b/bluetooth/btstack/secman/secman.cpp	Mon Jul 12 07:03:47 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -585,7 +585,7 @@
 	else if (!link->IsPairingExpected()
 			|| ((link->AuthenticationRequirement() == EMitmNotReqDedicatedBonding 
 					|| link->AuthenticationRequirement() == EMitmReqDedicatedBonding)
-				&& !IsDedicatedBondingAttempted(aAddr)))
+				&& !link->IsAuthenticationRequestPending()))
 		{
 		TRAPD(err,link->NewUserConfirmerL(aAddr, *this, ETrue));
 		if(err)
@@ -610,7 +610,7 @@
 			TBTSecEventUserConfirmationComplete event(ETrue);
 			requester->SendEvent(event);
 			}
-
+		link->PinRequestSent();
 		// note: -- check errors here
 		TRAP_IGNORE(iCommandController->UserConfirmationRequestReplyL(aAddr));
 		}