Loading system/gd/hci/hci_layer.cc +11 −0 Original line number Diff line number Diff line Loading @@ -104,10 +104,21 @@ struct HciLayer::impl : public hal::HciHalCallbacks { handler); RegisterEventHandler(EventCode::COMMAND_STATUS, Bind(&impl::command_status_callback, common::Unretained(this)), handler); // TODO find the right place RegisterEventHandler(EventCode::CONNECTION_PACKET_TYPE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::ROLE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::MAX_SLOTS_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::VENDOR_SPECIFIC, Bind(&impl::drop, common::Unretained(this)), handler); EnqueueCommand(ResetBuilder::Create(), BindOnce(&fail_if_reset_complete_not_success), handler); hal_->registerIncomingPacketCallback(this); } void drop(EventPacketView) {} void dequeue_and_send_acl() { auto packet = acl_queue_.GetDownEnd()->TryDequeue(); send_acl(std::move(packet)); Loading system/gd/hci/hci_packets.pdl +1 −0 Original line number Diff line number Diff line Loading @@ -382,6 +382,7 @@ enum EventCode : 8 { REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION = 0x3D, LE_META_EVENT = 0x3e, NUMBER_OF_COMPLETED_DATA_BLOCKS = 0x48, VENDOR_SPECIFIC = 0xFF, } packet EventPacket { Loading Loading
system/gd/hci/hci_layer.cc +11 −0 Original line number Diff line number Diff line Loading @@ -104,10 +104,21 @@ struct HciLayer::impl : public hal::HciHalCallbacks { handler); RegisterEventHandler(EventCode::COMMAND_STATUS, Bind(&impl::command_status_callback, common::Unretained(this)), handler); // TODO find the right place RegisterEventHandler(EventCode::CONNECTION_PACKET_TYPE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::ROLE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::MAX_SLOTS_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler); RegisterEventHandler(EventCode::VENDOR_SPECIFIC, Bind(&impl::drop, common::Unretained(this)), handler); EnqueueCommand(ResetBuilder::Create(), BindOnce(&fail_if_reset_complete_not_success), handler); hal_->registerIncomingPacketCallback(this); } void drop(EventPacketView) {} void dequeue_and_send_acl() { auto packet = acl_queue_.GetDownEnd()->TryDequeue(); send_acl(std::move(packet)); Loading
system/gd/hci/hci_packets.pdl +1 −0 Original line number Diff line number Diff line Loading @@ -382,6 +382,7 @@ enum EventCode : 8 { REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION = 0x3D, LE_META_EVENT = 0x3e, NUMBER_OF_COMPLETED_DATA_BLOCKS = 0x48, VENDOR_SPECIFIC = 0xFF, } packet EventPacket { Loading