You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/05/17 20:30:07 UTC
[1/3] incubator-mynewt-core git commit: BLE Host - disconn: delete
conn before app cb.
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop afc0a74bc -> 79f32b111
BLE Host - disconn: delete conn before app cb.
If the app wants to create a new connection as a result of the existing
connection being destroyed, we need to free the memory first.
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/79f32b11
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/79f32b11
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/79f32b11
Branch: refs/heads/develop
Commit: 79f32b111901e9f83a0a6b6da05d1cff50deebbf
Parents: 65b4cc3
Author: Christopher Collins <cc...@apache.org>
Authored: Tue May 17 13:28:59 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue May 17 13:30:03 2016 -0700
----------------------------------------------------------------------
net/nimble/host/src/ble_gap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/79f32b11/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 5dc3078..7dbbbac 100644
--- a/net/nimble/host/src/ble_gap.c
+++ b/net/nimble/host/src/ble_gap.c
@@ -496,6 +496,8 @@ ble_gap_conn_broken(struct ble_gap_snapshot *snap, int status)
{
struct ble_gap_conn_ctxt ctxt;
+ ble_hs_atomic_conn_delete(snap->desc.conn_handle);
+
ble_gattc_connection_broken(snap->desc.conn_handle);
ble_l2cap_sm_connection_broken(snap->desc.conn_handle);
@@ -503,7 +505,6 @@ ble_gap_conn_broken(struct ble_gap_snapshot *snap, int status)
ctxt.desc = &snap->desc;
ble_gap_call_conn_cb(BLE_GAP_EVENT_CONN, status, &ctxt,
snap->cb, snap->cb_arg);
- ble_hs_atomic_conn_delete(snap->desc.conn_handle);
STATS_INC(ble_gap_stats, disconnect);
}
[3/3] incubator-mynewt-core git commit: bleprph - Increase mbuf count
for iPhone support.
Posted by cc...@apache.org.
bleprph - Increase mbuf count for iPhone support.
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/4a983075
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4a983075
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4a983075
Branch: refs/heads/develop
Commit: 4a983075387019a9530d2c2336e55ff22e7dd129
Parents: afc0a74
Author: Christopher Collins <cc...@apache.org>
Authored: Tue May 17 13:28:11 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue May 17 13:30:03 2016 -0700
----------------------------------------------------------------------
apps/bleprph/src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4a983075/apps/bleprph/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bleprph/src/main.c b/apps/bleprph/src/main.c
index d03f8b5..b02933e 100755
--- a/apps/bleprph/src/main.c
+++ b/apps/bleprph/src/main.c
@@ -43,7 +43,7 @@
#define BSWAP16(x) ((uint16_t)(((x) << 8) | (((x) & 0xff00) >> 8)))
/** Mbuf settings. */
-#define MBUF_NUM_MBUFS (8)
+#define MBUF_NUM_MBUFS (12)
#define MBUF_BUF_SIZE OS_ALIGN(BLE_MBUF_PAYLOAD_SIZE, 4)
#define MBUF_MEMBLOCK_SIZE (MBUF_BUF_SIZE + BLE_MBUF_MEMBLOCK_OVERHEAD)
#define MBUF_MEMPOOL_SIZE OS_MEMPOOL_SIZE(MBUF_NUM_MBUFS, MBUF_MEMBLOCK_SIZE)
[2/3] incubator-mynewt-core git commit: bleprph - Increase stack size
to prevent crash.
Posted by cc...@apache.org.
bleprph - Increase stack size to prevent crash.
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/65b4cc3f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/65b4cc3f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/65b4cc3f
Branch: refs/heads/develop
Commit: 65b4cc3f46e465f3544e6100a8d90d811e87a3d3
Parents: 4a98307
Author: Christopher Collins <cc...@apache.org>
Authored: Tue May 17 13:28:42 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue May 17 13:30:03 2016 -0700
----------------------------------------------------------------------
apps/bleprph/src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/65b4cc3f/apps/bleprph/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bleprph/src/main.c b/apps/bleprph/src/main.c
index b02933e..97a9367 100755
--- a/apps/bleprph/src/main.c
+++ b/apps/bleprph/src/main.c
@@ -61,7 +61,7 @@ struct log bleprph_log;
#define BLEPRPH_BLE_HS_PRIO (1)
/** bleprph task settings. */
-#define BLEPRPH_STACK_SIZE (OS_STACK_ALIGN(288))
+#define BLEPRPH_STACK_SIZE (OS_STACK_ALIGN(336))
#define BLEPRPH_TASK_PRIO (BLEPRPH_BLE_HS_PRIO + 1)
struct os_eventq bleprph_evq;