summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-09 14:55:10 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-09 14:55:10 +0200
commit1654768556ca1a8429dc83b6acd8702514fd4370 (patch)
tree4b0bc2d28bb5db5cbf1d584a3f414e4d899c84f8
parent1919d78e210dfe655dd33d9f8923a9c89fc43458 (diff)
Always store pre-2.1 link key types
-rw-r--r--src/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
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;