From 24ce86756db8c398a9552eacae854f00c307bc12 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 28 May 2024 12:46:40 +0200 Subject: [PATCH 1/2] fix(wifi_remote): Added more netif options for eppp connection Configurable in Kconfig: * routing priority * netif description --- components/esp_wifi_remote/Kconfig.rpc.in | 17 +++++++++++++++++ components/esp_wifi_remote/eppp/eppp_init.c | 2 ++ 2 files changed, 19 insertions(+) diff --git a/components/esp_wifi_remote/Kconfig.rpc.in b/components/esp_wifi_remote/Kconfig.rpc.in index d63530ab7..a3387ad54 100644 --- a/components/esp_wifi_remote/Kconfig.rpc.in +++ b/components/esp_wifi_remote/Kconfig.rpc.in @@ -30,6 +30,23 @@ endchoice help Pin number of UART RX. + config ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY + int "Routing priority of eppp netif" + default 100 + range 0 256 + help + Set the priority of the wifi-remote netif. + The bigger the number the higher the priority. + The interface which is up and with the highest priority will act as a default GW. + + config ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION + string "eppp network interface description" + default "example_netif_sta" + help + Textual description of the wifi remote network interface. + By default it is set to "example_netif_sta" to be used in IDF protocol example + as default wifi station substitution. + config ESP_WIFI_REMOTE_EPPP_SERVER_CA string "Servers CA certificate" default "--- Please copy content of the CA certificate ---" diff --git a/components/esp_wifi_remote/eppp/eppp_init.c b/components/esp_wifi_remote/eppp/eppp_init.c index 9c22eb2f3..94bf8f585 100644 --- a/components/esp_wifi_remote/eppp/eppp_init.c +++ b/components/esp_wifi_remote/eppp/eppp_init.c @@ -16,5 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role) config.transport = EPPP_TRANSPORT_UART; config.uart.tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN; config.uart.rx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_RX_PIN; + config.ppp.netif_description = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION; + config.ppp.netif_prio = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY; return eppp_open(role, &config, portMAX_DELAY); } From 28c0e0b77b4a00371f4415ecedb96c7ff7050337 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 28 May 2024 16:37:24 +0200 Subject: [PATCH 2/2] bump(wifi_remote): 0.2.1 -> 0.2.2 0.2.2 Bug Fixes - Added more netif options for eppp connection (24ce867) - Do not restrict EPPP config to RSA keys only (f05c765, #570) --- components/esp_wifi_remote/.cz.yaml | 2 +- components/esp_wifi_remote/CHANGELOG.md | 7 +++++++ components/esp_wifi_remote/idf_component.yml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/components/esp_wifi_remote/.cz.yaml b/components/esp_wifi_remote/.cz.yaml index 6c3fb702a..0471a3045 100644 --- a/components/esp_wifi_remote/.cz.yaml +++ b/components/esp_wifi_remote/.cz.yaml @@ -3,6 +3,6 @@ commitizen: bump_message: 'bump(wifi_remote): $current_version -> $new_version' pre_bump_hooks: python ../../ci/changelog.py esp_wifi_remote tag_format: wifi_remote-v$version - version: 0.2.1 + version: 0.2.2 version_files: - idf_component.yml diff --git a/components/esp_wifi_remote/CHANGELOG.md b/components/esp_wifi_remote/CHANGELOG.md index 76ea35d9a..1c62427d5 100644 --- a/components/esp_wifi_remote/CHANGELOG.md +++ b/components/esp_wifi_remote/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.2.2](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.2.2) + +### Bug Fixes + +- Added more netif options for eppp connection ([24ce867](https://github.com/espressif/esp-protocols/commit/24ce867)) +- Do not restrict EPPP config to RSA keys only ([f05c765](https://github.com/espressif/esp-protocols/commit/f05c765), [#570](https://github.com/espressif/esp-protocols/issues/570)) + ## [0.2.1](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.2.1) ### Bug Fixes diff --git a/components/esp_wifi_remote/idf_component.yml b/components/esp_wifi_remote/idf_component.yml index ee3843d9f..73e56b8a1 100644 --- a/components/esp_wifi_remote/idf_component.yml +++ b/components/esp_wifi_remote/idf_component.yml @@ -1,4 +1,4 @@ -version: 0.2.1 +version: 0.2.2 url: https://github.com/espressif/esp-protocols/tree/master/components/esp_wifi_remote description: Utility wrapper for esp_wifi functionality on remote targets dependencies: