Commit f8159247 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Johan Hedberg

Bluetooth: Remove check for valid LTK authenticated parameter

The LTK authenticated parameter is the key type of the LTK and similar
to link keys there is no need to check the currently supported values.

For possible future improvements, the kernel will only use key types
it knows about and just ignore all the other ones.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent abf76bad
...@@ -4146,8 +4146,6 @@ static int set_debug_keys(struct sock *sk, struct hci_dev *hdev, ...@@ -4146,8 +4146,6 @@ static int set_debug_keys(struct sock *sk, struct hci_dev *hdev,
static bool ltk_is_valid(struct mgmt_ltk_info *key) static bool ltk_is_valid(struct mgmt_ltk_info *key)
{ {
if (key->authenticated != 0x00 && key->authenticated != 0x01)
return false;
if (key->master != 0x00 && key->master != 0x01) if (key->master != 0x00 && key->master != 0x01)
return false; return false;
if (!bdaddr_type_is_le(key->addr.type)) if (!bdaddr_type_is_le(key->addr.type))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment