--- src/adapter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index ea2d2ad..5157b46 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2545,6 +2545,11 @@ static void convert_trusts_entry(GKeyFile *key_file, void *value) g_key_file_set_boolean(key_file, "General", "Trusted", TRUE); } +static void convert_classes_entry(GKeyFile *key_file, void *value) +{ + g_key_file_set_string(key_file, "General", "Class", value); +} + static void convert_entry(char *key, char *value, void *user_data) { struct device_converter *converter = user_data; @@ -2624,6 +2629,9 @@ static void convert_device_storage(struct btd_adapter *adapter) /* Convert trusts */ convert_file("trusts", address, convert_trusts_entry); + + /* Convert classes */ + convert_file("classes", address, convert_classes_entry); } static void convert_config(struct btd_adapter *adapter, const char *filename, -- 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