From 4812b2d40e6e37f0d46e740852296fe811343971 Mon Sep 17 00:00:00 2001 From: Vinayak Chettimada Date: Fri, 11 Nov 2016 15:12:54 +0100 Subject: [PATCH] Bluetooth: Controller: Fix device whitelist feature During the initial integration of controller to Zephyr OS, radio hardware access was abstracted out into hal/radio.c file. Bug introduced in hal/radio.c has been fixed so that whitelist feature works again. Change-id: Ie5faf80b1a008ef326613548a5a28a4ba52e7ef7 Signed-off-by: Vinayak Chettimada --- subsys/bluetooth/controller/hal/radio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/hal/radio.c b/subsys/bluetooth/controller/hal/radio.c index cac74c35f6c..c63fef554ca 100644 --- a/subsys/bluetooth/controller/hal/radio.c +++ b/subsys/bluetooth/controller/hal/radio.c @@ -276,9 +276,9 @@ void radio_filter_configure(uint8_t bitmask_enable, uint8_t bitmask_addr_type, uint8_t *bdaddr) { - uint8_t index = 8; + uint8_t index; - while (index--) { + for (index = 0; index < 8; index++) { NRF_RADIO->DAB[index] = ((uint32_t)bdaddr[3] << 24) | ((uint32_t)bdaddr[2] << 16) | ((uint32_t)bdaddr[1] << 8) |