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 dcb823b..3f135be 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -2160,11 +2160,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 68f2046..99bd85f 100644 --- a/android/adapter.h +++ b/android/adapter.h @@ -31,8 +31,6 @@ 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.3 -- 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