To update a data set previously, it is need to use same identifier Service UUID or Company Identifier Code in SetServiceData() and SetManufacturerData(), respectively. --- src/adapter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index bbf6b06..84535cd 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2009,6 +2009,10 @@ static void bcast_session_exit(DBusConnection *conn, void *user_data) static void update_adv_data(struct btd_adapter *adapter, struct bcast_session *session, uint8_t *data, int size) { + session->data_len = size; + memcpy(session->data, data, size); + + restore_bcast_type(adapter, session->data_type); } static DBusMessage *set_service_data(DBusConnection *conn, -- 1.7.9.5 -- 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