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 8
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
123config WIFI_ENT_IDENTITY_MAX_USERS
124	int "Maximum number of identity users allowed connection"
125	default 8
126	help
127	  This option defines the maximum number of identity users allowed connection.
128
129config WIFI_CERTIFICATE_LIB
130	bool
131	help
132	  Enable this option to process certificates in enterprise mode.
133
134if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
135
136config WIFI_SHELL_RUNTIME_CERTIFICATES
137	bool "Provide Wi-Fi enterprise security certificates at run-time"
138	select TLS_CREDENTIALS
139	select TLS_CREDENTIALS_SHELL
140	select BASE64
141	help
142	  This option enables providing Wi-Fi enterprise security certificates at run-time.
143	  Uses the TLS credentials subsystem to store and manage the certificates.
144
145if WIFI_SHELL_RUNTIME_CERTIFICATES
146
147config HEAP_MEM_POOL_ADD_SIZE_WIFI_CERT
148	int "Wi-Fi enterprise security certificates memory pool size"
149	# STA - 6 certs and each assume 1500 bytes
150	default 12000
151	help
152	  The size of the memory pool used by the Wi-Fi enterprise security certificates.
153
154endif # WIFI_SHELL_RUNTIME_CERTIFICATES
155
156endif # WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
157
158config WIFI_MGMT_BSS_MAX_IDLE_TIME
159	int "BSS max idle timeout in seconds"
160	range 0 64000
161	default 300
162	help
163	  As per 802.11-2020: 11.21.13 BSS max idle period management
164	  If dot11WirelessManagementImplemented is true, dot11BSSMaxIdlePeriod is
165	  nonzero and dot11BSSMaxIdlePeriodIndicationByNonAPSTA is true, then a
166	  non-S1G non-AP STA shall include a BSS Max Idle Period element
167	  in the (Re)Association Request frame. If the BSS Max Idle Period
168	  element is present in the (Re)Association Request frame received
169	  by a non-S1G AP that has dot11BSSMaxIdlePeriodIndicationByNonAPSTA
170	  equal to true, then the non-S1G AP may choose the non-AP STA’s
171	  preferred maximum idle period. The non-S1G AP indicates its chosen
172	  value to the non-S1G STA in the (Re)Association Response frame.
173