Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 0373ef399 -> 876af601d


oic; ble fragmentation was splitting packets too small.


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/41d2e138
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/41d2e138
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/41d2e138

Branch: refs/heads/develop
Commit: 41d2e1389751a33ebd5d2316ffbc2d7f4cde53da
Parents: 0373ef3
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Sat Jan 28 17:29:16 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Sat Jan 28 17:29:16 2017 -0800

----------------------------------------------------------------------
 net/oic/src/port/mynewt/ble_adaptor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/41d2e138/net/oic/src/port/mynewt/ble_adaptor.c
----------------------------------------------------------------------
diff --git a/net/oic/src/port/mynewt/ble_adaptor.c 
b/net/oic/src/port/mynewt/ble_adaptor.c
index 85eb1f5..056b11c 100644
--- a/net/oic/src/port/mynewt/ble_adaptor.c
+++ b/net/oic/src/port/mynewt/ble_adaptor.c
@@ -299,7 +299,7 @@ oc_ble_frag(struct os_mbuf *m, uint16_t mtu)
         if (os_mbuf_appendfrom(n, m, off, blk)) {
             goto err;
         }
-        off -= blk;
+        off -= mtu;
         os_mbuf_adj(m, -blk);
     }
     return 0;

Reply via email to