• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revision3409ce9280b88d387684bfd923fcece4e7b578ef (tree)
Time2019-08-22 12:44:19
Authorweichinweng <weichinweng@goog...>
Commiterweichinweng

Log Message

Remove direct connection after notifying the connection up

After notifying the connection up, remove direct connection related with
this device to make sure no client is directly connecting the device in
connection_manager.

Bug: 138819537
Test: 1. Repair BLE device 2. Reconnect BLE deivce
3. reboot DUT, make sure Hearing Aid can be connected.

Change-Id: I30ff7c47445ec2a3dbd9702ca79873063210e6df
Merged-In: I30ff7c47445ec2a3dbd9702ca79873063210e6df

Change Summary

Incremental Difference

--- a/stack/gatt/gatt_main.cc
+++ b/stack/gatt/gatt_main.cc
@@ -823,6 +823,9 @@ static void gatt_send_conn_cback(tGATT_TCB* p_tcb) {
823823 }
824824 }
825825
826+ /* Remove the direct connection */
827+ connection_manager::on_connection_complete(p_tcb->peer_bda);
828+
826829 if (!p_tcb->app_hold_link.empty() && p_tcb->att_lcid == L2CAP_ATT_CID) {
827830 /* disable idle timeout if one or more clients are holding the link disable
828831 * the idle timer */