Skip to content

Commit 24ce867

Browse files
committed
fix(wifi_remote): Added more netif options for eppp connection
Configurable in Kconfig: * routing priority * netif description
1 parent 39dfe26 commit 24ce867

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

components/esp_wifi_remote/Kconfig.rpc.in

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ endchoice
3030
help
3131
Pin number of UART RX.
3232

33+
config ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY
34+
int "Routing priority of eppp netif"
35+
default 100
36+
range 0 256
37+
help
38+
Set the priority of the wifi-remote netif.
39+
The bigger the number the higher the priority.
40+
The interface which is up and with the highest priority will act as a default GW.
41+
42+
config ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION
43+
string "eppp network interface description"
44+
default "example_netif_sta"
45+
help
46+
Textual description of the wifi remote network interface.
47+
By default it is set to "example_netif_sta" to be used in IDF protocol example
48+
as default wifi station substitution.
49+
3350
config ESP_WIFI_REMOTE_EPPP_SERVER_CA
3451
string "Servers CA certificate"
3552
default "--- Please copy content of the CA certificate ---"

components/esp_wifi_remote/eppp/eppp_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ __attribute__((weak)) esp_netif_t *wifi_remote_eppp_init(eppp_type_t role)
1616
config.transport = EPPP_TRANSPORT_UART;
1717
config.uart.tx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_TX_PIN;
1818
config.uart.rx_io = CONFIG_ESP_WIFI_REMOTE_EPPP_UART_RX_PIN;
19+
config.ppp.netif_description = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_DESCRIPTION;
20+
config.ppp.netif_prio = CONFIG_ESP_WIFI_REMOTE_EPPP_NETIF_PRIORITY;
1921
return eppp_open(role, &config, portMAX_DELAY);
2022
}

0 commit comments

Comments
 (0)