diff -r a1b8f5cc021e -r 0bcc0c74cec9 bluetooth/btstack/linkmgr/physicallinksmanager.cpp --- a/bluetooth/btstack/linkmgr/physicallinksmanager.cpp Fri Sep 17 08:36:02 2010 +0300 +++ b/bluetooth/btstack/linkmgr/physicallinksmanager.cpp Mon Oct 04 02:11:29 2010 +0300 @@ -23,7 +23,7 @@ #include "ProxySAP.h" #include -#include "PhysicalLinkHelper.h" +#include "roleswitchhelper.h" #include "hostresolver.h" #include @@ -583,6 +583,13 @@ found->MaxSlotsChange(aConnH, aSlots); } +void CPhysicalLinksManager::EncryptionKeyRefreshComplete(THCIErrorCode aErr, THCIConnHandle aConnH) + { + CPhysicalLink* found = FindPhysicalLink(aConnH); + RETURN_IF_NULL_CONNECTION(found); + found->EncryptionKeyRefreshComplete(aErr, aConnH); + } + void CPhysicalLinksManager::ModeChange(THCIErrorCode aErr, THCIConnHandle aConnH, TBTLinkMode aMode, TBasebandTime aInterval) { CPhysicalLink* found = FindPhysicalLink(aConnH); @@ -996,7 +1003,7 @@ // this the only role request, it's safe to kick off the state machine // first suspend host resolver LinkManagerProtocol().InquiryMgr().Suspend(); - aRoleSwitcher.Start(); + aRoleSwitcher.StartHelper(); } } @@ -1016,7 +1023,7 @@ if (startNextRoleSwitcher && !iRoleSwitchersQ.IsEmpty()) { - iRoleSwitchersQ.First()->Start(); + iRoleSwitchersQ.First()->StartHelper(); } else {