Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 9dca85e06 -> 9317ddb1e


No jira ticket for this commit. In the case of the combined host/controller, 
the length of the ACL data
packet (as reported by read buffer size) was technically incorrect (although 
there are no issues with
it because the host will only use the available mbuf and the controller does 
nothing with the ACL
data packet size). The code did not account for the 4 byte HCI header. Now we 
do account for it so it
is consistent with the controller only code.


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

Branch: refs/heads/develop
Commit: 9317ddb1e08d93f8469937b1ebc5bd2ed12edfe3
Parents: 9dca85e
Author: William San Filippo <wi...@runtime.io>
Authored: Mon Sep 19 09:52:41 2016 -0700
Committer: William San Filippo <wi...@runtime.io>
Committed: Mon Sep 19 09:56:29 2016 -0700

----------------------------------------------------------------------
 apps/blecent/src/main.c | 3 ++-
 apps/bleprph/src/main.c | 3 ++-
 apps/bletest/src/main.c | 3 ++-
 apps/bletiny/src/main.c | 3 ++-
 apps/bleuart/src/main.c | 3 ++-
 5 files changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9317ddb1/apps/blecent/src/main.c
----------------------------------------------------------------------
diff --git a/apps/blecent/src/main.c b/apps/blecent/src/main.c
index c5cd2bc..c0f43a4 100755
--- a/apps/blecent/src/main.c
+++ b/apps/blecent/src/main.c
@@ -569,7 +569,8 @@ main(void)
                  blecent_stack, BLECENT_STACK_SIZE);
 
     /* Initialize the BLE LL */
-    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS, BLE_MBUF_PAYLOAD_SIZE);
+    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS,
+                     BLE_MBUF_PAYLOAD_SIZE - BLE_HCI_DATA_HDR_SZ);
     assert(rc == 0);
 
     /* Initialize the RAM HCI transport. */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9317ddb1/apps/bleprph/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bleprph/src/main.c b/apps/bleprph/src/main.c
index 1121703..a53cb29 100755
--- a/apps/bleprph/src/main.c
+++ b/apps/bleprph/src/main.c
@@ -393,7 +393,8 @@ main(void)
                  bleprph_stack, BLEPRPH_STACK_SIZE);
 
     /* Initialize the BLE LL */
-    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS, BLE_MBUF_PAYLOAD_SIZE);
+    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS,
+                     BLE_MBUF_PAYLOAD_SIZE - BLE_HCI_DATA_HDR_SZ);
     assert(rc == 0);
 
     /* Initialize the RAM HCI transport. */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9317ddb1/apps/bletest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletest/src/main.c b/apps/bletest/src/main.c
index 066d52e..ffc0b92 100755
--- a/apps/bletest/src/main.c
+++ b/apps/bletest/src/main.c
@@ -1170,7 +1170,8 @@ main(void)
     os_eventq_init(&g_bletest_evq);
 
     /* Initialize the BLE LL */
-    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS, BLE_MBUF_PAYLOAD_SIZE);
+    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS,
+                     BLE_MBUF_PAYLOAD_SIZE - BLE_HCI_DATA_HDR_SZ);
     assert(rc == 0);
 
     /* Initialize host */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9317ddb1/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index faaf8ab..17b1ea0 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -1700,7 +1700,8 @@ main(void)
     assert(rc == 0);
 
     /* Initialize the BLE LL */
-    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS, BLE_MBUF_PAYLOAD_SIZE);
+    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS,
+                     BLE_MBUF_PAYLOAD_SIZE - BLE_HCI_DATA_HDR_SZ);
     assert(rc == 0);
 
     /* Initialize the RAM HCI transport. */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9317ddb1/apps/bleuart/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bleuart/src/main.c b/apps/bleuart/src/main.c
index 8ff7d82..2c54929 100755
--- a/apps/bleuart/src/main.c
+++ b/apps/bleuart/src/main.c
@@ -293,7 +293,8 @@ main(void)
                  bleuart_stack, bleuart_STACK_SIZE);
 
     /* Initialize the BLE LL */
-    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS, BLE_MBUF_PAYLOAD_SIZE);
+    rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS,
+                     BLE_MBUF_PAYLOAD_SIZE - BLE_HCI_DATA_HDR_SZ);
     assert(rc == 0);
 
     /* Initialize the RAM HCI transport. */

Reply via email to