From fe74c46d1101188703d5353f60902e478f0b520d Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 28 Oct 2013 14:45:14 +0100 Subject: [PATCH] android: Use helper function to convert bdaddr to android format This will make easier to understand why swap is needed. --- android/adapter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/adapter.c b/android/adapter.c index f393c49ba..15b65e5bc 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -31,6 +31,7 @@ #include "log.h" #include "hal-msg.h" #include "ipc.h" +#include "utils.h" #include "adapter.h" static GIOChannel *notification_io = NULL; @@ -384,7 +385,7 @@ static void send_adapter_address(void) ev->props[0].type = HAL_PROP_ADAPTER_ADDR; ev->props[0].len = sizeof(bdaddr_t); - baswap((bdaddr_t *) ev->props[0].val, &adapter->bdaddr); + bdaddr2android(&adapter->bdaddr, ev->props[0].val); ipc_send(notification_io, HAL_SERVICE_ID_BLUETOOTH, HAL_EV_ADAPTER_PROPS_CHANGED, len, ev, -1); -- 2.47.3