You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2017/05/17 09:55:37 UTC

[21/43] incubator-mynewt-core git commit: nimble/ll: Fix sending features xchange PDUs

nimble/ll: Fix sending features xchange PDUs

We only set single octet of CtrData field so need to clear other octets
as otherwise we can send some random value there.


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

Branch: refs/heads/bluetooth5
Commit: baa74ed2d3f6a5936b59c599265d2cd0296a6d69
Parents: 5c343f5
Author: Andrzej Kaczmarek <an...@codecoup.pl>
Authored: Tue Apr 25 08:11:31 2017 +0200
Committer: Andrzej Kaczmarek <an...@codecoup.pl>
Committed: Thu May 11 10:47:08 2017 +0200

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_ctrl.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/baa74ed2/net/nimble/controller/src/ble_ll_ctrl.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_ctrl.c b/net/nimble/controller/src/ble_ll_ctrl.c
index 5522564..1535792 100644
--- a/net/nimble/controller/src/ble_ll_ctrl.c
+++ b/net/nimble/controller/src/ble_ll_ctrl.c
@@ -1283,6 +1283,7 @@ ble_ll_ctrl_proc_init(struct ble_ll_conn_sm *connsm, int ctrl_proc)
             } else {
                 opcode = BLE_LL_CTRL_SLAVE_FEATURE_REQ;
             }
+            memset(ctrdata, 0, BLE_LL_CTRL_FEATURE_LEN);
             ctrdata[0] = ble_ll_read_supp_features();
             break;
         case BLE_LL_CTRL_PROC_VERSION_XCHG: