summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;