@@ -175,6 +175,39 @@ config ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM
175
175
than WiFi layer can transmit. In these cases, we may run out of TX
176
176
buffers.
177
177
178
+ choice ESP32_WIFI_MGMT_RX_BUFFER
179
+ prompt "Type of WiFi RX MGMT buffers"
180
+ default ESP32_WIFI_STATIC_RX_MGMT_BUFFER
181
+ help
182
+ Select type of WiFi RX MGMT buffers:
183
+
184
+ If "Static" is selected, WiFi RX MGMT buffers are allocated when WiFi is initialized and released
185
+ when WiFi is de-initialized. The size of each static RX MGMT buffer is fixed to about 500 Bytes.
186
+
187
+ If "Dynamic" is selected, each WiFi RX MGMT buffer is allocated as needed when a MGMT data frame is
188
+ received. The MGMT buffer is freed after the MGMT data frame has been processed by the WiFi driver.
189
+
190
+ config ESP32_WIFI_STATIC_RX_MGMT_BUFFER
191
+ bool "Static"
192
+ config ESP32_WIFI_DYNAMIC_RX_MGMT_BUFFER
193
+ bool "Dynamic"
194
+ endchoice
195
+
196
+ config ESP32_WIFI_DYNAMIC_RX_MGMT_BUF
197
+ int
198
+ default 0 if ESP32_WIFI_STATIC_RX_MGMT_BUFFER
199
+ default 1 if ESP32_WIFI_DYNAMIC_RX_MGMT_BUFFER
200
+
201
+ config ESP32_WIFI_RX_MGMT_BUF_NUM_DEF
202
+ int "Max number of WiFi RX MGMT buffers"
203
+ range 1 10
204
+ default 5
205
+ help
206
+ Set the number of WiFi RX_MGMT buffers.
207
+
208
+ For Management buffers, the number of dynamic and static management buffers is the same.
209
+ In order to prevent memory fragmentation, the management buffer type should be set to static first.
210
+
178
211
config ESP32_WIFI_CSI_ENABLED
179
212
bool "WiFi CSI(Channel State Information)"
180
213
default n
@@ -234,6 +267,13 @@ config ESP32_WIFI_AMSDU_TX_ENABLED
234
267
help
235
268
Select this option to enable AMSDU TX feature
236
269
270
+ config ESP32_WIFI_MGMT_SBUF_NUM
271
+ int "WiFi mgmt short buffer number"
272
+ range 6 32
273
+ default 32
274
+ help
275
+ Set the number of WiFi management short buffer.
276
+
237
277
config ESP32_WIFI_IRAM_OPT
238
278
bool "WiFi IRAM speed optimization"
239
279
default n if (BT && ESP_SPIRAM && SOC_SERIES_ESP32)
@@ -251,10 +291,62 @@ config ESP32_WIFI_RX_IRAM_OPT
251
291
When this option is disabled, more than 17Kbytes of IRAM memory will be saved
252
292
but Wi-Fi performance will be reduced.
253
293
294
+ config ESP32_WIFI_MAX_THREAD_PRIORITY
295
+ int "Maximum work queue thread priority"
296
+ default 7
297
+ help
298
+ Maximum priority of thread used for processing driver work queue items.
299
+
300
+ config ESP32_WIFI_SLP_DEFAULT_MIN_ACTIVE_TIME
301
+ int "Minimum active time"
302
+ range 8 60
303
+ default 50
304
+ help
305
+ Only for station in WIFI_PS_MIN_MODEM or WIFI_PS_MAX_MODEM. When the station enters the active state,
306
+ it will work for at least ESP_WIFI_SLP_DEFAULT_MIN_ACTIVE_TIME. If a data packet is received or sent
307
+ during this period, the time will be refreshed. If the time is up, but the station still has packets
308
+ to receive or send, the time will also be refreshed. unit: milliseconds.
309
+
310
+ config ESP32_WIFI_SLP_DEFAULT_MAX_ACTIVE_TIME
311
+ int "Maximum keep alive time"
312
+ range 10 60
313
+ default 10
314
+ help
315
+ Only for station in WIFI_PS_MIN_MODEM or WIFI_PS_MAX_MODEM. If no packet has been
316
+ sent within ESP_WIFI_SLP_DEFAULT_MAX_ACTIVE_TIME, a null data packet will be sent
317
+ to maintain the connection with the AP. unit: seconds.
318
+
319
+ config ESP32_WIFI_SLP_DEFAULT_WAIT_BROADCAST_DATA_TIME
320
+ int "Minimum wait broadcast data time"
321
+ range 10 30
322
+ default 15
323
+ help
324
+ Only for station in WIFI_PS_MIN_MODEM or WIFI_PS_MAX_MODEM. When the station knows through the beacon
325
+ that AP will send broadcast packet, it will wait for ESP_WIFI_SLP_DEFAULT_WAIT_BROADCAST_DATA_TIME
326
+ before entering the sleep process. If a broadcast packet is received with more data bits, the time
327
+ will refreshed. unit: milliseconds.
328
+
329
+ choice ESP_WIFI_HEAP
330
+ prompt "Wifi adapter heap in use"
331
+ default ESP_WIFI_HEAP_RUNTIME
332
+
333
+ config ESP_WIFI_HEAP_RUNTIME
334
+ bool "Wifi adapter use ESP runtime heap"
335
+ depends on ESP_HEAP_RUNTIME
336
+
337
+ config ESP_WIFI_HEAP_SPIRAM
338
+ bool "Wifi adapter use SPIRAM heap"
339
+ depends on ESP_SPIRAM
340
+
341
+ config ESP_WIFI_HEAP_SYSTEM
342
+ bool "Wifi adapter use system heap"
343
+
344
+ endchoice # ESP_WIFI_HEAP
345
+
254
346
config ESP32_WIFI_FTM_ENABLE
255
347
bool "WiFi FTM"
256
348
default n
257
- depends on SOC_SERIES_ESP32C2 || SOC_SERIES_ESP32C3
349
+ depends on SOC_SERIES_ESP32C2 || SOC_SERIES_ESP32C3 || SOC_SERIES_ESP32C6 || SOC_SERIES_ESP32S2 || SOC_SERIES_ESP32S3
258
350
help
259
351
Enable feature Fine Timing Measurement for calculating WiFi Round-Trip-Time (RTT).
260
352
0 commit comments