From 1654768556ca1a8429dc83b6acd8702514fd4370 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 9 Feb 2009 14:55:10 +0200 Subject: Always store pre-2.1 link key types --- src/dbus-hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index be90a0d0..d8b8bbe1 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -919,7 +919,7 @@ int hcid_dbus_link_key_notify(bdaddr_t *local, bdaddr_t *peer, /* Only store the link key if neither side had "no bonding" as a * requirement */ - if ((key_type == 0x06 && old_key_type != 0xff) || + if (key_type < 0x03 || (key_type == 0x06 && old_key_type != 0xff) || (local_auth > 0x01 && remote_auth > 0x01)) { int err; -- cgit