zephyr/subsys/bluetooth/controller/util
Joakim Andersson 291ebdd4e4 Bluetooth: Fix infinite recursion in host-based bt_rand
Fix infinite recursion in host-based bt_rand function. This would call
HCI LE Random Number command, which would in turn call bt_rand, causing
an infinite recursion.

bt_rand -> prng_reseed -> BT_HCI_OP_LE_RAND -> le_rand -> bt_rand

To solve this issue the controller should avoid doing calls into the
host, so all calls to bt_rand in the controller should be replaced with
a call to a controller function.

Fixes #22202

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-01-31 18:33:06 +01:00
..
mayfly.c Bluetooth: controller: Fix mayfly optimization 2019-09-24 10:37:23 +02:00
mayfly.h Bluetooth: controller: Remove include guards in internal files 2018-06-14 17:11:42 +02:00
mem.c bluetooth: controller: Document mem, memq, util 2019-01-10 18:00:41 +01:00
mem.h bluetooth: controller: Document mem, memq, util 2019-01-10 18:00:41 +01:00
memq.c bluetooth: controller: Document more of memq, mfifo 2019-02-15 09:49:45 -05:00
memq.h bluetooth: controller: Document mem, memq, util 2019-01-10 18:00:41 +01:00
mfifo.h docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
util.c Bluetooth: Fix infinite recursion in host-based bt_rand 2020-01-31 18:33:06 +01:00
util.h Bluetooth: Fix infinite recursion in host-based bt_rand 2020-01-31 18:33:06 +01:00