From ae84f859b95b5b32524529e2e0a0f8c93a5ad3e0 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. Change-Id: I336e496b589a23767003e186473c4aed49471fba Bug-AGL: SPEC-569 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