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/1492008
Reviewed-by: Xiaoyong Zhou <xzhou@chromium.org>
(cherry picked from commit c5dd2f01a545e70b51b33e86628af347ec690c0c)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1515961
1 file changed