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 <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2015-10-13 09:25:21 +02:00 committed by Anas Nashif
commit e82b9e488f

View file

@ -774,7 +774,9 @@ static void hci_encrypt_key_refresh_complete(struct bt_buf *buf)
return; return;
} }
update_sec_level(conn);
bt_l2cap_encrypt_change(conn); bt_l2cap_encrypt_change(conn);
bt_conn_security_changed(conn);
bt_conn_put(conn); bt_conn_put(conn);
} }