diff --git a/drivers/ieee802154/ieee802154_nrf5.c b/drivers/ieee802154/ieee802154_nrf5.c index 49fd52acb5c..313dfe8815d 100644 --- a/drivers/ieee802154/ieee802154_nrf5.c +++ b/drivers/ieee802154/ieee802154_nrf5.c @@ -183,7 +183,6 @@ static int nrf5_set_channel(struct device *dev, u16_t channel) return 0; } -#ifdef CONFIG_NET_L2_OPENTHREAD static int nrf5_energy_scan_start(struct device *dev, u16_t duration, energy_scan_done_cb_t done_cb) @@ -205,7 +204,6 @@ static int nrf5_energy_scan_start(struct device *dev, return err; } -#endif /* CONFIG_NET_L2_OPENTHREAD */ static int nrf5_set_pan_id(struct device *dev, u16_t pan_id) { @@ -610,9 +608,7 @@ static struct ieee802154_radio_api nrf5_radio_api = { .start = nrf5_start, .stop = nrf5_stop, .tx = nrf5_tx, -#ifdef CONFIG_NET_L2_OPENTHREAD .ed_scan = nrf5_energy_scan_start, -#endif /* CONFIG_NET_L2_OPENTHREAD */ .configure = nrf5_configure, }; diff --git a/include/net/ieee802154_radio.h b/include/net/ieee802154_radio.h index f955fa82556..f01a178390c 100644 --- a/include/net/ieee802154_radio.h +++ b/include/net/ieee802154_radio.h @@ -157,15 +157,13 @@ struct ieee802154_radio_api { u16_t (*get_subg_channel_count)(struct device *dev); #endif /* CONFIG_NET_L2_IEEE802154_SUB_GHZ */ -#ifdef CONFIG_NET_L2_OPENTHREAD /** Run an energy detection scan. - * Note: channel must be set prior to request this function. - * duration parameter is in ms. + * Note: channel must be set prior to request this function. + * duration parameter is in ms. */ int (*ed_scan)(struct device *dev, u16_t duration, energy_scan_done_cb_t done_cb); -#endif /* CONFIG_NET_L2_OPENTHREAD */ }; /* Make sure that the network interface API is properly setup inside