Matias Karhumaa
05206de4e9
Bluetooth: Fix faulty expression for minimum encryption key size check
...
commit eca94432934fe5f141d084f2e36ee2c0e614cc04 upstream.
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: 693cd8ce3f88 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-10 09:54:31 +02:00
..
2018-10-03 17:00:47 -07:00
2019-07-03 13:15:59 +02:00
2017-11-02 11:10:55 +01:00
2019-05-16 19:42:34 +02:00
2019-04-20 09:15:07 +02:00
2019-04-27 09:35:33 +02:00
2019-06-22 08:16:14 +02:00
2019-05-31 06:47:33 -07:00
2019-07-10 09:54:31 +02:00
2019-05-16 19:42:33 +02:00
2019-05-08 07:20:45 +02:00
2019-06-25 11:36:54 +08:00
2019-03-27 14:13:51 +09:00
2019-07-03 13:16:01 +02:00
2018-09-19 22:43:43 +02:00
2019-04-03 06:25:08 +02:00
2018-02-25 11:07:52 +01:00
2018-07-22 14:28:49 +02:00
2019-05-16 19:42:34 +02:00
2019-03-19 13:13:22 +01:00
2019-04-27 09:35:40 +02:00
2018-04-29 11:33:13 +02:00
2019-07-03 13:16:02 +02:00
2019-07-03 13:16:03 +02:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2019-04-17 08:37:45 +02:00
2019-03-23 14:35:14 +01:00
2019-03-19 13:13:22 +01:00
2019-06-22 08:16:14 +02:00
2019-06-09 09:18:10 +02:00
2019-06-25 11:36:55 +08:00
2018-09-09 19:55:52 +02:00
2019-03-13 14:03:09 -07:00
2017-10-21 01:56:38 +01:00
2019-06-22 08:16:15 +02:00
2019-03-13 14:03:08 -07:00
2019-04-03 06:25:08 +02:00
2019-02-06 17:31:32 +01:00
2019-05-16 19:42:32 +02:00
2018-07-22 14:28:49 +02:00
2019-06-22 08:16:15 +02:00
2019-07-03 13:16:01 +02:00
2019-03-23 14:35:16 +01:00
2017-11-01 12:19:03 +09:00
2018-08-24 13:09:13 +02:00
2019-06-11 12:21:45 +02:00
2018-05-16 10:10:26 +02:00
2019-05-02 09:40:34 +02:00
2019-05-08 07:20:44 +02:00
2019-05-16 19:42:30 +02:00
2019-07-03 13:16:02 +02:00
2019-01-09 17:14:46 +01:00
2018-07-22 14:28:47 +02:00
2019-05-02 09:40:29 +02:00
2017-08-07 14:48:48 -07:00
2019-07-03 13:16:03 +02:00
2018-12-05 19:41:11 +01:00
2019-03-19 13:13:24 +01:00
2019-05-25 18:25:17 +02:00
2017-11-02 11:10:55 +01:00
2019-06-25 11:36:54 +08:00
2019-03-19 13:13:23 +01:00
2019-05-25 18:25:33 +02:00
2019-01-09 17:14:46 +01:00
2017-09-04 13:25:20 +02:00
2017-11-02 11:10:55 +01:00
2019-03-13 14:03:09 -07:00