From e82b9e488f5f5643c55502ffb5e728010135b79f Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 13 Oct 2015 09:25:21 +0200 Subject: [PATCH] Bluetooth: Fix not reporting security level change If security level changed due to key refresh application was not notified about it. Change-Id: I550095608da6d9bfb885ff2fbf62d9edc0429d06 Signed-off-by: Szymon Janc --- net/bluetooth/hci_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 7dcc6187ac8..e865e447757 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -774,7 +774,9 @@ static void hci_encrypt_key_refresh_complete(struct bt_buf *buf) return; } + update_sec_level(conn); bt_l2cap_encrypt_change(conn); + bt_conn_security_changed(conn); bt_conn_put(conn); }