Skip to content

Commit 9a31922

Browse files
rlubosnashif
authored andcommitted
net: ieee802154: Add common config for all 802154 L2s
Introduce a common config for all 802.15.4 based L2 implementations. This way, any custom 15.4 L2 implementation will be able to automatically enable use 15.4 driver, w/o a need to modify the actual Kconfig. Signed-off-by: Robert Lubos <[email protected]>
1 parent 4648b63 commit 9a31922

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

drivers/ieee802154/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
menuconfig IEEE802154
1010
bool "IEEE 802.15.4 drivers options"
11-
default y if NET_L2_IEEE802154 || NET_L2_OPENTHREAD
11+
default y if NET_L2_PHY_IEEE802154
1212

1313
if IEEE802154
1414

subsys/net/l2/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ source "subsys/net/l2/ethernet/Kconfig"
7272

7373
source "subsys/net/l2/ppp/Kconfig"
7474

75+
config NET_L2_PHY_IEEE802154
76+
bool
77+
help
78+
A common config for all IEEE 802.15.4 based L2 implementations.
79+
7580
source "subsys/net/l2/ieee802154/Kconfig"
7681

7782
source "subsys/net/l2/openthread/Kconfig"

subsys/net/l2/ieee802154/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
menuconfig NET_L2_IEEE802154
55
bool "Enable IEEE 802.15.4 Radio"
6+
select NET_L2_PHY_IEEE802154
67
help
78
Add support for low rate WPAN IEEE 802.15.4 technology.
89

subsys/net/l2/openthread/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config OPENTHREAD_SECURITY_INTERNAL
1212
menuconfig NET_L2_OPENTHREAD
1313
bool "OpenThread L2"
1414
depends on NETWORKING
15+
select NET_L2_PHY_IEEE802154
1516

1617
select SETTINGS
1718
select FLASH

0 commit comments

Comments
 (0)