Skip to content
Snippets Groups Projects
Commit d44e618e authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Call btm_ble_set_conn_st before on_connection_complete am: 7fd3b7f3 am: f56c5214

am: 33774dda

Change-Id: I7cdf9fa0b435c35f74f3fbadde1bbd0b814d145b
parents b1ccf0d8 33774dda
No related branches found
No related tags found
No related merge requests found
......@@ -1958,6 +1958,10 @@ void btm_ble_conn_complete(uint8_t* p, UNUSED_ATTR uint16_t evt_len,
}
#endif
if (role == HCI_ROLE_MASTER) {
btm_ble_set_conn_st(BLE_CONN_IDLE);
}
gatt::connection_manager::on_connection_complete(bda);
btm_ble_connected(bda, handle, HCI_ENCRYPT_MODE_DISABLED, role, bda_type,
match);
......
......@@ -285,7 +285,6 @@ void l2cble_conn_comp(uint16_t handle, uint8_t role, const RawAddress& bda,
__func__, handle, type, conn_interval, conn_latency, conn_timeout);
if (role == HCI_ROLE_MASTER) {
btm_ble_set_conn_st(BLE_CONN_IDLE);
l2cb.is_ble_connecting = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment