All services receive adapter address on init so there is no need for this function. Removing it will also help keeping services not depend on adapter service. --- android/adapter.c | 5 ----- android/adapter.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/android/adapter.c b/android/adapter.c index f337b5e..e083131 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -1968,11 +1968,6 @@ error: ipc_send_rsp(sk, HAL_SERVICE_ID_BLUETOOTH, status); } -const bdaddr_t *bt_adapter_get_address(void) -{ - return &adapter_bdaddr; -} - bool bt_adapter_register(int sk) { DBG(""); diff --git a/android/adapter.h b/android/adapter.h index 96136bb..94c97ac 100644 --- a/android/adapter.h +++ b/android/adapter.h @@ -31,7 +31,5 @@ void bt_adapter_cleanup(void); void bt_adapter_handle_cmd(int sk, uint8_t opcode, void *buf, uint16_t len); -const bdaddr_t *bt_adapter_get_address(void); - bool bt_adapter_register(int sk); void bt_adapter_unregister(void); -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html