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

Commit e6a32ae2 authored by Josh Wu's avatar Josh Wu
Browse files

HFPC: Avoid sending ok callback of BIEV to app layer

When sending ok callback to app layer, it pops out an action ququed
there, but BIEV commands are not queued so it may confuse the order of
queue. Since we don't want to do anything to BIEV commands, we can just
ignore them in the stack.

Tag: #stability
Bug: 223915098
Test: atest BluetoothInstrumentationTests
Change-Id: Ic3b3b59019e3c170492bf9badc1fb3830936e7b1
parent be1abc55
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -252,6 +252,7 @@ static void bta_hf_client_handle_ok(tBTA_HF_CLIENT_CB* client_cb) {
  switch (client_cb->at_cb.current_cmd) {
    case BTA_HF_CLIENT_AT_BIA:
    case BTA_HF_CLIENT_AT_BCC:
    case BTA_HF_CLIENT_AT_BIEV:
      break;
    case BTA_HF_CLIENT_AT_BCS:
      bta_hf_client_start_at_hold_timer(client_cb);