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); }