summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2015-03-04 14:47:00 -0800
committerAndre Eisenbach <eisenbach@google.com>2015-03-16 16:51:48 -0700
commitb55a8a62b23be97fcb3f2ba9f3c4cb03cfb59914 (patch)
treeb98c6a764929de273796b679d730f3065877dd8d /main
parent04bb236d873005ccb5950cb8e8f1f348499e032e (diff)
downloadandroid_system_bt-b55a8a62b23be97fcb3f2ba9f3c4cb03cfb59914.tar.gz
android_system_bt-b55a8a62b23be97fcb3f2ba9f3c4cb03cfb59914.tar.bz2
android_system_bt-b55a8a62b23be97fcb3f2ba9f3c4cb03cfb59914.zip
Rejig hci upwards dispatch
Split events and acl data in hci dispatch, and dispatch events by event code Future code will now be able to dynamically tie into hci events, instead of relying on a hard coded routing.
Diffstat (limited to 'main')
-rwxr-xr-xmain/bte_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/bte_main.c b/main/bte_main.c
index f6d1bdfd8..be8b2bfde 100755
--- a/main/bte_main.c
+++ b/main/bte_main.c
@@ -108,7 +108,8 @@ void bte_main_boot_entry(void)
return;
}
- data_dispatcher_register_default(hci->upward_dispatcher, btu_hci_msg_queue);
+ data_dispatcher_register_default(hci->event_dispatcher, btu_hci_msg_queue);
+ hci->set_data_queue(btu_hci_msg_queue);
#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
bte_load_ble_conf(BTE_BLE_STACK_CONF_FILE);
@@ -127,7 +128,8 @@ void bte_main_boot_entry(void)
******************************************************************************/
void bte_main_shutdown()
{
- data_dispatcher_register_default(hci_layer_get_interface()->upward_dispatcher, NULL);
+ data_dispatcher_register_default(hci_layer_get_interface()->event_dispatcher, NULL);
+ hci->set_data_queue(NULL);
fixed_queue_free(btu_hci_msg_queue, NULL);
btu_hci_msg_queue = NULL;