1# Copyright (c) 2019 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig NET_CONNECTION_MANAGER
5	bool "Network connection manager"
6	depends on NET_IPV6 || NET_IPV4
7	select NET_MGMT
8	select NET_MGMT_EVENT
9	select NET_MGMT_EVENT_INFO
10	help
11	  When enabled, this will start the connection manager that will
12	  listen to network interface and IP events in order to verify
13	  whether an interface is connected or not. It will then raise
14	  L4 events "connected" or "disconnected" depending on the result.
15
16if NET_CONNECTION_MANAGER
17
18module = NET_CONNECTION_MANAGER
19module-dep = NET_LOG
20module-str = Log level for connection manager
21module-help = Enables connection manager code to output debug messages.
22source "subsys/net/Kconfig.template.log_config.net"
23
24config NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE
25	int "Size of the stack allocated for the conn_mgr_monitor thread"
26	default 512
27	help
28	  Sets the stack size which will be used by the connection manager for connectivity monitoring.
29
30config NET_CONNECTION_MANAGER_MONITOR_PRIORITY
31	int "Monitoring thread starting priority"
32	default 1
33	range 1 99
34	help
35	  This sets the starting priority of the conn_mgr_monitor thread.
36
37config NET_CONNECTION_MANAGER_AUTO_IF_DOWN
38	bool "Automatically call net_if_down on ifaces that have given up on connecting"
39	default y
40
41config NET_CONNECTION_MANAGER_CONNECTIVITY_WIFI_MGMT
42	bool "Generic WiFi management connectivity implementation"
43	depends on NET_L2_WIFI_MGMT
44	help
45	  Enable CONNECTIVITY_WIFI_MGMT connectivity bindings on WiFi drivers.
46	  Which implementation is compiled is controlled via CONNECTIVITY_WIFI_MGMT_IMPL.
47
48choice CONNECTIVITY_WIFI_MGMT_IMPL
49	prompt "Implementation of the generic wifi_mgmt connectivity backend"
50	depends on NET_CONNECTION_MANAGER_CONNECTIVITY_WIFI_MGMT
51	default CONNECTIVITY_WIFI_MGMT_APPLICATION
52
53config CONNECTIVITY_WIFI_MGMT_APPLICATION
54	bool "Application specific implementation of the connectivity backend"
55	help
56	  The application defines its own implementation of CONNECTIVITY_WIFI_MGMT.
57
58endchoice
59
60endif # NET_CONNECTION_MANAGER
61