Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop cc574dd19 -> c5c9b6e2e


MYNEWT-638: Bug when resetting controller while creating connection

This fix should address the issue where the controller was reset
while attempting to create a connection. It should now be possible
to create a connection after the reset. The bug was that a
global variable was not getting cleared which prevented
acceptance of the conn create command.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/c5c9b6e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c5c9b6e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c5c9b6e2

Branch: refs/heads/develop
Commit: c5c9b6e2e3f8aea74efd5ff99f7ed4334166e1c7
Parents: cc574dd
Author: William San Filippo <[email protected]>
Authored: Fri Feb 24 19:54:22 2017 -0800
Committer: William San Filippo <[email protected]>
Committed: Fri Feb 24 19:56:26 2017 -0800

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_conn.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c5c9b6e2/net/nimble/controller/src/ble_ll_conn.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_conn.c 
b/net/nimble/controller/src/ble_ll_conn.c
index 4a96467..d8d3f8f 100644
--- a/net/nimble/controller/src/ble_ll_conn.c
+++ b/net/nimble/controller/src/ble_ll_conn.c
@@ -3176,6 +3176,9 @@ ble_ll_conn_module_reset(void)
         g_ble_ll_conn_comp_ev = NULL;
     }
 
+    /* Reset connection we are attempting to create */
+    g_ble_ll_conn_create_sm = NULL;
+
     /* Now go through and end all the connections */
     while (1) {
         connsm = SLIST_FIRST(&g_ble_ll_conn_active_list);

Reply via email to