fix(bt/bluedroid): fixed incorrect eSCO packet type validation under secure connection mode in BlueDroid

This commit is contained in:
Jin Cheng
2026-07-29 17:30:25 +08:00
committed by hejiaxin
parent 60289a9c60
commit 6e4bd4152d
@@ -655,7 +655,7 @@ static tBTM_STATUS btm_send_connect_request(UINT16 acl_handle,
temp_pkt_types);
/* Return error if no packet types left */
if ((temp_pkt_types & BTM_SCO_SUPPORTED_PKTS_MASK) == 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);
}