Skip to content

Commit fb6693c

Browse files
committed
Merge branch 'fix/incorrect_setting_of_sco_packet_type_mask' into 'master'
fix(bt): fixed incorrect mask was used to exclude sco packets Closes CBI-1403 See merge request espressif/esp-idf!39396
2 parents 79d69bc + f7fedf3 commit fb6693c

File tree

1 file changed

+2
-2
lines changed
  • components/bt/host/bluedroid/stack/btm

1 file changed

+2
-2
lines changed

components/bt/host/bluedroid/stack/btm/btm_sco.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,12 +612,12 @@ static tBTM_STATUS btm_send_connect_request(UINT16 acl_handle,
612612
** If so, we cannot use SCO-only packet types (HFP 1.7)
613613
*/
614614
if (BTM_BothEndsSupportSecureConnections(p_acl->remote_addr)) {
615-
temp_pkt_types &= ~(BTM_SCO_PKT_TYPE_MASK);
615+
temp_pkt_types &= ~(BTM_SCO_LINK_ONLY_MASK);
616616
BTM_TRACE_DEBUG("%s: SCO Conn: pkt_types after removing SCO (0x%04x)", __FUNCTION__,
617617
temp_pkt_types);
618618

619619
/* Return error if no packet types left */
620-
if (temp_pkt_types == 0) {
620+
if (temp_pkt_types == BTM_SCO_EXCEPTION_PKTS_MASK) {
621621
BTM_TRACE_ERROR("%s: SCO Conn (BR/EDR SC): No packet types available",__FUNCTION__);
622622
return (BTM_WRONG_MODE);
623623
}

0 commit comments

Comments
 (0)