Commit 14b4084d authored by Ulf Magnusson's avatar Ulf Magnusson Committed by Anas Nashif
Browse files

net: rpl: Kconfig: Fix 'Network type' choice default



The 'Network type' choice always defaulted to NET_RPL_L2_ANY, because
choices prefer the first default with a satisfied condition (this was
true even when Zephyr still had the prefer-later-defaults patch).

Swap the defaults so that NET_RPL_L2_IEEE802154 becomes the default if
NET_L2_IEEE802154 is enabled, as intended.

Signed-off-by: default avatarUlf Magnusson <Ulf.Magnusson@nordicsemi.no>
parent 78d24763
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,8 +27,8 @@ config NET_RPL_PREFIX

choice
	prompt "Network type"
	default NET_RPL_L2_ANY
	default NET_RPL_L2_IEEE802154 if NET_L2_IEEE802154
	default NET_RPL_L2_ANY
	help
	  The type of the network that this RPL device is supporting.
	  Currently all the nodes in the network need to be the same type
@@ -39,6 +39,7 @@ config NET_RPL_L2_ANY

config NET_RPL_L2_IEEE802154
	bool "IEEE 802.15.4"

endchoice

choice