diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index c69b7088e55..7a036c571b4 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -10250,8 +10250,10 @@ u32_t radio_scan_is_enabled(void) { /* NOTE: BIT(0) - passive scanning enabled * BIT(1) - active scanning enabled + * BIT(2) - initiator enabled */ - return (u32_t)_radio.scanner.is_enabled << _radio.scanner.type; + return ((u32_t)_radio.scanner.is_enabled << _radio.scanner.type) | + (_radio.scanner.conn ? BIT(2) : 0); } u32_t radio_scan_filter_pol_get(void) diff --git a/subsys/bluetooth/controller/ll_sw/ll_addr.c b/subsys/bluetooth/controller/ll_sw/ll_addr.c index 7e2aa30e05e..cea0218f077 100644 --- a/subsys/bluetooth/controller/ll_sw/ll_addr.c +++ b/subsys/bluetooth/controller/ll_sw/ll_addr.c @@ -43,7 +43,7 @@ u8_t *ll_addr_get(u8_t addr_type, u8_t *bdaddr) u32_t ll_addr_set(u8_t addr_type, u8_t const *const bdaddr) { if (radio_adv_is_enabled() || - (radio_scan_is_enabled() & BIT(1))) { + (radio_scan_is_enabled() & (BIT(1) | BIT(2)))) { return BT_HCI_ERR_CMD_DISALLOWED; }