oic; clear next ptr on mbuf pkthdr for TX. This was confusing ble fragmentation.
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/4cfc2871 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4cfc2871 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4cfc2871 Branch: refs/heads/develop Commit: 4cfc28718fb0ba9cc9fe80bc592b01d16bff712f Parents: 41d2e13 Author: Marko Kiiskila <ma...@runtime.io> Authored: Sat Jan 28 17:30:33 2017 -0800 Committer: Marko Kiiskila <ma...@runtime.io> Committed: Sat Jan 28 17:30:33 2017 -0800 ---------------------------------------------------------------------- net/oic/src/api/oc_buffer.c | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4cfc2871/net/oic/src/api/oc_buffer.c ---------------------------------------------------------------------- diff --git a/net/oic/src/api/oc_buffer.c b/net/oic/src/api/oc_buffer.c index 9857eaf..74eca1c 100644 --- a/net/oic/src/api/oc_buffer.c +++ b/net/oic/src/api/oc_buffer.c @@ -73,6 +73,7 @@ oc_buffer_tx(struct os_event *ev) struct os_mbuf *m; while ((m = os_mqueue_get(&oc_outq)) != NULL) { + STAILQ_NEXT(OS_MBUF_PKTHDR(m), omp_next) = NULL; OC_LOG_DEBUG("oc_buffer_tx: "); OC_LOG_ENDPOINT(LOG_LEVEL_DEBUG, OC_MBUF_ENDPOINT(m)); #ifdef OC_CLIENT