drivers: wifi: esp: support configurable modem ring buffer size
Add new Kconfig option to configure modem UART interface handler ring buffer size. This will allow to lower ring buffer to save some resources or increase it in case high network bandwidth is utilized (with high UART baudrate). Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
722fbc1b80
commit
cfedf80009
|
@ -42,6 +42,12 @@ config WIFI_ESP_WORKQ_THREAD_PRIORITY
|
|||
help
|
||||
Priority of thread used for processing driver work queue items.
|
||||
|
||||
config WIFI_ESP_MDM_RING_BUF_SIZE
|
||||
int "Modem ring buffer size"
|
||||
default 1024
|
||||
help
|
||||
Ring buffer size used by modem UART interface handler.
|
||||
|
||||
config WIFI_ESP_PASSIVE_MODE
|
||||
bool "Use passive mode"
|
||||
help
|
||||
|
|
|
@ -80,7 +80,7 @@ extern "C" {
|
|||
|
||||
#define INVALID_LINK_ID 255
|
||||
|
||||
#define MDM_RING_BUF_SIZE 1024
|
||||
#define MDM_RING_BUF_SIZE CONFIG_WIFI_ESP_MDM_RING_BUF_SIZE
|
||||
#define MDM_RECV_MAX_BUF 30
|
||||
#define MDM_RECV_BUF_SIZE 128
|
||||
#define CMD_BUF_ALLOC_TIMEOUT K_SECONDS(1)
|
||||
|
|
Loading…
Reference in a new issue