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);