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

Commit b4b8a622 authored by Weifan's avatar Weifan Committed by silver.chen
Browse files

[BT] Fix Remote reconnection fail issue

[Description]
Remote reconnection failed when TV power off-on,
and only BT off-on to recover

[Root Cause]
TV enter power off when Remote doing reconnecting, this will have
a disconnection event for power off, when Power on again,
bta_hh_security_cmpl will failed because of wrong state(disconnection)
stack will remove this device from white list,
so only recover via bt off-on

[Solution]
not remove device from white list when securiy wrong state failed

Bug: 284420916
Test: N/A
Change-Id: I22bb1bc811f677728bd03d861ccc03c96e2caa01
parent 9f582edf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1014,7 +1014,8 @@ void bta_hh_security_cmpl(tBTA_HH_DEV_CB* p_cb,
              btm_status_text(p_cb->btm_status).c_str());
    if (!(p_cb->status == BTA_HH_ERR_SEC &&
          (p_cb->btm_status == BTM_ERR_PROCESSING ||
          p_cb->btm_status == BTM_FAILED_ON_SECURITY)))
          p_cb->btm_status == BTM_FAILED_ON_SECURITY ||
          p_cb->btm_status == BTM_WRONG_MODE)))
      bta_hh_le_api_disc_act(p_cb);
    }
}