Skip to content

Commit

Permalink
fix(wifi_remote): Added more netif options for eppp connection
Browse files Browse the repository at this point in the history
Configurable in Kconfig:
* routing priority
* netif description
  • Loading branch information
david-cermak committed May 28, 2024
1 parent 39dfe26 commit 24ce867
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/esp_wifi_remote/Kconfig.rpc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---"
Expand Down
2 changes: 2 additions & 0 deletions components/esp_wifi_remote/eppp/eppp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 24ce867

Please sign in to comment.