1 /*
2  * Copyright (c) 2016 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * All references to the spec refer to IEEE 802.15.4-2020.
7  */
8 
9 #include <zephyr/logging/log.h>
10 LOG_MODULE_REGISTER(net_ieee802154_aloha, CONFIG_NET_L2_IEEE802154_LOG_LEVEL);
11 
12 #include <zephyr/net/net_if.h>
13 
14 #include "ieee802154_priv.h"
15 
aloha_channel_access(struct net_if * iface)16 static inline int aloha_channel_access(struct net_if *iface)
17 {
18 	ARG_UNUSED(iface);
19 
20 	/* CCA Mode 4: ALOHA. CCA shall always report an idle medium, see section 10.2.8. */
21 	return 0;
22 }
23 
24 /* Declare the public channel access algorithm function used by L2. */
25 FUNC_ALIAS(aloha_channel_access, ieee802154_wait_for_clear_channel, int);
26