1# Copyright (c) 2016 Intel Corporation.
2# SPDX-License-Identifier: Apache-2.0
3
4menu "Link layer options"
5
6config NET_L2_DUMMY
7	bool "Dummy l2 layer"
8	default y if !NET_L2_ETHERNET && NET_TEST
9	help
10	  Add a dummy L2 layer driver. This is usually only needed when
11	  simulating a network interface when running network stack inside QEMU.
12
13if NET_L2_DUMMY
14source "subsys/net/l2/dummy/Kconfig"
15endif
16
17source "subsys/net/l2/virtual/Kconfig"
18
19source "subsys/net/l2/ethernet/Kconfig"
20
21source "subsys/net/l2/ppp/Kconfig"
22
23config NET_L2_PHY_IEEE802154
24	bool
25	help
26	  A common config for all IEEE 802.15.4 based L2 implementations.
27
28source "subsys/net/l2/ieee802154/Kconfig"
29
30source "subsys/net/l2/openthread/Kconfig"
31
32config NET_L2_CUSTOM_IEEE802154
33	bool "Custom IEEE802154 L2"
34	select NET_L2_PHY_IEEE802154
35	help
36	  Enable custom IEEE802154 based L2. Zephyr does not provide
37	  implementation for this L2 - users can implement their own L2 using
38	  this symbol, on top of the IEEE802154 radio driver.
39
40config NET_L2_CUSTOM_IEEE802154_MTU
41	int "MTU for the custom IEEE802154 L2"
42	depends on NET_L2_CUSTOM_IEEE802154
43	default 127
44
45source "subsys/net/l2/canbus/Kconfig"
46
47config NET_L2_WIFI_UTILS
48	bool
49	help
50	  This provides utility functions for Wi-Fi subsystem.
51
52config NET_L2_WIFI_MGMT
53	bool "Wi-Fi Management support"
54	select NET_MGMT
55	select NET_MGMT_EVENT
56	select NET_MGMT_EVENT_INFO
57	select NET_L2_WIFI_UTILS
58	help
59	  Enable support for Wi-Fi Management interface.
60
61if NET_L2_WIFI_MGMT
62module = NET_L2_WIFI_MGMT
63module-dep = NET_LOG
64module-str = Log level for Wi-Fi management layer
65module-help = Enables Wi-Fi management interface to output debug messages.
66source "subsys/net/Kconfig.template.log_config.net"
67source "subsys/net/l2/wifi/Kconfig"
68endif # NET_L2_WIFI_MGMT
69
70config NET_L2_WIFI_SHELL
71	bool "Wi-Fi shell module"
72	select NET_L2_WIFI_MGMT
73	select NET_L2_WIFI_UTILS
74	select SHELL_GETOPT
75	select GETOPT_LONG
76	help
77	  This can be used for controlling Wi-Fi through the console via
78	  exposing a shell module named "wifi".
79
80config NET_L2_PTP
81	bool "PTP L2 support"
82	select NET_PKT_TIMESTAMP
83	select PTP_CLOCK
84	help
85	  Add support for PTP L2 capabilities. Required by gPTP.
86
87endmenu
88