Bluetooth: controller: Use NRF RNG entropy device
Use the NRF RNG entropy device as the entropy device for bt_rand and controller internal functions when LLL is Nordic. Using an entropy source with a significant increase in stack usage will invalidate all stack size configurations in the system and lead to stack overflow issues. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
406a33682a
commit
f756b79124
15 changed files with 65 additions and 57 deletions
|
@ -886,7 +886,7 @@ static void le_rand(struct net_buf *buf, struct net_buf **evt)
|
|||
rp = hci_cmd_complete(evt, sizeof(*rp));
|
||||
rp->status = 0x00;
|
||||
|
||||
util_rand(rp->rand, count);
|
||||
lll_csrand_get(rp->rand, count);
|
||||
}
|
||||
|
||||
static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue