Skip to content

Commit

Permalink
nrf_wifi: Fix maximum transmit buffer size check
Browse files Browse the repository at this point in the history
The maximum buffer size should include MTU and headroom, fix the check.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Nov 21, 2023
1 parent 370d551 commit 311ed64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nrf_wifi/fw_if/umac_if/src/default/fmac_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ struct nrf_wifi_fmac_priv *nrf_wifi_fmac_init(struct nrf_wifi_data_config_params
def_priv->rx_buf_pools[pool_idx].buf_sz + RX_BUF_HEADROOM;
}

hal_cfg_params.max_tx_frm_sz = CONFIG_NRF700X_TX_MAX_DATA_SIZE + TX_BUF_HEADROOM;
hal_cfg_params.max_tx_frm_sz = CONFIG_NRF_WIFI_IFACE_MTU + TX_BUF_HEADROOM;

hal_cfg_params.max_cmd_size = MAX_NRF_WIFI_UMAC_CMD_SIZE;
hal_cfg_params.max_event_size = MAX_EVENT_POOL_LEN;
Expand Down

0 comments on commit 311ed64

Please sign in to comment.