From dc1dad34f3d134d014ee3f20a3e5b26265fb221e Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Tue, 8 Aug 2017 14:59:15 +0200 Subject: [PATCH] Bluetooth: controller: Fix return type in hal/rand.c Fix incorrect return data type, which causes controller to hang generating random numbers. Fixes bug introduced in commit d90095b5561a ("Bluetooth: controller: Use random numbers in adv and enc setup") Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/hal/nrf5/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/hal/nrf5/rand.c b/subsys/bluetooth/controller/hal/nrf5/rand.c index f573da0dc0d..0b59c4d1fde 100644 --- a/subsys/bluetooth/controller/hal/nrf5/rand.c +++ b/subsys/bluetooth/controller/hal/nrf5/rand.c @@ -143,7 +143,7 @@ void isr_rand(void *param) ARG_UNUSED(param); if (NRF_RNG->EVENTS_VALRDY) { - u8_t ret; + int ret; ret = isr(rng_isr, true); if (ret != -EBUSY) {