Bluetooth: Remove not needed BT_KEYS_BR_LEGACY flag

We map legacy and SSP link keys to equivalent security levels so there
is no need for storing if key is legacy. This flag was never used
anyway.

Change-Id: I6867f43a1ed132f67a564de34436cf83b922a138
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-08-03 17:27:06 +02:00 committed by Inaky Perez-Gonzalez
commit 553a78b4f5
2 changed files with 0 additions and 2 deletions

View file

@ -1203,7 +1203,6 @@ static void link_key_notify(struct net_buf *buf)
switch (evt->key_type) {
case BT_LK_COMBINATION:
atomic_set_bit(conn->keys->flags, BT_KEYS_BR_LEGACY);
/*
* Setting Combination Link Key as AUTHENTICATED means it was
* successfully generated by 16 digits wide PIN code.

View file

@ -34,7 +34,6 @@ enum {
enum {
BT_KEYS_AUTHENTICATED,
BT_KEYS_BR_LEGACY,
BT_KEYS_DEBUG,
/* Total number of flags - must be at the end of the enum */