Repository: incubator-mynewt-core Updated Branches: refs/heads/develop cbffc3930 -> 62943fbe0
MYNEWT-342: Fix invalid access address generation 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/62943fbe Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/62943fbe Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/62943fbe Branch: refs/heads/develop Commit: 62943fbe074e4a57bbb882fefaeac75c36e3d1aa Parents: cbffc39 Author: William San Filippo <[email protected]> Authored: Tue Jul 26 10:44:32 2016 -0700 Committer: William San Filippo <[email protected]> Committed: Fri Jul 29 08:30:51 2016 -0700 ---------------------------------------------------------------------- net/nimble/controller/src/ble_ll_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/62943fbe/net/nimble/controller/src/ble_ll_conn.c ---------------------------------------------------------------------- diff --git a/net/nimble/controller/src/ble_ll_conn.c b/net/nimble/controller/src/ble_ll_conn.c index ca94310..f711dfb 100644 --- a/net/nimble/controller/src/ble_ll_conn.c +++ b/net/nimble/controller/src/ble_ll_conn.c @@ -462,8 +462,8 @@ ble_ll_conn_calc_access_addr(void) transitions = 0; consecutive = 0; mask = 0x00000001; - prev_bit = aa & mask; while (mask < 0x80000000) { + prev_bit = aa & mask; mask <<= 1; if (mask & aa) { if (prev_bit == 0) {
