OSDN Git Service

l2cap: Fix missing connection indication
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Wed, 7 Oct 2020 14:55:02 +0000 (14:55 +0000)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 8 Oct 2020 09:28:33 +0000 (09:28 +0000)
Sponsor: jpawlowski
Test: compilation
Change-Id: I42c6dd273527c4420f3466cfd11f8e6c2572e527

stack/l2cap/l2c_csm.cc

index 1882b3b..92ccfaa 100644 (file)
@@ -452,12 +452,14 @@ static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, uint16_t event,
         /* Don't need to get info from peer or already retrieved so continue */
         alarm_set_on_mloop(p_ccb->l2c_ccb_timer, L2CAP_CHNL_CONNECT_TIMEOUT_MS,
                            l2c_ccb_timer_timeout, p_ccb);
-        L2CAP_TRACE_API("L2CAP - Calling Connect_Ind_Cb(), CID: 0x%04x",
-                        p_ccb->local_cid);
 
         if (p_ccb->p_lcb->transport != BT_TRANSPORT_LE) {
           l2c_csm_send_connect_rsp(p_ccb);
           l2c_csm_send_config_req(p_ccb);
+        } else {
+          L2CAP_TRACE_API("L2CAP - Calling Connect_Ind_Cb(), CID: 0x%04x",
+                        p_ccb->local_cid);
+          l2c_csm_indicate_connection_open(p_ccb);
         }
       } else {
         /*