summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2023-09-20 14:44:51 +0200
committeriabdalkader <i.abdalkader@gmail.com>2023-10-02 14:47:31 +0200
commita43e13c67be565a1d053e745fb96c9a31b9f2c41 (patch)
treefee44bef3a07a1cf61011e802686d9ad37dbf3ed
parent379b583b2fbff7772884f199ddb0d70fb8b86090 (diff)
drivers/esp-hosted: Fix MTU size.
The maximum SPI frame payload is 1600 - header_size. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-rw-r--r--drivers/esp-hosted/esp_hosted_netif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/esp-hosted/esp_hosted_netif.c b/drivers/esp-hosted/esp_hosted_netif.c
index b471c3ad4..da911f3d6 100644
--- a/drivers/esp-hosted/esp_hosted_netif.c
+++ b/drivers/esp-hosted/esp_hosted_netif.c
@@ -51,7 +51,7 @@
static err_t netif_struct_init(struct netif *netif) {
netif->linkoutput = esp_hosted_netif_output;
netif->output = etharp_output;
- netif->mtu = 1500;
+ netif->mtu = ESP_FRAME_MAX_PAYLOAD;
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_IGMP;
esp_hosted_wifi_get_mac(netif->name[1] - '0', netif->hwaddr);
netif->hwaddr_len = sizeof(netif->hwaddr);