Diff between b80af95fb15785f93eafa0c1ae1248344f9f8c1d and bbcd887764ff284049944b483fad8e5dbc94d02a

Changed Files

File Additions Deletions Status
emulator/bthost.c +3 -0 modified

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index 439691b..a15aab0 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -975,6 +975,9 @@ static void evt_encrypt_change(struct bthost *bthost, const void *data,
 	if (!conn)
 		return;
 
+	if (ev->status)
+		return;
+
 	conn->encr_mode = ev->encr_mode;
 }