1# Copyright (c) 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4config WIFI_MGMT_RAW_SCAN_RESULTS
5	bool "Raw scan results"
6	help
7	  This option enables raw scan results. When enabled, the raw scan
8	  results (beacons or probe responses) are provided to the application.
9	  Enabling this config will increase the net_mgmt event size
10	  considerably.
11
12if WIFI_MGMT_RAW_SCAN_RESULTS
13
14config WIFI_MGMT_RAW_SCAN_RESULT_LENGTH
15	int "Maximum length of raw scan results"
16	default 512
17	help
18	  This option defines the maximum length of raw scan results.
19
20config WIFI_MGMT_RAW_SCAN_RESULTS_ONLY
21	bool "Only raw scan results"
22	help
23	  This option enables only raw scan results. When enabled, the raw scan
24	  results (beacons or probe responses) are provided to the application.
25	  The scan results are not parsed and the application is responsible
26	  for parsing the scan results. Normal scan results are not provided
27	  to the application.
28
29endif # WIFI_MGMT_RAW_SCAN_RESULTS
30
31config WIFI_MGMT_TWT_CHECK_IP
32	bool "Check IP Assignment for TWT"
33	default y
34	help
35	  This option enables check for valid IP address before TWT setup.
36	  If TWT setup is triggered early in the connection, then device might
37	  enter deep sleep without having a valid IP, this can result in device
38	  being unreachable (IP Level) or unable to receive down link traffic
39	  even when it is awake intervals. Rejecting TWT setup till Wi-Fi
40	  interface has a valid IP address might be desirable in most scenarios.
41
42config WIFI_MGMT_FORCED_PASSIVE_SCAN
43	bool "Force passive Wi-Fi scanning"
44	help
45	  Always request a passive scan, regardless of the user supplied parameters.
46	  This is typically used when the underlying hardware is not certified for
47	  RF transmissions. This doesn't guarantee that passive scan will be used,
48	  it depends on the underlying chip implementation to support and honour
49	  scan type.
50
51config WIFI_MGMT_SCAN_SSID_FILT_MAX
52	int "Maximum number of SSIDs that can be specified for SSID filtering"
53	default 1
54	range 1 4
55	help
56	  Maximum number of SSIDs that can be specified for SSID filtering.
57	  This can be set based on the underlying chipsets limitations.
58
59config WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
60	int "Maximum number of channels that can be manually specified"
61	range 1 110
62	default 3
63	help
64	  There are approximately 100 channels allocated across the three supported bands.
65	  The default of 3 allows the 3 most common channels (2.4GHz: 1, 6, 11) to be specified.
66
67config WIFI_SHELL_MAX_AP_STA
68	int "Maximum number of APs and STAs that can be managed in Wi-Fi shell"
69	range 1 5
70	default 1
71	help
72	  This option defines the maximum number of APs and STAs that can be managed
73	  in Wi-Fi shell.
74
75config WIFI_NM
76	bool "Wi-Fi Network manager support"
77	help
78	  This option enables using the Wi-Fi Network managers (e.g. wpa_supplicant) to
79	  manage the Wi-Fi network interfaces.
80
81if WIFI_NM
82
83config WIFI_NM_MAX_MANAGED_INTERFACES
84	int "Maximum number of managed interfaces per Wi-Fi network manager"
85	default 1
86	help
87	  This option defines the maximum number of managed interfaces per Wi-Fi
88	  network manager instance that can be used simultaneously.
89
90module = WIFI_NM
91module-dep = NET_LOG
92module-str = Log level for Wi-Fi Network manager module
93module-help = Enables using the Wi-Fi Network managers to manage the Wi-Fi network interfaces.
94source "subsys/net/Kconfig.template.log_config.net"
95endif # WIFI_NM
96
97config WIFI_MGMT_AP_STA_INACTIVITY_TIMEOUT
98	int "Station inactivity timeout in seconds"
99	default 300
100	help
101	  Station inactivity timeout is the period for which AP may keep a client
102	  in associated state while there is no traffic from that particular
103	  client. If a non-zero value is set, AP may choose to disassociate the
104	  client after the timeout.
105
106config WIFI_MGMT_AP_STA_SKIP_INACTIVITY_POLL
107	bool "Skip inactivity poll for stations after the inactivity timeout"
108	help
109	  Skip inactivity poll for stations after the inactivity timeout. This
110	  will prevent the AP from sending null data frames to the stations after
111	  the inactivity timeout. This is useful to disconnect idle stations even
112	  if they are within the range of the AP.
113	  Note: This is only build time parameter, runtime configuration not supported.
114
115config WIFI_MGMT_AP_MAX_NUM_STA
116	int "Maximum number of stations allowed in station table"
117	range 1 2007
118	default 4
119	help
120	  Maximum number of stations allowed in station table. New stations will be
121	  rejected after the station table is full.
122