Fix native controller build Fix following link error when build unit tests forcontroller: unittest/net_nimble_controller_test/app/net/nimble/controller/ net_nimble_controller.a(ble_ll.o): In function `ble_ll_wfr_timer_exp': net/nimble/controller/src/ble_ll.c:505: undefined reference to `ble_phy_xcvr_state_get'
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/9b31d745 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9b31d745 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9b31d745 Branch: refs/heads/bluetooth5 Commit: 9b31d7452610f3cdab5ccce10f49ae9806535fd3 Parents: 34670d7 Author: Szymon Janc <[email protected]> Authored: Mon May 8 14:19:10 2017 +0200 Committer: Szymon Janc <[email protected]> Committed: Mon May 8 14:19:10 2017 +0200 ---------------------------------------------------------------------- hw/drivers/nimble/native/src/ble_phy.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9b31d745/hw/drivers/nimble/native/src/ble_phy.c ---------------------------------------------------------------------- diff --git a/hw/drivers/nimble/native/src/ble_phy.c b/hw/drivers/nimble/native/src/ble_phy.c index 3fb5cf7..57c6799 100644 --- a/hw/drivers/nimble/native/src/ble_phy.c +++ b/hw/drivers/nimble/native/src/ble_phy.c @@ -605,4 +605,16 @@ ble_phy_resolv_list_disable(void) { g_ble_phy_data.phy_privacy = 0; } + +/** + * Return the transceiver state + * + * @return int transceiver state. + */ +uint8_t +ble_phy_xcvr_state_get(void) +{ + return g_ble_phy_data.phy_state; +} + #endif
