summaryrefslogtreecommitdiff
path: root/android/hal-bluetooth.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-01-17 16:30:42 +0100
committerSzymon Janc <szymon.janc@gmail.com>2014-01-17 20:41:45 +0100
commit89008b789f27659a7035fc50e57d952b1cba43cb (patch)
treeed1f03074d51324b3b11712f4533719fa8ad6f19 /android/hal-bluetooth.c
parent72c77073a44a2452e130fc2ca9f15dcd2256c656 (diff)
downloadbluez-89008b789f27659a7035fc50e57d952b1cba43cb.tar.gz
android/hal: Update property used for start/stop services
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r--android/hal-bluetooth.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index be45836cd..4f0e7b765 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -28,8 +28,6 @@
#include "hal-ipc.h"
#include "hal-utils.h"
-#define SNOOP_SERVICE_NAME "bluetoothd-snoop"
-
static const bt_callbacks_t *bt_hal_cbacks = NULL;
#define enum_prop_to_hal(prop, hal_prop, type) do { \
@@ -820,15 +818,14 @@ static int le_test_mode(uint16_t opcode, uint8_t *buf, uint8_t len)
static int config_hci_snoop_log(uint8_t enable)
{
+ const char *property;
+
DBG("enable %u", enable);
- if (enable && property_set("ctl.start", SNOOP_SERVICE_NAME) < 0) {
- error("Failed to start service %s", SNOOP_SERVICE_NAME);
- return BT_STATUS_FAIL;
- }
+ property = enable ? "bluetooth.start" : "bluetooth.stop";
- if (!enable && property_set("ctl.stop", SNOOP_SERVICE_NAME) < 0) {
- error("Failed to stop service %s", SNOOP_SERVICE_NAME);
+ if (property_set(property, "snoop") < 0) {
+ error("Failed to set %s=snoop", property);
return BT_STATUS_FAIL;
}