Skip to content

Commit

Permalink
Tweak buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 3, 2023
1 parent 97fbc6e commit 01f144b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions cfg.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[esp-wifi]
rx_queue_size = 20
tx_queue_size = 5
rx_queue_size = 16
static_rx_buf_num = 32
dynamic_rx_buf_num = 16
static_tx_buf_num = 8

tx_queue_size = 16
static_tx_buf_num = 12
dynamic_tx_buf_num = 16

ampdu_rx_enable = 1
ampdu_tx_enable = 1
rx_ba_win = 32
rx_ba_win = 8
max_burst_size = 0 # 0 means no limit
tick_rate_hz = 200
4 changes: 2 additions & 2 deletions src/board/wifi/sta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ impl Sta {
}

const SOCKET_COUNT: usize = 1;
const SOCKET_TX_BUFFER: usize = 4 * 1024;
const SOCKET_RX_BUFFER: usize = 8 * 1024;
const SOCKET_TX_BUFFER: usize = 8 * 1024;
const SOCKET_RX_BUFFER: usize = 16 * 1024;

const TLS_READ_BUFFER: usize = 16 * 1024 + 256;
const TLS_WRITE_BUFFER: usize = 4096;
Expand Down

0 comments on commit 01f144b

Please sign in to comment.