Skip to content

Commit 35d0842

Browse files
adigiejfischer-no
authored andcommitted
[nrf fromlist] net: fix configuration of NET_LINK_ADDR_MAX_LENGTH
Replace `CONFIG_NET_L2_IEEE802154` with `CONFIG_NET_L2_PHY_IEEE802154` as `NET_LINK_ADDR_MAX_LENGTH` should be set to `8` for all IEEE 802.15.4 based L2, e.g. OpenThread. Upstream PR #: 89477 Signed-off-by: Adrian Gielniewski <[email protected]> (cherry picked from commit c3768dc6b8a6945b763b0c1abf01a5ecd48864ce)
1 parent cb13869 commit 35d0842

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/zephyr/net/net_linkaddr.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,11 @@ extern "C" {
3030
*/
3131

3232
/** Maximum length of the link address */
33-
#ifdef CONFIG_NET_L2_IEEE802154
34-
#define NET_LINK_ADDR_MAX_LENGTH 8
35-
#else
36-
#ifdef CONFIG_NET_L2_PPP
33+
#if defined(CONFIG_NET_L2_PHY_IEEE802154) || defined(CONFIG_NET_L2_PPP)
3734
#define NET_LINK_ADDR_MAX_LENGTH 8
3835
#else
3936
#define NET_LINK_ADDR_MAX_LENGTH 6
4037
#endif
41-
#endif
4238

4339
/**
4440
* Type of the link address. This indicates the network technology that this

0 commit comments

Comments
 (0)