mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(bt/bluedroid): fixed wrong link key flag cleared on legacy BR/EDR authentication failure
Stale bond trust state cound remain after authenticaion failure, causing incorrect bond status and link key auto-reply behavior. Closes SEC-1153
This commit is contained in:
@@ -4490,7 +4490,7 @@ void btm_sec_connected (UINT8 *bda, UINT16 handle, UINT8 status, UINT8 enc_mode)
|
|||||||
(status == HCI_ERR_ENCRY_MODE_NOT_ACCEPTABLE) ||
|
(status == HCI_ERR_ENCRY_MODE_NOT_ACCEPTABLE) ||
|
||||||
(status == HCI_ERR_REPEATED_ATTEMPTS)))) {
|
(status == HCI_ERR_REPEATED_ATTEMPTS)))) {
|
||||||
p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
|
p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
|
||||||
p_dev_rec->sec_flags &= ~ (BTM_SEC_LE_LINK_KEY_KNOWN << bit_shift);
|
p_dev_rec->sec_flags &= ~((BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_LINK_KEY_AUTHED) << bit_shift);
|
||||||
|
|
||||||
|
|
||||||
#ifdef BRCM_NOT_4_BTE
|
#ifdef BRCM_NOT_4_BTE
|
||||||
|
|||||||
Reference in New Issue
Block a user