From: Marcin Kraglak <marcin.kraglak@xxxxxxxxx> Clear adapter uuids during init. We have to do it before other profiles will be able to register sdp records and add their uuids. --- android/adapter.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/android/adapter.c b/android/adapter.c index 60b2635..8ea104b 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -1197,6 +1197,17 @@ static uint8_t set_discoverable_timeout(uint8_t *timeout) return HAL_STATUS_SUCCESS; } + +static void clear_uuids(void) +{ + struct mgmt_cp_remove_uuid cp; + + memset(&cp, 0, sizeof(cp)); + + mgmt_send(adapter->mgmt, MGMT_OP_REMOVE_UUID, adapter->index, + sizeof(cp), &cp, NULL, NULL, NULL); +} + static void read_info_complete(uint8_t status, uint16_t length, const void *param, void *user_data) { @@ -1237,6 +1248,8 @@ static void read_info_complete(uint8_t status, uint16_t length, const void *para /* TODO: Register all event notification handlers */ register_mgmt_handlers(); + clear_uuids(); + load_link_keys(NULL); set_io_capability(); -- 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