Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31557c8e authored by Jeremy Wu's avatar Jeremy Wu
Browse files

floss: check if BCC is allowed to open SCO

In HFPv1.9, 4.11.2, Audio Connection Setup by HF:

> When the HF triggers the establishment of the Codec Connection
it shall send the AT command AT+BCC to the AG. The AG shall respond
with OK if it will start the Codec Connection procedure, and with ERROR
if it cannot start the Codec Connection procedure.

In CrOS, SCO initiated from the peer is not a supported use case. In
this CL we introduce a check to reject the BCC open request.

Bug: 353234804
Flag: EXEMPT floss-only
Test: m Bluetooth
Change-Id: I339c68c537d842fcc6b71ce17e7a35389abbc043
parent dbc3d1d6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1904,6 +1904,12 @@ bool bta_ag_is_sco_open_allowed(tBTA_AG_SCB* p_scb, const std::string event) {
    }
  }
#endif
#ifdef TARGET_FLOSS
  if (event == "BTA_AG_LOCAL_EVT_BCC") {
    return false;
  }
#endif

  return true;
}