From 4051b7ff79268bded080ef18ec5a3faa71a4b3a9 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald <matthias@ringwald.ch> Date: Mon, 19 Aug 2019 14:10:14 +0200 Subject: [PATCH] hci: fix compile --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 68ae17000..68e005e51 100644 --- a/src/hci.c +++ b/src/hci.c @@ -4291,7 +4291,7 @@ static gap_security_level_t gap_security_level_for_connection(hci_connection_t * if (!connection) return LEVEL_0; if ((connection->authentication_flags & CONNECTION_ENCRYPTED) == 0) return LEVEL_0; if (connection->encryption_key_size < hci_stack->gap_required_encyrption_key_size) return LEVEL_0; - gap_security_level_t level_for_key_type = gap_security_level_for_link_key_type(connection->link_key_type); + gap_security_level_t security_level = gap_security_level_for_link_key_type(connection->link_key_type); // LEVEL 4 always requires 128 bit encrytion key size if (security_level == LEVEL_4 && connection->encryption_key_size < 16){ security_level = LEVEL_3;