From 94563cdc1f0a4e1d7735e6a582d6e6ba98967b81 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 8 Sep 2025 18:46:25 +0200 Subject: [PATCH] fix(eppp): Fix getting context for channel API --- components/eppp_link/eppp_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/eppp_link/eppp_uart.c b/components/eppp_link/eppp_uart.c index 6d89d18ba..363c14807 100644 --- a/components/eppp_link/eppp_uart.c +++ b/components/eppp_link/eppp_uart.c @@ -157,6 +157,8 @@ static void process_packet(esp_netif_t *netif, uart_port_t uart_port, size_t ava esp_netif_receive(netif, in_buf + buf_start + sizeof(struct header), payload_size, NULL); } else { #ifdef CONFIG_EPPP_LINK_CHANNELS_SUPPORT + struct eppp_handle *handle = esp_netif_get_io_driver(netif); + struct eppp_uart *h = __containerof(handle, struct eppp_uart, parent); if (h->parent.channel_rx) { h->parent.channel_rx(netif, channel, in_buf + buf_start + sizeof(struct header), payload_size); }