]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix faulty expression for minimum encryption key size check
authorMatias Karhumaa <matias.karhumaa@gmail.com>
Tue, 2 Jul 2019 14:35:09 +0000 (16:35 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2019 08:09:09 +0000 (16:09 +0800)
commitecd949aae3a172f75754422e81edabb2efd077bd
treea5e58b32d0607aca43923149f3aa97db03be7434
parent30d20f45260f96aa4eca6c56f81d505e1d28f76a
Bluetooth: Fix faulty expression for minimum encryption key size check

Fix minimum encryption key size check so that HCI_MIN_ENC_KEY_SIZE is
also allowed as stated in the comment.

This bug caused connection problems with devices having maximum
encryption key size of 7 octets (56-bit).

Fixes: 28f2b826843f ("Bluetooth: Fix regression with minimum encryption key size alignment")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203997
Signed-off-by: Matias Karhumaa <matias.karhumaa@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/bluetooth/l2cap_core.c