mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
Merge branch 'fix/incorrect_setting_of_sco_packet_type_mask_v5.5' into 'release/v5.5'
fix(bt): fixed incorrect mask was used to exclude sco packets (backport v5.5) See merge request espressif/esp-idf!39499
This commit is contained in:
@ -612,12 +612,12 @@ static tBTM_STATUS btm_send_connect_request(UINT16 acl_handle,
|
||||
** If so, we cannot use SCO-only packet types (HFP 1.7)
|
||||
*/
|
||||
if (BTM_BothEndsSupportSecureConnections(p_acl->remote_addr)) {
|
||||
temp_pkt_types &= ~(BTM_SCO_PKT_TYPE_MASK);
|
||||
temp_pkt_types &= ~(BTM_SCO_LINK_ONLY_MASK);
|
||||
BTM_TRACE_DEBUG("%s: SCO Conn: pkt_types after removing SCO (0x%04x)", __FUNCTION__,
|
||||
temp_pkt_types);
|
||||
|
||||
/* Return error if no packet types left */
|
||||
if (temp_pkt_types == 0) {
|
||||
if (temp_pkt_types == BTM_SCO_EXCEPTION_PKTS_MASK) {
|
||||
BTM_TRACE_ERROR("%s: SCO Conn (BR/EDR SC): No packet types available",__FUNCTION__);
|
||||
return (BTM_WRONG_MODE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user