mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/a2dp_can_not_connect_after_ble_connected_v4.1' into 'release/v4.1'
fixed the issue iOS devices cannot initiate connection (v4.1) See merge request espressif/esp-idf!20407
This commit is contained in:
commit
40cc53b0e0
@ -326,10 +326,6 @@ void btm_acl_created (BD_ADDR bda, DEV_CLASS dc, BD_NAME bdn,
|
||||
btm_establish_continue (p);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
/* If remote features indicated secure connection (SC) mode, check the remote feautres again*/
|
||||
/* this is to prevent from BIAS attack where attacker can downgrade SC mode*/
|
||||
btm_read_remote_features (p->hci_handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4014,7 +4014,9 @@ void btm_sec_auth_complete (UINT16 handle, UINT8 status)
|
||||
return;
|
||||
}
|
||||
|
||||
p_dev_rec->sec_flags |= BTM_SEC_AUTHENTICATED;
|
||||
if (!(p_dev_rec->sm4 & BTM_SM4_UPGRADE)) {
|
||||
p_dev_rec->sec_flags |= BTM_SEC_AUTHENTICATED;
|
||||
}
|
||||
|
||||
if (p_dev_rec->pin_code_length >= 16 ||
|
||||
p_dev_rec->link_key_type == BTM_LKEY_TYPE_AUTH_COMB ||
|
||||
|
@ -81,7 +81,8 @@ BOOLEAN l2c_link_hci_conn_req (BD_ADDR bd_addr)
|
||||
|
||||
if (p_lcb_cur->in_use) {
|
||||
no_links = FALSE;
|
||||
p_lcb->link_role = HCI_ROLE_MASTER;
|
||||
// p_lcb->link_role = HCI_ROLE_MASTER;
|
||||
p_lcb->link_role = HCI_ROLE_SLAVE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user