Skip to content

Commit 8136c09

Browse files
cvinayakAnas Nashif
authored andcommitted
Bluetooth: controller: Use correct NRF_AAR enable define
Use correct NRF_AAR enable macro defines from Nordic MDK. Old code funtionally worked fine even though not setting the correct enable value. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 59d10ea commit 8136c09

File tree

1 file changed

+2
-1
lines changed
  • subsys/bluetooth/controller/hal/nrf5

1 file changed

+2
-1
lines changed

subsys/bluetooth/controller/hal/nrf5/radio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ static u8_t MALIGN(4) _aar_scratch[3];
839839

840840
void radio_ar_configure(u32_t nirk, void *irk)
841841
{
842-
NRF_AAR->ENABLE = 1;
842+
NRF_AAR->ENABLE = (AAR_ENABLE_ENABLE_Enabled << AAR_ENABLE_ENABLE_Pos) &
843+
AAR_ENABLE_ENABLE_Msk;
843844
NRF_AAR->NIRK = nirk;
844845
NRF_AAR->IRKPTR = (u32_t)irk;
845846
NRF_AAR->ADDRPTR = (u32_t)NRF_RADIO->PACKETPTR - 1;

0 commit comments

Comments
 (0)