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 <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-11-07 11:24:44 +01:00 committed by Johan Hedberg
commit 3317227437

View file

@ -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;