diff -r 14e279d2bbb7 -r 22de2e391156 bluetooth/btstack/linkmgr/hcifacade_events.cpp --- a/bluetooth/btstack/linkmgr/hcifacade_events.cpp Wed Jul 21 15:42:05 2010 +0300 +++ b/bluetooth/btstack/linkmgr/hcifacade_events.cpp Thu Sep 23 17:06:47 2010 +0300 @@ -80,6 +80,7 @@ #include #include #include +#include // Command Complete Events @@ -1220,6 +1221,14 @@ iLinksMgr->MaxSlotsChange(maxSlotsChangeEvent.ConnectionHandle(), maxSlotsChangeEvent.LMPMaxSlots()); } +void CHCIFacade::EncryptionKeyRefreshCompleteEvent(const THCIEventBase& aEvent, const CHCICommandBase* /*aRelatedCommand*/) + { + LOG_FUNC + const TEncryptionKeyRefreshCompleteEvent& refreshCompleteEvent = TEncryptionKeyRefreshCompleteEvent::Cast(aEvent); + + iLinksMgr->EncryptionKeyRefreshComplete(aEvent.ErrorCode(), refreshCompleteEvent.ConnectionHandle()); + } + // ---------------------------------------------------------------------------- // Data event processing functions // ---------------------------------------------------------------------------- @@ -1347,6 +1356,10 @@ case EVendorDebugEvent: VendorDebugEvent(aEvent, aRelatedCommand); break; + + case EEncryptionKeyRefreshCompleteEvent: + EncryptionKeyRefreshCompleteEvent(aEvent, aRelatedCommand); + break; // Inquiry based events. // By default these should be caused by the inquiry manager and so be returned to it. @@ -1382,7 +1395,6 @@ case EPageScanModeChangeEvent: case EPageScanRepetitionModeChangeEvent: case EUserPasskeyRequestEvent: - case EEncryptionKeyRefreshCompleteEvent: LOG1(_L("Warning!! Unhandled Command Event (event code:%d)"), aEvent.EventCode()); break;