diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index 60085b271e4..51ddce131ac 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -189,8 +189,10 @@ static void reset(struct net_buf *buf, struct net_buf **evt) hci_hbuf_sent = 0; hci_hbuf_acked = 0; conn_count = 0; - atomic_set_bit(&hci_state_mask, HCI_STATE_BIT_RESET); - k_poll_signal(hbuf_signal, 0x0); + if (buf) { + atomic_set_bit(&hci_state_mask, HCI_STATE_BIT_RESET); + k_poll_signal(hbuf_signal, 0x0); + } #endif }