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