From d704861baac62d4a387731b7ea88bfad695b0a60 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 25 Jul 2017 22:42:42 -0700 Subject: binding: bluetooth: listen for rfkill bluetooth events On certain platforms like RPI3 and Porter there is a possible race condition to systemd-rfkill service if using a USB BT device, and this patchset listens for rfkill events, unblocks and brings up hci interface. Bug-AGL: SPEC-569 Change-Id: Id16f26953d17cbe2068807b538c52759016d3e50 Signed-off-by: Matt Ranostay --- binding-bluetooth/bluetooth-api.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'binding-bluetooth/bluetooth-api.c') diff --git a/binding-bluetooth/bluetooth-api.c b/binding-bluetooth/bluetooth-api.c index 39acb9a..16957ae 100644 --- a/binding-bluetooth/bluetooth-api.c +++ b/binding-bluetooth/bluetooth-api.c @@ -935,12 +935,6 @@ const struct afb_binding *afbBindingV1Register (const struct afb_binding_interfa { afbitf = itf; // records the interface for accessing afb-daemon -#if 1 -//temp solution to fix configure Bluetooth USB Dongle - system("rfkill unblock bluetooth"); - system("hciconfig hci0 up"); -#endif - Binding_RegisterCallback_t API_Callback; API_Callback.binding_device_added = bt_broadcast_device_added; API_Callback.binding_device_removed = bt_broadcast_device_removed; -- cgit 1.2.3-korg