OSDN Git Service

android/hal: Use correct service id for adapter commands
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 22 Oct 2013 16:47:54 +0000 (18:47 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 22 Oct 2013 20:17:46 +0000 (23:17 +0300)
This fix enabling and disabling adapter commands.

android/hal-bluetooth.c

index 852dc85..d988778 100644 (file)
@@ -104,8 +104,8 @@ static int enable(void)
        if (!interface_ready())
                return BT_STATUS_NOT_READY;
 
-       return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_ENABLE, 0, NULL,
-                                                               0, NULL, NULL);
+       return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_MSG_OP_BT_ENABLE, 0,
+                                                       NULL, 0, NULL, NULL);
 }
 
 static int disable(void)
@@ -115,8 +115,8 @@ static int disable(void)
        if (!interface_ready())
                return BT_STATUS_NOT_READY;
 
-       return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_DISABLE, 0, NULL,
-                                                               0, NULL, NULL);
+       return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_MSG_OP_BT_DISABLE, 0,
+                                                       NULL, 0, NULL, NULL);
 }
 
 static void cleanup(void)