Bluetooth: Increase HCI_LE_Rand delay for Arduino 101
20ms doesn't seem to always be enough. Change-Id: If5ff255d3f043e50e6e1d9ff481607dc17c604d1 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
44a306293c
commit
942bbadbf6
1 changed files with 2 additions and 2 deletions
|
@ -2113,9 +2113,9 @@ static int prng_reseed(struct tc_hmac_prng_struct *h)
|
||||||
* crashes if it receives too rapid LE_Rand commands.
|
* crashes if it receives too rapid LE_Rand commands.
|
||||||
*/
|
*/
|
||||||
if (sys_execution_context_type_get() == NANO_CTX_FIBER) {
|
if (sys_execution_context_type_get() == NANO_CTX_FIBER) {
|
||||||
fiber_sleep(MSEC(20));
|
fiber_sleep(MSEC(30));
|
||||||
} else {
|
} else {
|
||||||
task_sleep(MSEC(20));
|
task_sleep(MSEC(30));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ret = bt_hci_cmd_send_sync(BT_HCI_OP_LE_RAND, NULL, &rsp);
|
ret = bt_hci_cmd_send_sync(BT_HCI_OP_LE_RAND, NULL, &rsp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue