Skip to content

Commit 9c34d69

Browse files
committed
[nrf fromlist] drivers: ieee802154: nrf5: sleep if idle when RxOnWhenIdle=0
When RxOnWhenIdle is set to False, turn the radio off if no operation is ongoing in order to save power. Upstream PR: zephyrproject-rtos/zephyr#73471 Signed-off-by: Eduardo Montoya <[email protected]>
1 parent dd4f7c3 commit 9c34d69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/ieee802154/ieee802154_nrf5.c

+4
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,10 @@ static int nrf5_configure(const struct device *dev,
10091009
case IEEE802154_CONFIG_RX_ON_WHEN_IDLE:
10101010
nrf_802154_rx_on_when_idle_set(config->rx_on_when_idle);
10111011
nrf5_data.rx_on_when_idle = config->rx_on_when_idle;
1012+
1013+
if (config->rx_on_when_idle == false) {
1014+
(void)nrf_802154_sleep_if_idle();
1015+
}
10121016
break;
10131017

10141018
default:

0 commit comments

Comments
 (0)