From 75d58b6577ff2b2c44baccc03ae72e043b6d8b4f Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Thu, 2 Jan 2014 21:42:21 +0000 Subject: [PATCH] use address type and address from HCI --- example/libusb/ble_server.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/example/libusb/ble_server.c b/example/libusb/ble_server.c index 65c797bdf..c70995a27 100644 --- a/example/libusb/ble_server.c +++ b/example/libusb/ble_server.c @@ -1539,9 +1539,7 @@ static void packet_handler (void * connection, uint8_t packet_type, uint16_t cha // reset connection MTU att_connection.mtu = 23; - // TODO support private addresses - sm_s_addr_type = 0; - BD_ADDR_COPY(sm_s_address, hci_local_bd_addr()); + hci_le_advertisement_address(&sm_s_addr_type, &sm_s_address); printf("Incoming connection, own address "); print_bd_addr(sm_s_address);