From: Marcel Holtmann Date: Sat, 1 Feb 2014 02:42:16 +0000 (-0800) Subject: Bluetooth: Remove check for valid LTK authenticated parameter X-Git-Tag: v5.15~17544^2~11^2~7^2~45^2~245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8159247755e77d8264ccce84054ff893275115e;p=platform%2Fkernel%2Flinux-starfive.git 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: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 70a3a7e..8030eeb 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -4146,8 +4146,6 @@ unlock: 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) return false; if (!bdaddr_type_is_le(key->addr.type))