OSDN Git Service

HCI Layer: Register CommandComplete and CommandStatus on Start()
authorHansong Zhang <hsz@google.com>
Thu, 30 May 2019 00:52:24 +0000 (17:52 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 30 May 2019 20:25:20 +0000 (13:25 -0700)
commit712e9e2f7972c6708335511e9ef1b35a40611250
tree50f74310d2252162581e7c20cb1fdbd766b9177e
parent7d7dd39e909e615a732403700f9757081e28ea44
HCI Layer: Register CommandComplete and CommandStatus on Start()

Module.GetHandler() works only after a Module is started. Move
RegisterEventHandler() for CommandComplete and CommandStatus to Start().

Test: atest bluetooth_test_gd --host
Change-Id: I7331c8ddb8d61d697aa4480e7c591c3817d21afa
gd/hci/hci_layer.cc
gd/hci/hci_layer_test.cc
gd/module.cc
gd/module.h