From 2f89d309d853a98107fc1cd9d86c824425e3ce90 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Tue, 14 Sep 2010 20:12:22 +0000 Subject: [PATCH] send bd addr in correct endianess - thanks to francis for spotting this goof --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index cc5b5f54a..18e56bbad 100644 --- a/src/hci.c +++ b/src/hci.c @@ -810,7 +810,7 @@ void hci_emit_remote_name_cached(bd_addr_t *addr, device_name_t *name){ event[0] = BTSTACK_EVENT_REMOTE_NAME_CACHED; event[1] = len - 2; event[2] = 0; // just to be compatible with HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE - BD_ADDR_COPY(&event[3], addr); + bt_flip_addr(&event[3], *addr); memcpy(&event[9], name, 248); hci_dump_packet(HCI_EVENT_PACKET, 0, event, len); hci_stack.packet_handler(HCI_EVENT_PACKET, event, len);