Repository: incubator-mynewt-core Updated Branches: refs/heads/develop 07746cc05 -> fdc3d2b3e
BLE Host - Remove duplicate conn check. 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/fdc3d2b3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/fdc3d2b3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/fdc3d2b3 Branch: refs/heads/develop Commit: fdc3d2b3ef64e95401fb2431adf2072b551d4c1e Parents: 07746cc Author: Christopher Collins <[email protected]> Authored: Tue Mar 28 18:11:06 2017 -0700 Committer: Christopher Collins <[email protected]> Committed: Tue Mar 28 18:11:35 2017 -0700 ---------------------------------------------------------------------- net/nimble/host/src/ble_gap.c | 6 ------ 1 file changed, 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fdc3d2b3/net/nimble/host/src/ble_gap.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_gap.c b/net/nimble/host/src/ble_gap.c index 9d7d0f0..ed71374 100644 --- a/net/nimble/host/src/ble_gap.c +++ b/net/nimble/host/src/ble_gap.c @@ -2384,12 +2384,6 @@ ble_gap_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr, goto done; } - /* Verify peer not already connected. */ - if (ble_hs_conn_find_by_addr(peer_addr) != NULL) { - rc = BLE_HS_EDONE; - goto done; - } - if (!ble_hs_conn_can_alloc()) { rc = BLE_HS_ENOMEM; goto done;
