From b585eccf36d2660eef0adb3816452db9a593122c 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 0f2a30fd6a..8b69737cf7 100644 --- a/components/bt/host/bluedroid/stack/btm/btm_sec.c +++ b/components/bt/host/bluedroid/stack/btm/btm_sec.c @@ -4080,7 +4080,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; } }