diff --git a/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c b/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c index a6ac822d4..d8ba31567 100644 --- a/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c +++ b/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ @@ -100,10 +100,10 @@ void wifi_init_softap(void) ESP_ERROR_CHECK(esp_wifi_init(&cfg)); ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT, - ESP_EVENT_ANY_ID, - &wifi_event_handler, - NULL, - NULL)); + ESP_EVENT_ANY_ID, + &wifi_event_handler, + NULL, + NULL)); wifi_config_t wifi_config = { .ap = { @@ -120,7 +120,7 @@ void wifi_init_softap(void) } ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_AP)); - ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_config)); + ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_AP, &wifi_config)); ESP_ERROR_CHECK(esp_wifi_start()); ESP_LOGI(TAG, "wifi_init_softap finished. SSID:%s password:%s channel:%d", diff --git a/components/esp_modem/port/linux/esp_netif_linux/lwipopts.h b/components/esp_modem/port/linux/esp_netif_linux/lwipopts.h index edeed034e..b77fce432 100644 --- a/components/esp_modem/port/linux/esp_netif_linux/lwipopts.h +++ b/components/esp_modem/port/linux/esp_netif_linux/lwipopts.h @@ -89,7 +89,7 @@ #define MPPE_SUPPORT 0 -#define PPP_MAXIDLEFLAG 0 +#define PPP_MAXIDLEFLAG 100 #define PRINTPKT_SUPPORT 1 #define PPP_PROTOCOLNAME 1 diff --git a/components/esp_modem/port/linux/esp_netif_linux/tun_io.c b/components/esp_modem/port/linux/esp_netif_linux/tun_io.c index 16f57e713..4ad4a5b1d 100644 --- a/components/esp_modem/port/linux/esp_netif_linux/tun_io.c +++ b/components/esp_modem/port/linux/esp_netif_linux/tun_io.c @@ -104,7 +104,7 @@ static void ppp_link_status_cb(ppp_pcb *pcb, int err_code, void *ctx) } } -static u32_t ppp_output_cb(struct ppp_pcb_s *pcb, const void *data, u32_t len, void *ctx) +static u32_t ppp_output_cb(struct ppp_pcb_s *pcb, u8_t *data, u32_t len, void *ctx) { esp_netif_t *netif = (esp_netif_t *)ctx; if (netif->transmit) {