Created
December 6, 2016 19:22
-
-
Save invisiblek/e552573f9f55702ccc669a74cb687fce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/stack/l2cap/l2c_ble.c b/stack/l2cap/l2c_ble.c | |
index 0682db0..c36452d 100644 | |
--- a/stack/l2cap/l2c_ble.c | |
+++ b/stack/l2cap/l2c_ble.c | |
@@ -298,13 +298,13 @@ void l2cble_notify_le_connection (BD_ADDR bda) | |
if (p_lcb == NULL) { | |
L2CAP_TRACE_ERROR("%s, link control block is null", __func__); | |
return; | |
- } | |
- | |
- /* For all channels, send the event through their FSMs */ | |
- for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) | |
- { | |
- if (p_ccb->chnl_state == CST_CLOSED) | |
- l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); | |
+ } else { | |
+ /* For all channels, send the event through their FSMs */ | |
+ for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) | |
+ { | |
+ if (p_ccb->chnl_state == CST_CLOSED) | |
+ l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); | |
+ } | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment