From 3317227437d11396d63e1e5c698fe00e2008c46e Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 7 Nov 2016 11:24:44 +0100 Subject: [PATCH] Bluetooth: Remove workaround for Mynewt firmware bug This is not needed for Zephyr controller build and should already be fixed in Mynewt. Change-Id: I39e81dc3e9b5fd5a3f5f823465527248625caf26 Signed-off-by: Szymon Janc --- subsys/bluetooth/host/hci_core.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 4d66e150b08..27078494859 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -2334,20 +2334,6 @@ static void hci_cmd_status(struct net_buf *buf) } } -static inline void mynewt_rand_delay(void) -{ -#if defined(CONFIG_BOARD_ARDUINO_101) || defined(CONFIG_BOARD_QUARK_SE_DEVBOARD) - /* FIXME: Temporary hack for MyNewt HCI firmware which - * crashes if it receives too rapid LE_Rand commands. - */ - if (sys_execution_context_type_get() == NANO_CTX_FIBER) { - fiber_sleep(MSEC(30)); - } else { - task_sleep(MSEC(30)); - } -#endif /* CONFIG_BOARD_ARDUINO_101 || CONFIG_BOARD_QUARK_SE_DEVBOARD */ -} - static int prng_reseed(struct tc_hmac_prng_struct *h) { uint8_t seed[32]; @@ -2358,11 +2344,6 @@ static int prng_reseed(struct tc_hmac_prng_struct *h) struct bt_hci_rp_le_rand *rp; struct net_buf *rsp; - /* FIXME: Temporary hack for MyNewt HCI firmware which - * crashes if it receives too rapid LE_Rand commands. - */ - mynewt_rand_delay(); - ret = bt_hci_cmd_send_sync(BT_HCI_OP_LE_RAND, NULL, &rsp); if (ret) { return ret; @@ -2392,11 +2373,6 @@ static int prng_init(struct tc_hmac_prng_struct *h) struct net_buf *rsp; int ret; - /* FIXME: Temporary hack for MyNewt HCI firmware which - * crashes if it receives too rapid LE_Rand commands. - */ - mynewt_rand_delay(); - ret = bt_hci_cmd_send_sync(BT_HCI_OP_LE_RAND, NULL, &rsp); if (ret) { return ret;