OSDN Git Service

android: Fix use of invalid service ID in response
authorSzymon Janc <szymon.janc@tieto.com>
Wed, 23 Oct 2013 13:46:26 +0000 (15:46 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 23 Oct 2013 16:33:22 +0000 (19:33 +0300)
Adapter should use HAL_SERVICE_ID_BLUETOOTH service ID.

android/adapter.c

index 7a219df..6b0fab2 100644 (file)
@@ -347,7 +347,8 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
                }
 
                if (set_mode(MGMT_OP_SET_POWERED, 0x01)) {
-                       ipc_send(io, HAL_SERVICE_ID_CORE, opcode, 0, NULL, -1);
+                       ipc_send(io, HAL_SERVICE_ID_BLUETOOTH, opcode, 0, NULL,
+                                                                       -1);
                        return;
                }
                break;
@@ -358,7 +359,8 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
                }
 
                if (set_mode(MGMT_OP_SET_POWERED, 0x00)) {
-                       ipc_send(io, HAL_SERVICE_ID_CORE, opcode, 0, NULL, -1);
+                       ipc_send(io, HAL_SERVICE_ID_BLUETOOTH, opcode, 0, NULL,
+                                                                       -1);
                        return;
                }
                break;