From 7bdb1c2a82a5bfeca0e026e8ae8f3bdc06601fc0 Mon Sep 17 00:00:00 2001 From: Lukasz Maciejonczyk Date: Mon, 10 Jan 2022 09:30:54 +0100 Subject: [PATCH] drivers: ieee802154_nrf5: fix sleep call for csl When the csl is active the nrf_802154_sleep() is called unnecessary. This commit fixes it. Signed-off-by: Lukasz Maciejonczyk --- drivers/ieee802154/ieee802154_nrf5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ieee802154/ieee802154_nrf5.c b/drivers/ieee802154/ieee802154_nrf5.c index d773294a5c7..5102de50530 100644 --- a/drivers/ieee802154/ieee802154_nrf5.c +++ b/drivers/ieee802154/ieee802154_nrf5.c @@ -623,12 +623,12 @@ static int nrf5_stop(const struct device *dev) } #else ARG_UNUSED(dev); -#endif if (!nrf_802154_sleep()) { LOG_ERR("Error while stopping radio"); return -EIO; } +#endif LOG_DBG("nRF5 802154 radio stopped");