All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] adapter: fix call to get_key_info
@ 2012-08-16 18:15 Henrique Dante de Almeida
  2012-08-16 19:00 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Henrique Dante de Almeida @ 2012-08-16 18:15 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Henrique Dante de Almeida

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 e6b5559..b642e37 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);
 
-- 
1.7.12.rc2.16.g034161a


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] adapter: fix call to get_key_info
  2012-08-16 18:15 [PATCH] adapter: fix call to get_key_info Henrique Dante de Almeida
@ 2012-08-16 19:00 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-08-16 19:00 UTC (permalink / raw)
  To: Henrique Dante de Almeida; +Cc: linux-bluetooth

Hi Henrique,

On Thu, Aug 16, 2012, Henrique Dante de Almeida wrote:
> 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(-)

Applied. Thanks.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-16 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 18:15 [PATCH] adapter: fix call to get_key_info Henrique Dante de Almeida
2012-08-16 19:00 ` Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.