equal
deleted
inserted
replaced
78 #include <bluetooth/hci/synchronousconnectioncompleteevent.h> |
78 #include <bluetooth/hci/synchronousconnectioncompleteevent.h> |
79 #include <bluetooth/hci/vendordebugevent.h> |
79 #include <bluetooth/hci/vendordebugevent.h> |
80 #include <bluetooth/hci/vendordebugcompleteevent.h> |
80 #include <bluetooth/hci/vendordebugcompleteevent.h> |
81 #include <bluetooth/hci/writesimplepairingmodecommand.h> |
81 #include <bluetooth/hci/writesimplepairingmodecommand.h> |
82 #include <bluetooth/hci/readlocalsupportedcommandscommand.h> |
82 #include <bluetooth/hci/readlocalsupportedcommandscommand.h> |
|
83 #include <bluetooth/hci/encryptionkeyrefreshcompleteevent.h> |
83 |
84 |
84 |
85 |
85 // Command Complete Events |
86 // Command Complete Events |
86 #include <bluetooth/hci/writelinkpolicysettingscompleteevent.h> |
87 #include <bluetooth/hci/writelinkpolicysettingscompleteevent.h> |
87 #include <bluetooth/hci/readbdaddrcompleteevent.h> |
88 #include <bluetooth/hci/readbdaddrcompleteevent.h> |
1218 |
1219 |
1219 LOG(_L("Link [HCIFacade_Events.cpp]: MaxSlotsChangeEvent")); |
1220 LOG(_L("Link [HCIFacade_Events.cpp]: MaxSlotsChangeEvent")); |
1220 iLinksMgr->MaxSlotsChange(maxSlotsChangeEvent.ConnectionHandle(), maxSlotsChangeEvent.LMPMaxSlots()); |
1221 iLinksMgr->MaxSlotsChange(maxSlotsChangeEvent.ConnectionHandle(), maxSlotsChangeEvent.LMPMaxSlots()); |
1221 } |
1222 } |
1222 |
1223 |
|
1224 void CHCIFacade::EncryptionKeyRefreshCompleteEvent(const THCIEventBase& aEvent, const CHCICommandBase* /*aRelatedCommand*/) |
|
1225 { |
|
1226 LOG_FUNC |
|
1227 const TEncryptionKeyRefreshCompleteEvent& refreshCompleteEvent = TEncryptionKeyRefreshCompleteEvent::Cast(aEvent); |
|
1228 |
|
1229 iLinksMgr->EncryptionKeyRefreshComplete(aEvent.ErrorCode(), refreshCompleteEvent.ConnectionHandle()); |
|
1230 } |
|
1231 |
1223 // ---------------------------------------------------------------------------- |
1232 // ---------------------------------------------------------------------------- |
1224 // Data event processing functions |
1233 // Data event processing functions |
1225 // ---------------------------------------------------------------------------- |
1234 // ---------------------------------------------------------------------------- |
1226 |
1235 |
1227 void CHCIFacade::NumberOfCompletedPacketsEvent(THCIEventBase& aEvent) |
1236 void CHCIFacade::NumberOfCompletedPacketsEvent(THCIEventBase& aEvent) |
1344 MaxSlotsChangeEvent(aEvent, aRelatedCommand); |
1353 MaxSlotsChangeEvent(aEvent, aRelatedCommand); |
1345 break; |
1354 break; |
1346 |
1355 |
1347 case EVendorDebugEvent: |
1356 case EVendorDebugEvent: |
1348 VendorDebugEvent(aEvent, aRelatedCommand); |
1357 VendorDebugEvent(aEvent, aRelatedCommand); |
|
1358 break; |
|
1359 |
|
1360 case EEncryptionKeyRefreshCompleteEvent: |
|
1361 EncryptionKeyRefreshCompleteEvent(aEvent, aRelatedCommand); |
1349 break; |
1362 break; |
1350 |
1363 |
1351 // Inquiry based events. |
1364 // Inquiry based events. |
1352 // By default these should be caused by the inquiry manager and so be returned to it. |
1365 // By default these should be caused by the inquiry manager and so be returned to it. |
1353 case EInquiryCompleteEvent: |
1366 case EInquiryCompleteEvent: |
1380 case ESynchronousConnectionChangedEvent: |
1393 case ESynchronousConnectionChangedEvent: |
1381 case ELoopbackCommandEvent: |
1394 case ELoopbackCommandEvent: |
1382 case EPageScanModeChangeEvent: |
1395 case EPageScanModeChangeEvent: |
1383 case EPageScanRepetitionModeChangeEvent: |
1396 case EPageScanRepetitionModeChangeEvent: |
1384 case EUserPasskeyRequestEvent: |
1397 case EUserPasskeyRequestEvent: |
1385 case EEncryptionKeyRefreshCompleteEvent: |
|
1386 LOG1(_L("Warning!! Unhandled Command Event (event code:%d)"), aEvent.EventCode()); |
1398 LOG1(_L("Warning!! Unhandled Command Event (event code:%d)"), aEvent.EventCode()); |
1387 break; |
1399 break; |
1388 |
1400 |
1389 default: |
1401 default: |
1390 LOG1(_L("Warning!! Unknown Command Event Received (event code:%d)"), aEvent.EventCode()); |
1402 LOG1(_L("Warning!! Unknown Command Event Received (event code:%d)"), aEvent.EventCode()); |