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 <lukasz.maciejonczyk@nordicsemi.no>
This commit is contained in:
Lukasz Maciejonczyk 2022-01-10 09:30:54 +01:00 committed by Anas Nashif
commit 7bdb1c2a82

View file

@ -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");