CHROMIUM: Drop Bluetooth connection with weak encryption key

This aborts any connection with encryption key shorter than 7 octets.

BUG=chromium:929763
TEST=Tested with MIN_ENC_KEY_LEN=17 and check that every connection
should be immediately dropped. With MIN_ENC_KEY_LEN=16 check that
connection with devices that support 16 bytes (most devices) are not
dropped.

Change-Id: I0e6578132e116f010d7c703194c00878d29bda58
Signed-off-by: Sonny Sasaka <sonnysasaka@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1492007
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Xiaoyong Zhou <xzhou@chromium.org>
(cherry picked from commit f5e998d6d893a369a0c5f66a585d848c6f8fb1a8)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1515937
1 file changed