net: ieee802154_radio: Enable ed_scan unconditionally

Energy scan procedure, while introduced specifically for OpenThread in
Zephyr, may also be used by other upper layers (like Zigbee).
Therefore, disable conditional inclusion of the `ed_scan` API.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-04-01 11:45:18 +02:00 committed by Jukka Rissanen
commit 111313581d
2 changed files with 2 additions and 8 deletions

View file

@ -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