diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index cd758994b02f45eca34417ed8c6cbcdd54c1ec76..bc04c444c98efaa3aebbe48aca21c15953b116b4 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -2703,6 +2703,8 @@ static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev, static bool ltk_is_valid(struct mgmt_ltk_info *key) { + if (key->authenticated != 0x00 && key->authenticated != 0x01) + return false; if (key->master != 0x00 && key->master != 0x01) return false; return true;