Skip to content

Commit 94563cd

Browse files
committed
fix(eppp): Fix getting context for channel API
1 parent e0b8de8 commit 94563cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/eppp_link/eppp_uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ static void process_packet(esp_netif_t *netif, uart_port_t uart_port, size_t ava
157157
esp_netif_receive(netif, in_buf + buf_start + sizeof(struct header), payload_size, NULL);
158158
} else {
159159
#ifdef CONFIG_EPPP_LINK_CHANNELS_SUPPORT
160+
struct eppp_handle *handle = esp_netif_get_io_driver(netif);
161+
struct eppp_uart *h = __containerof(handle, struct eppp_uart, parent);
160162
if (h->parent.channel_rx) {
161163
h->parent.channel_rx(netif, channel, in_buf + buf_start + sizeof(struct header), payload_size);
162164
}

0 commit comments

Comments
 (0)