diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-04-23 18:53:27 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-04-24 10:32:47 +0200 |
commit | 1090705817b07722c56af4b2dd9d3f1022b5338a (patch) | |
tree | 15cf2836c0e6224e61f78c928f833df5f6a6b0b9 /android/main.c | |
parent | 8e363b81db4389dfce12aff75f4617e886a6b920 (diff) | |
download | bluez-1090705817b07722c56af4b2dd9d3f1022b5338a.tar.gz |
android/bluetooth: Make possible to start BlueZ in a single mode
This patch adds possibility to start BlueZ in LE or BR/EDR mode
when having dual mode chip below.
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/android/main.c b/android/main.c index 99ab376a0..a9565a65b 100644 --- a/android/main.c +++ b/android/main.c @@ -86,7 +86,10 @@ static void service_register(const void *buf, uint16_t len) switch (m->service_id) { case HAL_SERVICE_ID_BLUETOOTH: - bt_bluetooth_register(hal_ipc, m->mode); + if (!bt_bluetooth_register(hal_ipc, m->mode)) { + status = HAL_STATUS_FAILED; + goto failed; + } break; case HAL_SERVICE_ID_SOCKET: |