@@ -480,6 +480,8 @@ BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason)
480480 if (l2cu_create_conn (p_lcb , BT_TRANSPORT_LE )) {
481481 btm_acl_removed (p_lcb -> remote_bd_addr , BT_TRANSPORT_LE );
482482 lcb_is_free = FALSE; /* still using this lcb */
483+ } else {
484+ L2CAP_TRACE_ERROR ("master retry connect failed" );
483485 }
484486 }
485487 #endif // (GATTC_CONNECT_RETRY_EN == TRUE)
@@ -489,7 +491,10 @@ BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason)
489491 if (btm_ble_inter_get () && p_lcb -> link_role == HCI_ROLE_SLAVE ) {
490492 p_lcb -> retry_create_con ++ ;
491493 L2CAP_TRACE_DEBUG ("slave restart extend adv, retry count %d reason 0x%x\n" , p_lcb -> retry_create_con , reason );
492- BTM_BleStartExtAdvRestart (handle );
494+ tBTM_STATUS start_adv_status = BTM_BleStartExtAdvRestart (handle );
495+ if (start_adv_status != BTM_SUCCESS ) {
496+ L2CAP_TRACE_ERROR ("slave restart extend adv failed (err 0x%x)" , start_adv_status );
497+ }
493498 }
494499 #endif // #if (BLE_50_EXTEND_ADV_EN == TRUE)
495500 #endif // #if (BLE_50_FEATURE_SUPPORT == TRUE)
@@ -499,7 +504,10 @@ BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason)
499504 if (!btm_ble_inter_get () && p_lcb -> link_role == HCI_ROLE_SLAVE ) {
500505 p_lcb -> retry_create_con ++ ;
501506 L2CAP_TRACE_DEBUG ("slave resatrt adv, retry count %d reason 0x%x\n" , p_lcb -> retry_create_con , reason );
502- btm_ble_start_adv ();
507+ tBTM_STATUS start_adv_status = btm_ble_start_adv ();
508+ if (start_adv_status != BTM_SUCCESS ) {
509+ L2CAP_TRACE_ERROR ("slave resatrt adv failed (err 0x%x)" , start_adv_status );
510+ }
503511 }
504512 #endif // #if (BLE_42_ADV_EN == TRUE)
505513 #endif // #if (BLE_42_FEATURE_SUPPORT == TRUE)
0 commit comments