Skip to content

Commit 858d38b

Browse files
authored
Merge pull request #885 from david-cermak/fix/eppp_uart_channels
[eppp]: Fix getting context for channel API
2 parents 34b6681 + 6428e68 commit 858d38b

File tree

10 files changed

+26
-8
lines changed

10 files changed

+26
-8
lines changed

components/eppp_link/.cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ commitizen:
33
bump_message: 'bump(eppp): $current_version -> $new_version'
44
pre_bump_hooks: python ../../ci/changelog.py eppp_link
55
tag_format: eppp-v$version
6-
version: 1.1.0
6+
version: 1.1.1
77
version_files:
88
- idf_component.yml

components/eppp_link/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.1.1](https://github.com/espressif/esp-protocols/commits/eppp-v1.1.1)
4+
5+
### Bug Fixes
6+
7+
- Fix getting context for channel API ([94563cdc](https://github.com/espressif/esp-protocols/commit/94563cdc))
8+
- Cover more combinations in build tests ([e0b8de8f](https://github.com/espressif/esp-protocols/commit/e0b8de8f))
9+
310
## [1.1.0](https://github.com/espressif/esp-protocols/commits/eppp-v1.1.0)
411

512
### Features

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
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_IDF_TARGET="esp32s3"
2+
CONFIG_EPPP_LINK_DEVICE_SPI=y
3+
CONFIG_EPPP_LINK_CHANNELS_SUPPORT=y
4+
CONFIG_EPPP_LINK_USES_PPP=y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_IDF_TARGET="esp32c3"
2+
CONFIG_EPPP_LINK_DEVICE_UART=y
3+
CONFIG_EPPP_LINK_CHANNELS_SUPPORT=y
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
CONFIG_LWIP_PPP_SUPPORT=y
2-
CONFIG_LWIP_PPP_SERVER_SUPPORT=y
31
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
4-
CONFIG_LWIP_PPP_DEBUG_ON=y
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_IDF_TARGET="esp32s2"
2+
CONFIG_EPPP_LINK_DEVICE_SPI=y
3+
CONFIG_EPPP_LINK_CHANNELS_SUPPORT=y
4+
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_IDF_TARGET="esp32c2"
2+
CONFIG_EPPP_LINK_DEVICE_UART=y
3+
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n
4+
CONFIG_EPPP_LINK_USES_PPP=y
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
CONFIG_LWIP_IP_FORWARD=y
22
CONFIG_LWIP_IPV4_NAPT=y
33
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
4-
CONFIG_LWIP_PPP_SUPPORT=y
5-
CONFIG_LWIP_PPP_SERVER_SUPPORT=y
6-
CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION=n

components/eppp_link/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.1.0
1+
version: 1.1.1
22
url: https://github.com/espressif/esp-protocols/tree/master/components/eppp_link
33
description: The component provides a general purpose PPP connectivity, typically used as WiFi-PPP router
44
dependencies:

0 commit comments

Comments
 (0)