diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-07-25 22:42:42 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-08-04 15:30:52 -0700 |
commit | ae84f859b95b5b32524529e2e0a0f8c93a5ad3e0 (patch) | |
tree | 10248bced5dd399dee7c3519600ddbcad5200e6c /binding-bluetooth/bluetooth-api.c | |
parent | 3587e397424285df38d28b1572ce9118724d5122 (diff) |
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding-bluetooth/bluetooth-api.c')
-rw-r--r-- | binding-bluetooth/bluetooth-api.c | 6 |
1 files changed, 0 insertions, 6 deletions
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; |