From 1896249485c89e13ca388082318147e002165849 Mon Sep 17 00:00:00 2001 From: xiewenxiang Date: Thu, 3 Dec 2020 20:07:05 +0800 Subject: [PATCH] component/bt: fix incorrect encryption flag setting --- components/bt/bluedroid/stack/btm/btm_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bluedroid/stack/btm/btm_sec.c b/components/bt/bluedroid/stack/btm/btm_sec.c index a6fc873344..173156a61a 100644 --- a/components/bt/bluedroid/stack/btm/btm_sec.c +++ b/components/bt/bluedroid/stack/btm/btm_sec.c @@ -4065,7 +4065,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; } }