component/bt: fix incorrect encryption flag setting

This commit is contained in:
xiewenxiang
2020-12-03 20:07:05 +08:00
parent c33fc7821a
commit 1896249485

View File

@@ -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;
}
}