Diff between 906879b78850a04bc08ddcdcc53217706b2625d8 and e37b81fa945fcc41ddaee2a338a666c5736724a7
Changed Files
| File | Additions | Deletions | Status |
| plugins/hciops.c | +1 | -1 | modified |
Full Patch
diff --git a/plugins/hciops.c b/plugins/hciops.c
index 2c49e35..fdbf523 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -962,7 +962,7 @@ static void link_key_notify(int index, void *ptr)
/* Some buggy controller combinations generate a changed
* combination key for legacy pairing even when there's no
* previous key */
- if ((!conn || conn->rem_auth == 0xff) && old_key_type == 0xff)
+ if (conn->rem_auth == 0xff && old_key_type == 0xff)
key_type = 0x00;
else if (old_key_type != 0xff)
key_type = old_key_type;