From d75acb44c3bbfac340519f7a4f2799ae2b4aaed5 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 8 Jun 2016 10:18:29 +0200 Subject: [PATCH] Bluetooth: Remove LE Rand workaround for mynewt firmware Latest firmware seems to have this fixed and delay is no longer needed. Change-Id: I3caa8d38fc856964b57049d6704c80ca732ccde5 Signed-off-by: Szymon Janc --- net/bluetooth/hci_core.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index becb0bd1321..367d557316b 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -2121,16 +2121,6 @@ static int prng_reseed(struct tc_hmac_prng_struct *h) struct bt_hci_rp_le_rand *rp; struct net_buf *rsp; -#if defined(CONFIG_BOARD_ARDUINO_101) - /* 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 ret = bt_hci_cmd_send_sync(BT_HCI_OP_LE_RAND, NULL, &rsp); if (ret) { return ret;