Repository: incubator-mynewt-core Updated Branches: refs/heads/bluetooth5 2767d7918 -> aa7a27459
nimble/controller: Change LL and HCI version to Bluetooth 5.0 We start adding features from Bluetooth 5.0 so lets move on with version first < HCI Command: Read Local Version Information (0x04|0x0001) plen 0 > HCI Event: Command Complete (0x0e) plen 12 Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: Bluetooth 5.0 (0x09) - Revision 0 (0x0000) LMP version: Bluetooth 5.0 (0x09) - Subversion 0 (0x0000) Manufacturer: internal use (65535) 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/9ed2a9e6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9ed2a9e6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9ed2a9e6 Branch: refs/heads/bluetooth5 Commit: 9ed2a9e611f2485caa06b371770ad04867ae9dcc Parents: 2767d79 Author: Åukasz Rymanowski <lukasz.rymanow...@codecoup.pl> Authored: Fri Mar 31 10:52:53 2017 +0200 Committer: Åukasz Rymanowski <lukasz.rymanow...@codecoup.pl> Committed: Wed Apr 5 14:39:09 2017 +0200 ---------------------------------------------------------------------- net/nimble/controller/src/ble_ll_ctrl.c | 2 +- net/nimble/controller/src/ble_ll_hci.c | 4 ++-- net/nimble/include/nimble/hci_common.h | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9ed2a9e6/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 a933753..87a66ce 100644 --- a/net/nimble/controller/src/ble_ll_ctrl.c +++ b/net/nimble/controller/src/ble_ll_ctrl.c @@ -777,7 +777,7 @@ ble_ll_ctrl_version_ind_make(struct ble_ll_conn_sm *connsm, uint8_t *pyld) connsm->csmflags.cfbit.version_ind_sent = 1; /* Fill out response */ - pyld[0] = BLE_HCI_VER_BCS_4_2; + pyld[0] = BLE_HCI_VER_BCS_5_0; put_le16(pyld + 1, MYNEWT_VAL(BLE_LL_MFRG_ID)); put_le16(pyld + 3, BLE_LL_SUB_VERS_NR); } http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9ed2a9e6/net/nimble/controller/src/ble_ll_hci.c ---------------------------------------------------------------------- diff --git a/net/nimble/controller/src/ble_ll_hci.c b/net/nimble/controller/src/ble_ll_hci.c index 336cd03..83d99a7 100644 --- a/net/nimble/controller/src/ble_ll_hci.c +++ b/net/nimble/controller/src/ble_ll_hci.c @@ -183,9 +183,9 @@ ble_ll_hci_rd_local_version(uint8_t *rspbuf, uint8_t *rsplen) mfrg = MYNEWT_VAL(BLE_LL_MFRG_ID); /* Place the data packet length and number of packets in the buffer */ - rspbuf[0] = BLE_HCI_VER_BCS_4_2; + rspbuf[0] = BLE_HCI_VER_BCS_5_0; put_le16(rspbuf + 1, hci_rev); - rspbuf[3] = BLE_LMP_VER_BCS_4_2; + rspbuf[3] = BLE_LMP_VER_BCS_5_0; put_le16(rspbuf + 4, mfrg); put_le16(rspbuf + 6, lmp_subver); *rsplen = BLE_HCI_RD_LOC_VER_INFO_RSPLEN; http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9ed2a9e6/net/nimble/include/nimble/hci_common.h ---------------------------------------------------------------------- diff --git a/net/nimble/include/nimble/hci_common.h b/net/nimble/include/nimble/hci_common.h index ff34316..6e80d49 100644 --- a/net/nimble/include/nimble/hci_common.h +++ b/net/nimble/include/nimble/hci_common.h @@ -558,6 +558,7 @@ extern "C" { #define BLE_HCI_VER_BCS_4_0 (6) #define BLE_HCI_VER_BCS_4_1 (7) #define BLE_HCI_VER_BCS_4_2 (8) +#define BLE_HCI_VER_BCS_5_0 (9) #define BLE_LMP_VER_BCS_1_0b (0) #define BLE_LMP_VER_BCS_1_1 (1) @@ -568,6 +569,7 @@ extern "C" { #define BLE_LMP_VER_BCS_4_0 (6) #define BLE_LMP_VER_BCS_4_1 (7) #define BLE_LMP_VER_BCS_4_2 (8) +#define BLE_LMP_VER_BCS_5_0 (9) /* Sub-event 0x0A: enhanced connection complete */ #define BLE_HCI_LE_ENH_CONN_COMPLETE_LEN (31)