From 217e90ec5c04442451ab8b6fb81b7cc48be7a737 Mon Sep 17 00:00:00 2001 From: xiewenxiang Date: Mon, 19 Oct 2020 08:20:48 +0800 Subject: [PATCH] component/bt: fix incorrect encryption flag setting --- components/bt/host/bluedroid/stack/btm/btm_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/stack/btm/btm_sec.c b/components/bt/host/bluedroid/stack/btm/btm_sec.c index 3108675a46..d7b86e5625 100644 --- a/components/bt/host/bluedroid/stack/btm/btm_sec.c +++ b/components/bt/host/bluedroid/stack/btm/btm_sec.c @@ -4079,7 +4079,7 @@ void btm_sec_encrypt_change (UINT16 handle, UINT8 status, UINT8 encr_enable) p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED; } } else { - p_dev_rec->sec_flags |= (BTM_SEC_LE_AUTHENTICATED | BTM_SEC_LE_ENCRYPTED); + p_dev_rec->sec_flags |= BTM_SEC_LE_ENCRYPTED; } }