Commit a43e13c6 authored by iabdalkader's avatar iabdalkader

drivers/esp-hosted: Fix MTU size.

The maximum SPI frame payload is 1600 - header_size.
Signed-off-by: default avatariabdalkader <i.abdalkader@gmail.com>
parent 379b583b
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
static err_t netif_struct_init(struct netif *netif) { static err_t netif_struct_init(struct netif *netif) {
netif->linkoutput = esp_hosted_netif_output; netif->linkoutput = esp_hosted_netif_output;
netif->output = etharp_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; 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); esp_hosted_wifi_get_mac(netif->name[1] - '0', netif->hwaddr);
netif->hwaddr_len = sizeof(netif->hwaddr); netif->hwaddr_len = sizeof(netif->hwaddr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment