From 6e0cfbe2643324f6fa3f225eb6014661578a1ad1 Mon Sep 17 00:00:00 2001 From: Henrique Dante de Almeida Date: Thu, 16 Aug 2012 15:15:26 -0300 Subject: [PATCH] adapter: fix call to get_key_info This complements commit 85128d40f4788acb0115f09c07b716e741444406 that changed the "linkkeys" file format. The call to get_key_info must include only the address string, instead of the new combined address#type text. --- src/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index e6b555969..b642e37bb 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -1808,7 +1808,7 @@ static void create_stored_device_from_linkkeys(char *key, char *value, if (sscanf(key, "%17s#%hhu", address, &bdaddr_type) < 2) bdaddr_type = BDADDR_BREDR; - info = get_key_info(key, value); + info = get_key_info(address, value); if (info) keys->keys = g_slist_append(keys->keys, info); -- 2.47.3